?? form1.frm
字號:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form Form1
Caption = "連接加密的Access數(shù)據(jù)庫(使用dao控件)"
ClientHeight = 4320
ClientLeft = 60
ClientTop = 345
ClientWidth = 8025
LinkTopic = "Form1"
ScaleHeight = 4320
ScaleWidth = 8025
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command4
Caption = "最后一條"
Height = 345
Left = 4485
TabIndex = 5
Top = 3750
Width = 1365
End
Begin VB.CommandButton Command1
Caption = "第一條"
Height = 345
Left = 405
TabIndex = 4
Top = 3750
Width = 1365
End
Begin VB.CommandButton Command3
Caption = "下一條"
Height = 345
Left = 3135
TabIndex = 3
Top = 3750
Width = 1365
End
Begin VB.CommandButton Command2
Caption = "上一條"
Height = 345
Left = 1755
TabIndex = 2
Top = 3750
Width = 1365
End
Begin VB.CommandButton Command11
Caption = "退出"
Height = 360
Left = 6195
TabIndex = 1
Top = 3750
Width = 1470
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "Form1.frx":0000
Height = 2835
Left = 195
OleObjectBlob = "Form1.frx":0014
TabIndex = 0
Top = 630
Width = 7665
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "E:\編程技巧\xcx\連接加密的access數(shù)據(jù)庫(使用dao控件)\sj.mdb"
DefaultCursorType= 0 '缺省游標(biāo)
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 375
Left = 420
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "sy"
Top = 3270
Visible = 0 'False
Width = 4575
End
Begin VB.Label Label1
Caption = "藥品名稱數(shù)據(jù)清單"
Height = 315
Left = 3090
TabIndex = 6
Top = 270
Width = 2805
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Data1.DatabaseName = App.Path & "\sj.mdb" '設(shè)置連接數(shù)據(jù)庫
Data1.Connect = ";pwd=" & 111 '設(shè)置連接密碼
Data1.RecordSource = "sy" '設(shè)置數(shù)據(jù)表
Data1.Refresh
End Sub
Private Sub Command1_Click() '移動記錄到第一行
If Not Data1.Recordset.BOF Then 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() '移動記錄到最后一行
If Not Data1.Recordset.EOF Then Data1.Recordset.MoveLast
End Sub
Private Sub Command11_Click()
End
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -