📄 frmchangshang.frm
字号:
VERSION 5.00
Begin VB.Form frmchangshang
Caption = "神兵国际广告(北京)有限公司广告系统"
ClientHeight = 7200
ClientLeft = 60
ClientTop = 345
ClientWidth = 9585
LinkTopic = "Form1"
ScaleHeight = 7200
ScaleWidth = 9585
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command3
Caption = " 取 消 "
Height = 615
Left = 6720
TabIndex = 10
Top = 4680
Width = 1335
End
Begin VB.CommandButton Command2
Caption = " 重 置 "
Height = 615
Left = 4320
TabIndex = 9
Top = 4680
Width = 1815
End
Begin VB.CommandButton command1
Caption = " 添 加 "
Height = 495
Left = 2040
TabIndex = 8
Top = 4800
Width = 1695
End
Begin VB.TextBox Text4
Height = 1095
Left = 3960
TabIndex = 7
Top = 3360
Width = 3255
End
Begin VB.TextBox Text3
Height = 270
Left = 3960
TabIndex = 6
Top = 2640
Width = 1695
End
Begin VB.TextBox Text2
Height = 270
Left = 3960
TabIndex = 5
Top = 2040
Width = 1575
End
Begin VB.TextBox Text1
Height = 270
Left = 3960
TabIndex = 4
Top = 1560
Width = 1575
End
Begin VB.Label Label6
Caption = "(秒)"
Height = 375
Left = 5760
TabIndex = 12
Top = 2760
Width = 855
End
Begin VB.Label Label5
Alignment = 2 'Center
BackColor = &H00FF8080&
BorderStyle = 1 'Fixed Single
Caption = " 厂 商 信 息 添 加 "
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 495
Left = 0
TabIndex = 11
Top = 0
Width = 9615
End
Begin VB.Label Label4
Caption = "备注:"
Height = 375
Left = 2880
TabIndex = 3
Top = 3360
Width = 2055
End
Begin VB.Label Label3
Caption = "广告长度:"
Height = 375
Left = 2880
TabIndex = 2
Top = 2640
Width = 2175
End
Begin VB.Label Label2
Caption = "广告内容:"
Height = 375
Left = 2880
TabIndex = 1
Top = 2040
Width = 1815
End
Begin VB.Label Label1
Caption = "产品品牌:"
Height = 375
Left = 2880
TabIndex = 0
Top = 1560
Width = 1455
End
End
Attribute VB_Name = "frmchangshang"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "" Then
msg = MsgBox("请完整输入字段", 16, "错误")
Text1.SetFocus
Exit Sub
End If
If Text2.Text = "" Then
msg = MsgBox("请完整输入字段", 16, "错误")
Text2.SetFocus
Exit Sub
End If
If Text3.Text = "" Then
msg = MsgBox("请完整输入字段", 16, "错误")
Text3.SetFocus
Exit Sub
End If
If Text4.Text = "" Then
msg = MsgBox("请完整输入字段", 16, "错误")
Text4.SetFocus
Exit Sub
End If
Dim sql As String
Dim str As String
Dim con As ADODB.Connection
Set con = New Connection
str = "provider=microsoft.jet.oledb.4.0;Data Source=" & App.Path & "\database.mdb"
con.Open str
con.Execute "insert into [changshang]([logo],[content],[size],[other]) values('" & Trim(Text1.Text) & "','" & Trim(Text2.Text) & "','" & Trim(Text3.Text) & "','" & Trim(Text4.Text) & "')"
con.Close
Set con = Nothing
msg = MsgBox("恭喜!添加厂商信息成功", 64, "信息")
Unload Me
frmmain.Show
End Sub
Private Sub frmchangshang_Click()
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
End Sub
Private Sub Command3_Click()
Unload Me
frmmain.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -