?? 用戶管理.frm
字號(hào):
VERSION 5.00
Begin VB.Form Form20
Caption = "用戶管理"
ClientHeight = 3870
ClientLeft = 60
ClientTop = 345
ClientWidth = 6765
Icon = "用戶管理.frx":0000
LinkTopic = "Form20"
MDIChild = -1 'True
Picture = "用戶管理.frx":08CA
ScaleHeight = 3870
ScaleWidth = 6765
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "D:\zj\db.mdb"
DefaultCursorType= 0 '缺省游標(biāo)
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 285
Left = 3120
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "用戶管理"
Top = 3360
Visible = 0 'False
Width = 1575
End
Begin VB.CommandButton Command2
Caption = "下一條"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3600
TabIndex = 5
Top = 2640
Width = 975
End
Begin VB.CommandButton Command1
Caption = "上一條"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2160
TabIndex = 4
Top = 2640
Width = 1095
End
Begin VB.TextBox Text2
DataField = "用戶名"
DataSource = "Data1"
Height = 270
Left = 2880
TabIndex = 3
Top = 1560
Width = 2175
End
Begin VB.TextBox Text1
DataField = "用戶編號(hào)"
DataSource = "Data1"
Height = 270
Left = 2880
TabIndex = 2
Top = 720
Width = 2175
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "用戶名:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1560
TabIndex = 1
Top = 1560
Width = 975
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "用戶編號(hào):"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1560
TabIndex = 0
Top = 720
Width = 1095
End
End
Attribute VB_Name = "Form20"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Data1.Recordset.MovePrevious
If Data1.Recordset.BOF Then
Data1.Recordset.MoveFirst
MsgBox "已經(jīng)是第一條記錄!"
End If
End Sub
Private Sub Command2_Click()
Data1.Recordset.MoveNext
If Data1.Recordset.EOF Then
Data1.Recordset.MoveLast
MsgBox "已經(jīng)是最后一條記錄!"
End If
End Sub
Private Sub Form_Load()
Data1.DatabaseName = App.Path & "\db.mdb"
Data1.Refresh
Me.Width = 6885
Me.Height = 4275
Text1.Locked = True
Text2.Locked = True
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -