📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3150
ClientLeft = 60
ClientTop = 390
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3150
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command4
Caption = "最后一条"
Height = 315
Left = 3488
TabIndex = 13
Top = 2520
Width = 840
End
Begin VB.CommandButton Command3
Caption = "后一条"
Height = 315
Left = 2443
TabIndex = 12
Top = 2520
Width = 840
End
Begin VB.CommandButton Command2
Caption = "前一条"
Height = 315
Left = 1398
TabIndex = 11
Top = 2520
Width = 840
End
Begin VB.CommandButton Command1
Caption = "第一条"
Height = 315
Left = 353
TabIndex = 10
Top = 2520
Width = 840
End
Begin VB.Data Data1
Connect = "Access"
DatabaseName = "F:\水利水电\教材用学生管理系统\Stud05.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 195
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "学籍"
Top = 1935
Visible = 0 'False
Width = 3090
End
Begin VB.ComboBox Combo1
DataField = "性别"
DataSource = "Data1"
Height = 300
Left = 1140
TabIndex = 9
Top = 765
Width = 1470
End
Begin VB.TextBox Text4
DataField = "班级"
DataSource = "Data1"
Height = 315
Left = 1140
TabIndex = 8
Top = 1470
Width = 2085
End
Begin VB.TextBox Text3
DataField = "出生日期"
DataSource = "Data1"
Height = 315
Left = 1140
TabIndex = 7
Top = 1110
Width = 1470
End
Begin VB.TextBox Text2
DataField = "姓名"
DataSource = "Data1"
Height = 315
Left = 1140
TabIndex = 6
Top = 405
Width = 1470
End
Begin VB.TextBox Text1
DataField = "学号"
DataSource = "Data1"
Height = 315
Left = 1140
TabIndex = 5
Top = 45
Width = 1470
End
Begin VB.Label Label5
Caption = "班级"
Height = 375
Left = 45
TabIndex = 4
Top = 1590
Width = 930
End
Begin VB.Label Label4
Caption = "出生日期"
Height = 345
Left = 45
TabIndex = 3
Top = 1206
Width = 825
End
Begin VB.Label Label3
Caption = "性别"
Height = 360
Left = 45
TabIndex = 2
Top = 809
Width = 870
End
Begin VB.Label Label2
Caption = "姓名"
Height = 360
Left = 45
TabIndex = 1
Top = 412
Width = 780
End
Begin VB.Label Label1
Caption = "学号"
Height = 300
Left = 45
TabIndex = 0
Top = 75
Width = 960
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Data1.Recordset.MoveFirst
End Sub
Private Sub Command2_Click()
If Not Data1.Recordset.BOF Then Data1.Recordset.MovePrevious
End Sub
Private Sub Command3_Click()
If Not Data1.Recordset.EOF Then Data1.Recordset.MoveNext
End Sub
Private Sub Command4_Click()
Data1.Recordset.MoveLast
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -