📄 form3.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form3
Caption = "Form3"
ClientHeight = 4020
ClientLeft = 60
ClientTop = 450
ClientWidth = 6735
LinkTopic = "Form3"
ScaleHeight = 4020
ScaleWidth = 6735
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "Command2"
Height = 495
Left = 2400
TabIndex = 2
Top = 960
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 495
Left = 720
TabIndex = 1
Top = 960
Width = 1215
End
Begin VB.TextBox Text1
DataSource = "Adodc1"
Height = 495
Left = 360
TabIndex = 0
Text = "Text1"
Top = 360
Width = 3375
End
Begin MSAdodcLib.Adodc Adodc1
Height = 615
Left = 600
Top = 1560
Width = 3495
_ExtentX = 6165
_ExtentY = 1085
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
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()
Adodc1.Recordset.MovePrevious
End Sub
Private Sub Command2_Click()
Adodc1.Recordset.MoveNext
End Sub
Private Sub Form_Load()
'Dim str As String
'str = App.Path + "\JELL.mdb"
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" & App.Path & "\JELL.mdb"
'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\shujuku_elec05\JELL.mdb;Persist Security Info=False
'Adodc1.Refresh
'Adodc1.RecordSource = "select * from 商品交易表1"
Adodc1.RecordSource = "商品交易表1"
Text1.DataField = "交易日期"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -