📄 frmstartquery5.frm
字号:
Left = 120
TabIndex = 33
Top = 720
Width = 735
End
Begin VB.Label Label27
Caption = "工作内容"
Height = 255
Left = 120
TabIndex = 32
Top = 1080
Width = 735
End
Begin VB.Label Label28
Caption = "工作量"
Height = 255
Left = 3720
TabIndex = 31
Top = 360
Width = 735
End
Begin VB.Label Label29
Caption = "工作量"
Height = 255
Left = 3720
TabIndex = 30
Top = 720
Width = 735
End
Begin VB.Label Label30
Caption = "工作量"
Height = 255
Left = 3720
TabIndex = 29
Top = 1080
Width = 735
End
End
Begin VB.TextBox txtFields
DataField = "备注"
DataSource = "Data1"
Height = 645
Index = 17
Left = 960
MaxLength = 50
MousePointer = 99 'Custom
TabIndex = 21
Top = 10080
Width = 7620
End
Begin VB.TextBox txtFields
DataField = "日期"
DataSource = "Data1"
Height = 285
Index = 27
Left = 7200
MaxLength = 50
MousePointer = 99 'Custom
TabIndex = 20
Top = 1200
Width = 1260
End
Begin VB.Frame Frame7
Caption = "工作量"
Height = 7935
Left = 8760
TabIndex = 7
Top = 1680
Width = 1335
Begin VB.TextBox txtFields
DataField = "工作量5"
DataSource = "Data1"
Height = 405
Index = 38
Left = 120
MaxLength = 50
MousePointer = 99 'Custom
TabIndex = 13
Top = 360
Width = 540
End
Begin VB.TextBox txtFields
DataField = "工作量10"
DataSource = "Data1"
Height = 405
Index = 40
Left = 120
MaxLength = 50
MousePointer = 99 'Custom
TabIndex = 12
Top = 7320
Width = 540
End
Begin VB.TextBox txtFields
DataField = "工作量9"
DataSource = "Data1"
Height = 405
Index = 41
Left = 120
MaxLength = 50
MousePointer = 99 'Custom
TabIndex = 11
Top = 5760
Width = 540
End
Begin VB.TextBox txtFields
DataField = "工作量8"
DataSource = "Data1"
Height = 405
Index = 42
Left = 120
MaxLength = 50
MousePointer = 99 'Custom
TabIndex = 10
Top = 4200
Width = 540
End
Begin VB.TextBox txtFields
DataField = "工作量7"
DataSource = "Data1"
Height = 405
Index = 43
Left = 120
MaxLength = 50
MousePointer = 99 'Custom
TabIndex = 9
Top = 3360
Width = 540
End
Begin VB.TextBox txtFields
DataField = "工作量6"
DataSource = "Data1"
Height = 405
Index = 44
Left = 120
MaxLength = 50
MousePointer = 99 'Custom
TabIndex = 8
Top = 1800
Width = 540
End
Begin VB.Label Label42
Caption = "小时"
Height = 255
Left = 720
TabIndex = 19
Top = 480
Width = 495
End
Begin VB.Label Label43
Caption = "小时"
Height = 375
Left = 720
TabIndex = 18
Top = 1920
Width = 375
End
Begin VB.Label Label44
Caption = "小时"
Height = 375
Left = 720
TabIndex = 17
Top = 3480
Width = 375
End
Begin VB.Label Label45
Caption = "小时"
Height = 375
Left = 720
TabIndex = 16
Top = 4320
Width = 495
End
Begin VB.Label Label46
Caption = "小时"
Height = 375
Left = 720
TabIndex = 15
Top = 5880
Width = 495
End
Begin VB.Label Label47
Caption = "小时"
Height = 375
Left = 720
TabIndex = 14
Top = 7440
Width = 495
End
End
Begin VB.Frame Frame8
Caption = "工作量小计"
Height = 855
Left = 8760
TabIndex = 4
Top = 9960
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 = 405
Index = 39
Left = 120
MaxLength = 50
MousePointer = 99 'Custom
TabIndex = 5
Top = 360
Width = 540
End
Begin VB.Label Label48
Caption = "小时"
Height = 255
Left = 720
TabIndex = 6
Top = 480
Width = 495
End
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "D:\千万不要删,求求大家了\吕昕\毕业设计\教师管理系统.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 375
Left = 4680
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "其它"
Top = 600
Width = 3135
End
Begin VB.TextBox txtInput
Height = 375
Left = 1440
MousePointer = 99 'Custom
TabIndex = 1
Top = 600
Width = 1455
End
Begin VB.CommandButton cmdStart
Caption = "开始"
Default = -1 'True
Height = 375
Left = 3120
TabIndex = 0
Top = 600
Width = 855
End
Begin VB.Label lblLabels
BackStyle = 0 'Transparent
Caption = "备注:"
Height = 255
Index = 14
Left = 240
TabIndex = 104
Top = 10320
Width = 405
End
Begin VB.Line Line2
BorderStyle = 3 'Dot
X1 = 120
X2 = 10080
Y1 = 9840
Y2 = 9840
End
Begin VB.Label Label49
BackStyle = 0 'Transparent
Caption = "姓名"
Height = 255
Left = 240
TabIndex = 103
Top = 1200
Width = 375
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "编号"
Height = 255
Left = 2040
TabIndex = 102
Top = 1200
Width = 375
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "学院"
Height = 255
Left = 4080
TabIndex = 101
Top = 1200
Width = 375
End
Begin VB.Label Label31
BackStyle = 0 'Transparent
Caption = "日期"
Height = 255
Left = 6600
TabIndex = 100
Top = 1200
Width = 375
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Label1"
Height = 255
Left = 120
TabIndex = 3
Top = 600
Width = 1215
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "Label2"
Height = 375
Left = 120
TabIndex = 2
Top = 120
Width = 3615
End
End
Attribute VB_Name = "frmStartQuery5"
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.Option3.Value = True Then
Data1.Recordset.FindFirst "姓名='" & mno & "'"
If Data1.Recordset.NoMatch = False Then
frmStartQuery5.Height = 11430
frmStartQuery5.Width = 10320
Else
MsgBox "对不起,没有您所查询姓名的记录!", vbExclamation + vbOKOnly
End If
End If
If frmQuery.Option4.Value = True Then
Data1.Recordset.FindFirst "编号='" & mno & "'"
If Data1.Recordset.NoMatch = False Then
frmStartQuery5.Height = 11430
frmStartQuery5.Width = 10320
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 + -