📄 进货.frm
字号:
VERSION 5.00
Begin VB.Form 进货
Caption = "进货"
ClientHeight = 5865
ClientLeft = 60
ClientTop = 450
ClientWidth = 4935
LinkTopic = "Form1"
ScaleHeight = 5865
ScaleWidth = 4935
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text6
Height = 375
Left = 1200
TabIndex = 11
Top = 3000
Width = 1935
End
Begin VB.CommandButton Command2
Caption = "返回"
Height = 495
Left = 3360
TabIndex = 9
Top = 3360
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "提交"
Height = 495
Left = 3360
TabIndex = 8
Top = 2760
Width = 1095
End
Begin VB.TextBox Text5
Height = 375
Left = 1200
TabIndex = 7
Top = 2400
Width = 1935
End
Begin VB.TextBox Text4
Height = 375
Left = 1200
TabIndex = 5
Top = 1680
Width = 1935
End
Begin VB.TextBox Text2
Height = 375
Left = 1200
TabIndex = 3
Top = 840
Width = 1935
End
Begin VB.TextBox Text1
Height = 375
Left = 1200
TabIndex = 0
Top = 120
Width = 1935
End
Begin VB.Label Label6
Caption = "联系电话"
Height = 255
Left = 120
TabIndex = 10
Top = 3000
Width = 735
End
Begin VB.Label Label5
Caption = "供应商"
Height = 375
Left = 120
TabIndex = 6
Top = 2400
Width = 855
End
Begin VB.Label Label4
Caption = "价 格"
Height = 495
Left = 120
TabIndex = 4
Top = 1680
Width = 975
End
Begin VB.Label Label2
Caption = "类 型"
Height = 375
Left = 120
TabIndex = 2
Top = 960
Width = 735
End
Begin VB.Label Label1
Caption = "卡 号"
Height = 375
Left = 120
TabIndex = 1
Top = 240
Width = 735
End
End
Attribute VB_Name = "进货"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox ("名称不能为空!")
Else
Dim conn As New ADODB.Connection
conn.ConnectionString = "file name=connect.udl"
conn.Open
conn.Execute "insert into 库存 (卡号,类型,价格,供应商,联系电话) values ('" + Text1.Text + "','" + Text2.Text + "','" + Text4.Text + "','" + Text5.Text + "','" + Text6.Text + "') "
Text1.Text = ""
Text2.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
End If
End Sub
Private Sub Command2_Click()
Unload 进货
电信进销存管理系统.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -