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

📄 addcustomer.frm

📁 药品管理系统,药品的进销,药品的过期以及药品系统的备分
💻 FRM
字号:
VERSION 5.00
Begin VB.Form addcustomer 
   Caption         =   "添加会员"
   ClientHeight    =   4530
   ClientLeft      =   510
   ClientTop       =   420
   ClientWidth     =   6525
   LinkTopic       =   "Form1"
   ScaleHeight     =   4530
   ScaleWidth      =   6525
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "添加会员"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   3495
      Left            =   480
      TabIndex        =   0
      Top             =   600
      Width           =   5175
      Begin VB.TextBox Text4 
         Height          =   375
         Left            =   1200
         TabIndex        =   10
         Top             =   2280
         Width           =   2535
      End
      Begin VB.CommandButton Command2 
         Caption         =   "取消"
         Height          =   375
         Left            =   2640
         TabIndex        =   8
         Top             =   3000
         Width           =   1095
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定"
         Default         =   -1  'True
         Height          =   375
         Left            =   1200
         TabIndex        =   7
         Top             =   3000
         Width           =   1095
      End
      Begin VB.TextBox Text3 
         Height          =   375
         Left            =   1200
         TabIndex        =   6
         Top             =   1560
         Width           =   2535
      End
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   1200
         TabIndex        =   5
         Top             =   960
         Width           =   2535
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   1200
         TabIndex        =   4
         Top             =   360
         Width           =   2535
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "余额信息:"
         Height          =   180
         Left            =   120
         TabIndex        =   9
         Top             =   2280
         Width           =   900
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "联系方式:"
         Height          =   180
         Left            =   120
         TabIndex        =   3
         Top             =   1680
         Width           =   900
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "会员名:"
         Height          =   180
         Left            =   300
         TabIndex        =   2
         Top             =   1080
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "会员编号:"
         Height          =   180
         Left            =   120
         TabIndex        =   1
         Top             =   480
         Width           =   900
      End
   End
End
Attribute VB_Name = "addcustomer"
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 "Enter a customerid Please:", vbCritical
        Text1.SetFocus
        Exit Sub
    End If

   If Text2.Text = "" Then
        MsgBox "Enter a Name Please:", vbCritical
        Text1.SetFocus
        Exit Sub
    End If
    Call openconn
    sqlstr = "insert into customer values('" & Text1.Text & "','" & Text2.Text & "','" & Text3.Text & "','" & Text4.Text & "')"
    Call rs(sqlstr)
    Call closeconn
    
    MsgBox "Customer Created Successfully!", vbInformation
        
    Unload Me
End Sub

Private Sub Command2_Click()
     Unload Me
End Sub

⌨️ 快捷键说明

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