📄 datacombo.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form Form1
Caption = "订单"
ClientHeight = 3165
ClientLeft = 60
ClientTop = 345
ClientWidth = 4650
LinkTopic = "Form1"
ScaleHeight = 3165
ScaleWidth = 4650
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc3
Height = 330
Left = 1680
Top = 2400
Visible = 0 'False
Width = 1215
_ExtentX = 2143
_ExtentY = 582
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 = $"DataCombo.frx":0000
OLEDBString = $"DataCombo.frx":0091
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "运货商"
Caption = "Adodc3"
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
Begin VB.CommandButton Command2
Caption = "下一条"
Height = 255
Left = 3000
TabIndex = 12
Top = 2520
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "上一条"
Height = 255
Left = 240
TabIndex = 11
Top = 2520
Width = 1335
End
Begin MSDataListLib.DataCombo DataCombo1
Bindings = "DataCombo.frx":0122
DataField = "客户ID"
DataSource = "Adodc2"
Height = 330
Left = 1560
TabIndex = 8
Top = 480
Width = 2775
_ExtentX = 4895
_ExtentY = 582
_Version = 393216
ListField = "公司名称"
BoundColumn = "客户ID"
Text = "DataCombo1"
End
Begin VB.TextBox Text1
DataField = "订单ID"
DataSource = "Adodc2"
Height = 375
Left = 1560
TabIndex = 3
Text = "Text1"
Top = 120
Width = 2775
End
Begin VB.TextBox Text3
DataField = "订购日期"
DataSource = "Adodc2"
Height = 375
Left = 1560
TabIndex = 2
Text = "Text1"
Top = 840
Width = 2775
End
Begin VB.TextBox Text4
DataField = "到货日期"
DataSource = "Adodc2"
Height = 375
Left = 1560
TabIndex = 1
Text = "Text1"
Top = 1200
Width = 2775
End
Begin VB.TextBox Text5
DataField = "发货日期"
DataSource = "Adodc2"
Height = 375
Left = 1560
TabIndex = 0
Text = "Text1"
Top = 1560
Width = 2775
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 120
Top = 2760
Visible = 0 'False
Width = 2175
_ExtentX = 3836
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=data.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=data.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "Select 客户ID,公司名称 from 客户"
Caption = "adoRSource"
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
Begin MSAdodcLib.Adodc Adodc2
Height = 330
Left = 2400
Top = 2760
Visible = 0 'False
Width = 2175
_ExtentX = 3836
_ExtentY = 582
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 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=data.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=data.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "订单"
Caption = "adoDSource"
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
Begin MSDataListLib.DataCombo DataCombo2
Bindings = "DataCombo.frx":0137
DataField = "运货商"
DataSource = "Adodc2"
Height = 330
Left = 1560
TabIndex = 13
Top = 1920
Width = 2775
_ExtentX = 4895
_ExtentY = 582
_Version = 393216
ListField = "公司名称"
BoundColumn = "运货商ID"
Text = "DataCombo1"
End
Begin VB.Label Label6
Caption = "运货方式"
Height = 255
Left = 360
TabIndex = 10
Top = 2040
Width = 1215
End
Begin VB.Label Label5
Caption = "发货日期"
Height = 255
Left = 360
TabIndex = 9
Top = 1680
Width = 1215
End
Begin VB.Label Label4
Caption = "客户名称"
Height = 255
Left = 360
TabIndex = 7
Top = 600
Width = 1215
End
Begin VB.Label Label1
Caption = "订单ID"
Height = 255
Left = 360
TabIndex = 6
Top = 240
Width = 1215
End
Begin VB.Label Label2
Caption = "订货日期"
Height = 255
Left = 360
TabIndex = 5
Top = 960
Width = 1215
End
Begin VB.Label Label3
Caption = "到货日期"
Height = 255
Left = 360
TabIndex = 4
Top = 1320
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'下一条
Private Sub command2_Click()
Adodc2.Recordset.MoveNext
Command1.Enabled = True
If Adodc2.Recordset.EOF Then
Adodc2.Recordset.MoveLast
Command2.Enabled = False
End If
End Sub
'上一条
Private Sub command1_Click()
Adodc2.Recordset.MovePrevious
Command2.Enabled = True
If Adodc2.Recordset.BOF Then
Adodc2.Recordset.MoveFirst
Command1.Enabled = False
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -