📄 frminput.frm
字号:
End
Begin VB.TextBox Text2
BackColor = &H00C0FFFF&
DataField = "数量"
DataSource = "Adodc1"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 1440
TabIndex = 0
Top = 720
Width = 1800
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 480
Top = 5160
Visible = 0 'False
Width = 1935
_ExtentX = 3413
_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=wl.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=wl.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "jh"
Caption = "浏览"
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 = 2040
Top = 5160
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_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=wl.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=wl.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "gongxiao"
Caption = "浏览"
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 = "frmInput.frx":002A
DataField = "批号"
DataSource = "Adodc1"
Height = 330
Left = 4560
TabIndex = 14
Top = 720
Width = 1695
_ExtentX = 2990
_ExtentY = 582
_Version = 393216
BackColor = 12632064
ListField = "批号"
BoundColumn = "批号"
Text = ""
End
Begin MSAdodcLib.Adodc Adodc3
Height = 330
Left = 3120
Top = 5160
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_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=wl.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=wl.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "kcdh"
Caption = "浏览"
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 Adodc4
Height = 330
Left = 4080
Top = 4920
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_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=wl.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=wl.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from kcdh"
Caption = "浏览"
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.Label Label6
AutoSize = -1 'True
Caption = "批号"
Height = 180
Left = 3600
TabIndex = 15
Top = 720
Width = 360
End
Begin VB.Label lblPrice
AutoSize = -1 'True
Caption = "单价(元):"
Height = 255
Left = 480
TabIndex = 8
Top = 1200
Width = 855
End
Begin VB.Label lblInputDate
AutoSize = -1 'True
Caption = "进货日期:"
Height = 255
Left = 3600
TabIndex = 7
Top = 1200
Width = 855
End
Begin VB.Label lblProduct
AutoSize = -1 'True
Caption = "数量"
Height = 255
Left = 480
TabIndex = 4
Top = 720
Width = 375
End
Begin VB.Label lblID
AutoSize = -1 'True
Caption = "编号:"
Height = 255
Left = 480
TabIndex = 3
Top = 240
Width = 495
End
Begin VB.Label lblFactory
AutoSize = -1 'True
Caption = "供应商:"
Height = 180
Left = 3600
TabIndex = 2
Top = 240
Width = 630
End
End
Attribute VB_Name = "frmInput"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdLogCancel_Click()
Adodc1.Refresh
End Sub
Private Sub Command1_Click()
On Error Resume Next
Adodc1.Recordset.Delete
End Sub
Private Sub Command2_Click()
On Error Resume Next
Adodc1.Recordset.AddNew
End Sub
Private Sub Command3_Click()
Adodc1.Recordset.Save
End Sub
Private Sub DataCombo2_Change()
t1 = DataCombo2.Text
Adodc4.RecordSource = "select * from kcdh where 批号='" + t1 + "'"
Adodc4.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -