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

📄 简易银行卡管理系统.frm

📁 。简易银行卡管理系统为银行管理层提供全面的银行卡客户分析
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Addform 
   Caption         =   "添加用户"
   ClientHeight    =   6270
   ClientLeft      =   60
   ClientTop       =   510
   ClientWidth     =   5340
   LinkTopic       =   "Form1"
   ScaleHeight     =   6270
   ScaleWidth      =   5340
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox txtValue 
      Height          =   375
      Index           =   5
      Left            =   2160
      TabIndex        =   13
      Top             =   4560
      Width           =   2415
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消"
      Height          =   375
      Left            =   3000
      TabIndex        =   11
      Top             =   5400
      Width           =   1095
   End
   Begin VB.CommandButton cmdAdd 
      Caption         =   "添加"
      Height          =   375
      Left            =   720
      TabIndex        =   6
      Top             =   5400
      Width           =   1215
   End
   Begin VB.TextBox txtValue 
      Height          =   375
      Index           =   4
      Left            =   2160
      TabIndex        =   10
      Top             =   3720
      Width           =   2415
   End
   Begin VB.TextBox txtValue 
      Height          =   375
      Index           =   3
      Left            =   2160
      TabIndex        =   9
      Top             =   2880
      Width           =   2415
   End
   Begin VB.TextBox txtValue 
      Height          =   375
      Index           =   2
      Left            =   2160
      TabIndex        =   8
      Top             =   2040
      Width           =   2415
   End
   Begin VB.TextBox txtValue 
      Height          =   375
      Index           =   1
      Left            =   2160
      TabIndex        =   7
      Top             =   1200
      Width           =   2415
   End
   Begin VB.TextBox txtValue 
      Height          =   375
      Index           =   0
      Left            =   2160
      TabIndex        =   5
      Top             =   360
      Width           =   2415
   End
   Begin VB.Label lblField 
      Caption         =   "住址"
      Height          =   375
      Index           =   5
      Left            =   720
      TabIndex        =   12
      Top             =   4560
      Width           =   855
   End
   Begin VB.Label lblField 
      Caption         =   "联系电话"
      Height          =   375
      Index           =   4
      Left            =   720
      TabIndex        =   4
      Top             =   3720
      Width           =   855
   End
   Begin VB.Label lblField 
      Caption         =   "身份证号"
      Height          =   375
      Index           =   3
      Left            =   720
      TabIndex        =   3
      Top             =   2880
      Width           =   855
   End
   Begin VB.Label lblField 
      Caption         =   "姓名"
      Height          =   375
      Index           =   2
      Left            =   720
      TabIndex        =   2
      Top             =   2040
      Width           =   855
   End
   Begin VB.Label lblField 
      Caption         =   "卡号"
      Height          =   375
      Index           =   1
      Left            =   720
      TabIndex        =   1
      Top             =   1200
      Width           =   855
   End
   Begin VB.Label lblField 
      Caption         =   "帐号ID"
      Height          =   375
      Index           =   0
      Left            =   720
      TabIndex        =   0
      Top             =   360
      Width           =   855
   End
End
Attribute VB_Name = "Addform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdAdd_Click()
 '打开错误处理陷阱
    Dim intErrFileNo As Integer  '自由文件号
    On Error GoTo ErrGoto
    '----------------------------------------------------
    '生成SQL语句
    SQL = "INSERT INTO 用户表(帐号ID,卡号,姓名,身份证号,联系电话,住址) VALUES("""
    SQL = SQL & txtValue(0).Text & ""","""
    SQL = SQL & txtValue(1).Text & ""","""
    SQL = SQL & txtValue(2).Text & ""","""
    SQL = SQL & txtValue(3).Text & ""","""
    SQL = SQL & txtValue(4).Text & ""","""
    SQL = SQL & txtValue(5).Text & """)"
    
    '打开连接
    OpenDBFile
    '执行SQL语句
    gCon.Execute SQL
    '关闭连接
    CloseDBFile
    '刷新数据
    BCNewUserform.Adodc1.Refresh
    '隐藏窗体
    Me.Hide
    '----------------------------------------------------
    Exit Sub
    '-----------------------------
ErrGoto:
    '把错误信息保存在文件里
    intErrFileNo = FreeFile()
    Open "YFSystem.ini" For Append As intErrFileNo
    Print #intErrFileNo, Chr(34) + Format(Now, "YYYY-MM-DD HH:MM:SS") + Chr(34), Chr(34) + "信息" + Chr(34), Chr(34) + Err.Description + Chr(34), Chr(34) + "cmdAdd_Click(Addform)" + Chr(34), Chr(34) + App.Title + Chr(34)
    Close #intErrFileNo
End Sub

Private Sub cmdCancel_Click()
 Me.Hide
End Sub

'初始化
Private Sub Form_activate()
    lblField(0).Caption = "帐号ID"
    lblField(1).Caption = "卡号"
    lblField(2).Caption = "姓名"
    lblField(3).Caption = "身份证号"
    lblField(4).Caption = "联系电话"
    lblField(5).Caption = "住址"
    For i = 0 To 5
        txtValue(i) = ""
    Next
End Sub

⌨️ 快捷键说明

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