📄 frmstartquery2.frm
字号:
TabIndex = 22
Text = " "
Top = 240
Width = 975
End
Begin VB.TextBox txtFields
DataField = "学生班级7"
DataSource = "Data1"
Height = 270
Index = 33
Left = 6360
MousePointer = 99 'Custom
TabIndex = 21
Text = " "
Top = 600
Width = 975
End
Begin VB.TextBox txtFields
DataField = "计划学时5"
DataSource = "Data1"
Height = 270
Index = 34
Left = 8520
MousePointer = 99 'Custom
TabIndex = 20
Text = " "
Top = 240
Width = 975
End
Begin VB.TextBox txtFields
DataField = "计划学时7"
DataSource = "Data1"
Height = 270
Index = 35
Left = 8520
MousePointer = 99 'Custom
TabIndex = 19
Text = " "
Top = 600
Width = 975
End
Begin VB.Line Line1
X1 = 5400
X2 = 5400
Y1 = 120
Y2 = 960
End
Begin VB.Label Label32
Caption = "学生班级"
Height = 255
Left = 120
TabIndex = 34
Top = 240
Width = 735
End
Begin VB.Label Label33
Caption = "学生班级"
Height = 255
Left = 120
TabIndex = 33
Top = 600
Width = 735
End
Begin VB.Label Label34
Caption = "计划学时"
Height = 255
Left = 2400
TabIndex = 32
Top = 240
Width = 735
End
Begin VB.Label Label35
Caption = "计划学时"
Height = 255
Left = 2400
TabIndex = 31
Top = 600
Width = 735
End
Begin VB.Label Label36
Caption = "学生班级"
Height = 255
Left = 5520
TabIndex = 30
Top = 240
Width = 735
End
Begin VB.Label Label37
Caption = "学生班级"
Height = 255
Left = 5520
TabIndex = 29
Top = 600
Width = 735
End
Begin VB.Label Label38
Caption = "计划学时"
Height = 255
Left = 7680
TabIndex = 28
Top = 240
Width = 735
End
Begin VB.Label Label39
Caption = "计划学时"
Height = 255
Left = 7680
TabIndex = 27
Top = 600
Width = 735
End
End
Begin VB.TextBox txtFields
DataField = "备注"
DataSource = "Data1"
Height = 615
Index = 36
Left = 960
MousePointer = 99 'Custom
TabIndex = 17
Text = " "
Top = 9000
Width = 9615
End
Begin VB.TextBox txtFields
DataField = "日期"
DataSource = "Data1"
Height = 270
Index = 37
Left = 8280
MousePointer = 99 'Custom
TabIndex = 16
Text = " "
Top = 1200
Width = 1335
End
Begin VB.Frame Frame5
Caption = "工作量"
Height = 6735
Left = 11040
TabIndex = 7
Top = 1680
Width = 1335
Begin VB.TextBox txtFields
DataField = "工作量"
DataSource = "Data1"
Height = 390
Index = 38
Left = 120
MousePointer = 99 'Custom
TabIndex = 11
Text = " "
Top = 720
Width = 495
End
Begin VB.TextBox txtFields
DataField = "工作量1"
DataSource = "Data1"
Height = 390
Index = 39
Left = 120
MousePointer = 99 'Custom
TabIndex = 10
Text = " "
Top = 2880
Width = 495
End
Begin VB.TextBox txtFields
DataField = "工作量2"
DataSource = "Data1"
Height = 390
Index = 40
Left = 120
MousePointer = 99 'Custom
TabIndex = 9
Text = " "
Top = 5040
Width = 495
End
Begin VB.TextBox txtFields
DataField = "工作量3"
DataSource = "Data1"
Height = 390
Index = 41
Left = 120
MousePointer = 99 'Custom
TabIndex = 8
Text = " "
Top = 6120
Width = 495
End
Begin VB.Label Label41
Caption = "小时"
Height = 255
Left = 720
TabIndex = 15
Top = 840
Width = 375
End
Begin VB.Label Label42
Caption = "小时"
Height = 255
Left = 720
TabIndex = 14
Top = 3000
Width = 375
End
Begin VB.Label Label43
Caption = "小时"
Height = 255
Left = 720
TabIndex = 13
Top = 5160
Width = 375
End
Begin VB.Label Label44
Caption = "小时"
Height = 255
Left = 720
TabIndex = 12
Top = 6240
Width = 375
End
End
Begin VB.Frame Frame6
Caption = "工作量小计"
Height = 975
Left = 11040
TabIndex = 4
Top = 8760
Width = 1335
Begin VB.TextBox txtFields
DataField = "工作量小计"
DataSource = "Data1"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 390
Index = 42
Left = 120
MousePointer = 99 'Custom
TabIndex = 5
Text = " "
Top = 360
Width = 495
End
Begin VB.Label Label45
Caption = "小时"
Height = 255
Left = 720
TabIndex = 6
Top = 480
Width = 375
End
End
Begin VB.CommandButton cmdStart
Caption = "开始"
Default = -1 'True
Height = 375
Left = 3000
TabIndex = 3
Top = 600
Width = 855
End
Begin VB.Data Data1
Caption = " "
Connect = "Access"
DatabaseName = "D:\千万不要删,求求大家了\吕昕\毕业设计\教师管理系统.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 4800
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "本科生工作"
Top = 600
Width = 3375
End
Begin VB.TextBox txtInput
Height = 375
Left = 1440
MousePointer = 99 'Custom
TabIndex = 1
Top = 600
Width = 1455
End
Begin VB.Label Label57
Caption = "备注"
Height = 255
Left = 240
TabIndex = 116
Top = 9120
Width = 375
End
Begin VB.Label Label56
Caption = "实发工资:"
Height = 225
Left = 3360
TabIndex = 115
Top = 4440
Width = 15
End
Begin VB.Line Line4
BorderStyle = 3 'Dot
X1 = 120
X2 = 12360
Y1 = 8640
Y2 = 8640
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "姓名"
Height = 255
Left = 480
TabIndex = 114
Top = 1200
Width = 375
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "编号"
Height = 255
Left = 2640
TabIndex = 113
Top = 1200
Width = 375
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "学院"
Height = 255
Left = 4920
TabIndex = 112
Top = 1200
Width = 375
End
Begin VB.Label Label40
BackStyle = 0 'Transparent
Caption = "日期"
Height = 255
Left = 7680
TabIndex = 111
Top = 1200
Width = 375
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "Label2"
Height = 375
Left = 120
TabIndex = 2
Top = 120
Width = 3375
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Label1"
Height = 255
Left = 120
TabIndex = 0
Top = 600
Width = 1095
End
End
Attribute VB_Name = "frmStartQuery2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdStart_Click()
Dim mno As String
mno = txtInput
If frmQuery.Option1.Value = True Then
Data1.Recordset.FindFirst "姓名='" & mno & "'"
If Data1.Recordset.NoMatch = False Then
frmStartQuery2.Height = 10365
frmStartQuery2.Width = 12600
Else
MsgBox "对不起,没有找到您所查询的姓名!", vbExclamation + vbOKOnly
End If
End If
If frmQuery.Option2.Value = True Then
Data1.Recordset.FindFirst "编号='" & mno & "'"
If Data1.Recordset.NoMatch = False Then
frmStartQuery2.Height = 10365
frmStartQuery2.Width = 12600
Else
MsgBox "对不起,没有找到您所查询的编号!", vbExclamation + vbOKOnly
End If
End If
End Sub
Private Sub Form_Load()
frmStartQuery1.Picture = LoadPicture(App.Path + "\picture\中国娃娃1.bmp")
Data1.DatabaseName = App.Path + "\教师管理系统.mdb"
If frmQuery.Option1.Value = True Then
Label1.Caption = "请输入姓名:"
End If
If frmQuery.Option2.Value = True Then
Label1.Caption = "请输入编号:"
End If
Label2.Caption = "您现在进行的是教师本科生工作查询!"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -