⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmdaili.frm

📁 本系统是北京神兵广告有限公司的广告系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmdaili 
   Caption         =   "神兵国际广告(北京)有限公司广告系统"
   ClientHeight    =   7200
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   9585
   LinkTopic       =   "Form1"
   ScaleHeight     =   7200
   ScaleWidth      =   9585
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text6 
      Height          =   735
      Left            =   6240
      TabIndex        =   13
      Top             =   3240
      Width           =   2295
   End
   Begin VB.TextBox Text5 
      Height          =   735
      Left            =   2640
      TabIndex        =   12
      Top             =   3240
      Width           =   2295
   End
   Begin VB.TextBox Text4 
      Height          =   270
      Left            =   6240
      TabIndex        =   11
      Top             =   2520
      Width           =   1455
   End
   Begin VB.TextBox Text3 
      Height          =   270
      Left            =   2880
      TabIndex        =   10
      Top             =   2400
      Width           =   1455
   End
   Begin VB.TextBox Text2 
      Height          =   270
      Left            =   6240
      TabIndex        =   9
      Top             =   1680
      Width           =   1455
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Left            =   2880
      TabIndex        =   8
      Top             =   1680
      Width           =   1455
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   615
      Left            =   5760
      TabIndex        =   7
      Top             =   4320
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "添加"
      Height          =   615
      Left            =   3240
      TabIndex        =   6
      Top             =   4320
      Width           =   1455
   End
   Begin VB.Label Label7 
      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        =   14
      Top             =   0
      Width           =   9615
   End
   Begin VB.Label Label6 
      Caption         =   "备注:"
      Height          =   375
      Left            =   5280
      TabIndex        =   5
      Top             =   3240
      Width           =   735
   End
   Begin VB.Label Label5 
      Caption         =   "地址:"
      Height          =   255
      Left            =   1800
      TabIndex        =   4
      Top             =   3240
      Width           =   1455
   End
   Begin VB.Label Label4 
      Caption         =   "邮编:"
      Height          =   375
      Left            =   5280
      TabIndex        =   3
      Top             =   2520
      Width           =   735
   End
   Begin VB.Label Label3 
      Caption         =   "电话:"
      Height          =   255
      Left            =   1800
      TabIndex        =   2
      Top             =   2400
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "联系人:"
      Height          =   375
      Left            =   5280
      TabIndex        =   1
      Top             =   1680
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "代理商:"
      Height          =   255
      Left            =   1800
      TabIndex        =   0
      Top             =   1680
      Width           =   855
   End
End
Attribute VB_Name = "frmdaili"
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
If Text5.Text = "" Then
msg = MsgBox("请完整输入字段", 16, "错误")
Text5.SetFocus
Exit Sub
End If
If Text6.Text = "" Then
msg = MsgBox("请完整输入字段", 16, "错误")
Text6.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 [daili]([name],[who],[phone],[postman],[addr],[other]) values('" & Trim(Text1.Text) & "','" & Trim(Text2.Text) & "','" & Trim(Text3.Text) & "','" & Trim(Text4.Text) & "','" & Trim(Text6.Text) & "','" & Trim(Text6.Text) & "')"
con.Close
Set con = Nothing
msg = MsgBox("恭喜!添加代理广告公司信息成功", 64, "信息")
Unload Me
frmmain.Show
End Sub


Private Sub Command2_Click()
Unload Me
frmmain.Show
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -