📄 form3.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form3
Caption = "Form3"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form3"
MDIChild = -1 'True
ScaleHeight = 3195
ScaleWidth = 4680
Begin VB.CommandButton Command4
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1095
Left = 360
TabIndex = 22
Top = 8280
Width = 2535
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 120
Top = 6000
Width = 6480
_ExtentX = 11430
_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.3.51;Persist Security Info=False;Data Source=D:\信息系统作业\产品数据库1.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=D:\信息系统作业\产品数据库1.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "chanpinluru"
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
Begin VB.Frame Frame1
Caption = "输入发生日期"
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 5655
Left = 120
TabIndex = 13
Top = 120
Width = 6735
Begin VB.TextBox Text1
DataField = "发生日期"
DataSource = "Adodc1"
Height = 495
Left = 1800
TabIndex = 0
Top = 480
Width = 2295
End
Begin VB.TextBox Text2
DataField = "产品助录"
DataSource = "Adodc1"
Height = 495
Left = 1800
TabIndex = 1
Top = 1200
Width = 2295
End
Begin VB.TextBox Text3
DataField = "零售数量"
DataSource = "Adodc1"
Height = 495
Left = 1800
TabIndex = 2
Top = 1920
Width = 2295
End
Begin VB.TextBox Text4
DataField = "批发数量"
DataSource = "Adodc1"
Height = 495
Left = 1800
TabIndex = 3
Top = 2640
Width = 2295
End
Begin VB.TextBox Text5
DataField = "单位"
DataSource = "Adodc1"
Height = 495
Left = 1800
TabIndex = 4
Top = 3360
Width = 2295
End
Begin VB.TextBox Text6
DataField = "代码"
DataSource = "Adodc1"
Height = 495
Left = 1800
TabIndex = 5
Top = 3840
Width = 2295
End
Begin VB.TextBox Text7
DataField = "产品名称"
DataSource = "Adodc1"
Height = 495
Left = 1800
TabIndex = 6
Top = 4440
Width = 2295
End
Begin VB.TextBox Text8
DataField = "类别"
DataSource = "Adodc1"
Height = 495
Left = 1800
TabIndex = 7
Top = 5040
Width = 2295
End
Begin VB.Label Label1
Caption = "发生日期:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 21
Top = 600
Width = 1335
End
Begin VB.Label Label2
Caption = "产品助录:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 20
Top = 1320
Width = 1215
End
Begin VB.Label Label3
Caption = "零售数量:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 19
Top = 2040
Width = 1215
End
Begin VB.Label Label4
Caption = "批发数量:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 18
Top = 2760
Width = 1215
End
Begin VB.Label Label5
Caption = "单位:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 360
TabIndex = 17
Top = 3360
Width = 1215
End
Begin VB.Label Label6
Caption = "代码:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 360
TabIndex = 16
Top = 3960
Width = 1335
End
Begin VB.Label Label7
Caption = "产品名称:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 360
TabIndex = 15
Top = 4560
Width = 1095
End
Begin VB.Label Label8
Caption = "类别:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 360
TabIndex = 14
Top = 5040
Width = 1215
End
End
Begin VB.CommandButton Command1
Caption = "添加"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1095
Left = 360
TabIndex = 8
Top = 6720
Width = 2415
End
Begin VB.CommandButton Command2
Caption = "放弃"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1095
Left = 3720
TabIndex = 9
Top = 6720
Width = 2775
End
Begin VB.Frame Frame2
Caption = " 发生日期 产品助录 零售数量 批发数量 单位 代码 产品名称 类别 "
Height = 8655
Left = 6960
TabIndex = 10
Top = 240
Width = 8295
Begin VB.ListBox List1
DataSource = "Adodc1"
Height = 8340
Left = 120
TabIndex = 12
Top = 240
Width = 8175
End
End
Begin VB.CommandButton Command3
Caption = "退出"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1095
Left = 3840
TabIndex = 11
Top = 8160
Width = 2655
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()
List1.Clear
Dim X As String, Y As String, z As Integer, a As Integer, b As String, c As Integer, d As String, e As String, p As String
X = Text1.Text: Y = Text2.Text: z = Val(Text3.Text): a = Val(Text4.Text): b = Text5.Text: c = Text6.Text: d = Text7.Text: e = Text8.Text
p = Format(X, "!@@@@@@@@@@@@") & Format(Y, "@@@@@@@@") & Format(z, "@@@@@@@@@") & Format(a, "@@@@@@@@@@@@") & Format(c, "@@@@@@@@@@@@") & Format(d, "@@@@@@@@@@") & Format(e, "@@@@@@@@")
List1.AddItem p
Adodc1.Recordset.AddNew
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text1.SetFocus
Text2.SetFocus
Text3.SetFocus
Text4.SetFocus
Text5.SetFocus
Text6.SetFocus
Text7.SetFocus
Text8.SetFocus
End Sub
Private Sub Command3_Click()
Unload Form3
Load MDIForm1
MDIForm1.Show
End Sub
Private Sub Command4_Click()
Adodc1.Recordset.UpdateBatch adAffectAll
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -