📄 form3.frm
字号:
VERSION 5.00
Begin VB.Form Form3
Caption = "工商0102数据库全库浏览页"
ClientHeight = 5730
ClientLeft = 60
ClientTop = 345
ClientWidth = 6765
LinkTopic = "Form3"
ScaleHeight = 5730
ScaleWidth = 6765
StartUpPosition = 3 '窗口缺省
Begin VB.Data Data1
Connect = "Access"
DatabaseName = "A:\Wsm.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 720
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "Stulnfo"
Top = 240
Width = 5655
End
Begin VB.CommandButton Command5
Caption = "退出"
Height = 495
Left = 5520
TabIndex = 23
Top = 4680
Width = 735
End
Begin VB.CommandButton Command4
Caption = "末记录"
Height = 495
Left = 4320
TabIndex = 22
Top = 4680
Width = 855
End
Begin VB.CommandButton Command3
Caption = "下一条"
Height = 495
Left = 3120
TabIndex = 21
Top = 4680
Width = 855
End
Begin VB.CommandButton Command2
Caption = "上一条"
Height = 495
Left = 1800
TabIndex = 20
Top = 4680
Width = 855
End
Begin VB.CommandButton Command1
Caption = "首记录"
Height = 495
Left = 600
TabIndex = 19
Top = 4680
Width = 855
End
Begin VB.TextBox Text9
DataField = "个人爱好"
DataSource = "Data1"
Height = 495
Left = 1440
TabIndex = 18
Text = " "
Top = 3720
Width = 4815
End
Begin VB.TextBox Text8
DataField = "其他描述"
DataSource = "Data1"
Height = 495
Left = 1440
TabIndex = 16
Text = " "
Top = 3000
Width = 4815
End
Begin VB.TextBox Text7
DataField = "专业"
DataSource = "Data1"
Height = 495
Left = 4080
TabIndex = 14
Text = " "
Top = 2280
Width = 2175
End
Begin VB.TextBox Text6
DataField = "系别"
DataSource = "Data1"
Height = 495
Left = 1440
TabIndex = 12
Text = " "
Top = 2280
Width = 1575
End
Begin VB.TextBox Text5
DataField = "籍贯"
DataSource = "Data1"
Height = 495
Left = 3480
TabIndex = 10
Text = " "
Top = 1560
Width = 2775
End
Begin VB.TextBox Text4
DataField = "性别"
DataSource = "Data1"
Height = 495
Left = 1440
TabIndex = 8
Text = " "
Top = 1560
Width = 855
End
Begin VB.TextBox Text2
DataField = "姓名"
DataSource = "Data1"
Height = 495
Left = 3480
TabIndex = 4
Text = " "
Top = 720
Width = 1215
End
Begin VB.TextBox Text1
DataField = "学号"
DataSource = "Data1"
Height = 495
Left = 1440
TabIndex = 2
Top = 720
Width = 855
End
Begin VB.PictureBox Picture1
Height = 5775
Left = 0
Picture = "Form3.frx":0000
ScaleHeight = 5715
ScaleWidth = 6675
TabIndex = 0
Top = 0
Width = 6735
Begin VB.TextBox Text3
DataField = "年龄"
DataSource = "Data1"
Height = 495
Left = 5520
TabIndex = 6
Text = " "
Top = 720
Width = 735
End
Begin VB.Label Label9
BackColor = &H0080FF80&
BackStyle = 0 'Transparent
Caption = "个人爱好 "
Height = 495
Left = 600
TabIndex = 17
Top = 3720
Width = 735
End
Begin VB.Label Label8
BackColor = &H0080FF80&
BackStyle = 0 'Transparent
Caption = "其他描述"
Height = 495
Left = 600
TabIndex = 15
Top = 3000
Width = 735
End
Begin VB.Label Label7
BackColor = &H0080FF80&
BackStyle = 0 'Transparent
Caption = "专业"
Height = 495
Left = 3240
TabIndex = 13
Top = 2280
Width = 735
End
Begin VB.Label Label6
BackColor = &H0080FF80&
BackStyle = 0 'Transparent
Caption = "系别"
Height = 495
Left = 600
TabIndex = 11
Top = 2280
Width = 735
End
Begin VB.Label Label5
BackColor = &H0080FF80&
BackStyle = 0 'Transparent
Caption = "籍贯"
Height = 495
Left = 2640
TabIndex = 9
Top = 1560
Width = 735
End
Begin VB.Label Label4
BackColor = &H0080FF80&
BackStyle = 0 'Transparent
Caption = "性别"
Height = 495
Left = 600
TabIndex = 7
Top = 1560
Width = 615
End
Begin VB.Label Label3
BackColor = &H0080FF80&
BackStyle = 0 'Transparent
Caption = "年龄"
Height = 495
Left = 4920
TabIndex = 5
Top = 720
Width = 495
End
Begin VB.Label Label2
BackColor = &H0080FF80&
BackStyle = 0 'Transparent
Caption = "姓名"
Height = 495
Left = 2640
TabIndex = 3
Top = 720
Width = 615
End
Begin VB.Label Label1
BackColor = &H0080FF80&
BackStyle = 0 'Transparent
Caption = "学号"
Height = 495
Left = 600
TabIndex = 1
Top = 720
Width = 615
End
End
End
Attribute VB_Name = "Form3"
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 Command2_Click()
Data1.Recordset.MovePrevious
If Data1.Recordset.BOF Then Data1.Recordset.MoveFirst
End Sub
Private Sub Command3_Click()
Data1.Recordset.MoveNext
If Data1.Recordset.EOF Then Data1.Recordset.MoveLast
End Sub
Private Sub Command4_Click()
Data1.Recordset.MoveLast
End Sub
Private Sub Command5_Click()
Form3.Hide
Form2.Show
End Sub
Private Sub data1_Reposition()
Data1.Caption = Data1.Recordset.AbsolutePosition + 1
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -