📄 a2.frm
字号:
Width = 945
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "出生年月:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 480
TabIndex = 29
Top = 960
Width = 945
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "照片: "
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 5280
TabIndex = 28
Top = 240
Width = 630
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "政治面貌:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 480
TabIndex = 27
Top = 1320
Width = 945
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "家庭住址:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 480
TabIndex = 26
Top = 1680
Width = 945
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "家庭电话:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 480
TabIndex = 25
Top = 2040
Width = 945
End
Begin VB.Label Label10
AutoSize = -1 'True
Caption = "小 灵 通:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 480
TabIndex = 24
Top = 2400
Width = 945
End
Begin VB.Label Label11
AutoSize = -1 'True
Caption = "手 机:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 480
TabIndex = 23
Top = 2760
Width = 945
End
End
Begin VB.Frame Frame1
Caption = "查询类型:"
Height = 1095
Left = 600
TabIndex = 3
Top = 120
Width = 1575
Begin VB.OptionButton Option1
Caption = " 专业"
Height = 255
Index = 2
Left = 360
TabIndex = 6
Top = 720
Width = 975
End
Begin VB.OptionButton Option1
Caption = " 姓名"
Height = 255
Index = 1
Left = 360
TabIndex = 5
Top = 480
Width = 975
End
Begin VB.OptionButton Option1
Caption = " 学号"
Height = 255
Index = 0
Left = 360
TabIndex = 4
Top = 240
Width = 975
End
End
Begin VB.Frame Frame2
Caption = "查询条件:"
Height = 855
Left = 2640
TabIndex = 0
Top = 240
Width = 6135
Begin VB.CommandButton Command1
Caption = "|<"
Height = 372
Left = 3480
TabIndex = 10
ToolTipText = "第一条"
Top = 240
Width = 495
End
Begin VB.CommandButton Command2
Caption = "<<"
Height = 372
Left = 3960
TabIndex = 9
ToolTipText = "上一条"
Top = 240
Width = 495
End
Begin VB.CommandButton Command3
Caption = ">>"
Height = 372
Left = 4440
TabIndex = 8
ToolTipText = "下一条"
Top = 240
Width = 495
End
Begin VB.CommandButton Command4
Caption = ">|"
Height = 372
Left = 4920
TabIndex = 7
ToolTipText = "最后一条"
Top = 240
Width = 495
End
Begin VB.TextBox Text11
Height = 375
Left = 120
TabIndex = 2
Top = 240
Width = 2055
End
Begin VB.CommandButton Command6
Caption = "查询"
Height = 375
Left = 2280
TabIndex = 1
Top = 240
Width = 855
End
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "C:\评语生成系统\student.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 372
Left = 8040
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "基本情况"
Top = 1080
Visible = 0 'False
Width = 1335
End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Data1.Recordset.MoveFirst
End Sub
Private Sub Command10_Click()
Form5.Hide
End Sub
Private Sub Command2_Click()
Data1.Recordset.MovePrevious
If Data1.Recordset.BOF Then
MsgBox "已到库头!"
Data1.Recordset.MoveFirst
End If
End Sub
Private Sub Command3_Click()
Data1.Recordset.MoveNext
If Data1.Recordset.EOF Then
MsgBox "已到库尾!"
Data1.Recordset.MoveLast
End If
End Sub
Private Sub Command4_Click()
Data1.Recordset.MoveLast
End Sub
Private Sub Command5_Click()
s1 = Text2.Text
Form1.Show
End Sub
Private Sub Command6_Click()
Dim sql As String
If Option1(0).Value = True Then
sql = "select * from 基本情况 where 学号 ='" & Trim(Text11.Text) & "'"
Else
If Option1(1).Value = True Then
sql = "select * from 基本情况 where 姓名 ='" & Trim(Text11.Text) & "'"
Else
If Option1(2).Value = True Then
sql = "select * from 基本情况 where 专业 ='" & Trim(Text11.Text) & "'"
End If
End If
End If
Data1.RecordSource = sql
Data1.Refresh
If Data1.Recordset.EOF Then
MsgBox "没有您查询的信息!", , "提示"
Data1.RecordSource = "基本情况"
Data1.Refresh
End If
End Sub
Private Sub Command9_Click()
Dim mzy As String
zymc = InputBox$("请输入专业名称:", "查找提示窗口")
Data1.RecordSource = "Select * From 基本情况 Where 专业 = '" & zymc & "'"
Data1.Refresh
If Data1.Recordset.EOF Then
MsgBox "查无此专业!", , "提示"
Data1.RecordSource = "基本情况"
Data1.Refresh
End If
End Sub
Private Sub Form_Load()
Form5.Width = 9405
Form5.Height = 6765
End Sub
Private Sub Picture1_Click()
Picture1.Picture = Clipboard.GetData
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -