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

📄 newaccount1.frm

📁 vb做的银行管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form newaccount1 
   Caption         =   "开户1"
   ClientHeight    =   6045
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8850
   LinkTopic       =   "Form1"
   ScaleHeight     =   6045
   ScaleWidth      =   8850
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   5
      Left            =   2040
      TabIndex        =   17
      Top             =   3960
      Width           =   1815
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   4
      Left            =   2040
      Locked          =   -1  'True
      TabIndex        =   16
      Top             =   3600
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   3
      Left            =   2040
      TabIndex        =   15
      Top             =   3240
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   2
      Left            =   2040
      TabIndex        =   14
      Top             =   2880
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   1
      Left            =   2040
      TabIndex        =   13
      Top             =   2520
      Width           =   2535
   End
   Begin VB.Frame Frame1 
      Caption         =   "用户基本数据"
      Height          =   4095
      Left            =   600
      TabIndex        =   3
      Top             =   1560
      Width           =   6615
      Begin VB.TextBox Text1 
         Height          =   270
         Index           =   0
         Left            =   1440
         TabIndex        =   12
         Top             =   600
         Width           =   2535
      End
      Begin VB.CommandButton Command2 
         Caption         =   "取消"
         Height          =   375
         Left            =   3600
         TabIndex        =   11
         Top             =   3240
         Width           =   1215
      End
      Begin VB.CommandButton Command1 
         Caption         =   "下一步"
         Height          =   375
         Left            =   1560
         TabIndex        =   10
         Top             =   3240
         Width           =   1095
      End
      Begin VB.Label Label9 
         Caption         =   "开户金额:"
         Height          =   255
         Left            =   360
         TabIndex        =   9
         Top             =   2400
         Width           =   975
      End
      Begin VB.Label Label8 
         Caption         =   "操作员卡号:"
         Height          =   255
         Left            =   240
         TabIndex        =   8
         Top             =   2040
         Width           =   1215
      End
      Begin VB.Label Label7 
         Caption         =   "电话号码:"
         Height          =   255
         Left            =   360
         TabIndex        =   7
         Top             =   1680
         Width           =   975
      End
      Begin VB.Label Label6 
         Caption         =   "用户住址:"
         Height          =   255
         Left            =   360
         TabIndex        =   6
         Top             =   1320
         Width           =   1095
      End
      Begin VB.Label Label5 
         Caption         =   "身份证号:"
         Height          =   255
         Left            =   360
         TabIndex        =   5
         Top             =   960
         Width           =   975
      End
      Begin VB.Label Label4 
         Caption         =   "用户姓名:"
         Height          =   255
         Left            =   360
         TabIndex        =   4
         Top             =   600
         Width           =   975
      End
   End
   Begin VB.Label Label3 
      Alignment       =   2  'Center
      Caption         =   "第一步"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   6720
      TabIndex        =   2
      Top             =   960
      Width           =   1335
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      Caption         =   "First"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   240
      TabIndex        =   1
      Top             =   960
      Width           =   1095
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      Caption         =   "请输入用户基本数据"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   18
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   1680
      TabIndex        =   0
      Top             =   600
      Width           =   4695
   End
End
Attribute VB_Name = "newaccount1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'响应下一步按扭
Private Sub Command1_Click()
''''''''''''''''''''''''''''''''''''''''''''''''''
'确认输入的信息是正确的
''''''''''''''''''''''''''''''''''''''''''''''''''
newaccount1.Refresh              '刷新界面
For i = 0 To 5                    '如果某项输入为空,则提示
    If Text1(i).Text = "" Then
        MsgBox "请将各项填写完整", vbExclamation, "错误"
       Exit Sub
    End If
Next i
'''''''''''''''''''''''''''''''''''''''''''''''''
 '''''''''''''''''''''''''''''''''''''''''''如果用户的输入超出指定的长度↓
    If Len(Text1(0).Text) > 12 Then
        MsgBox "开户人姓名不得长于12位"
        Exit Sub
    ElseIf Len(Text1(1).Text) > 20 Then
        MsgBox "身份证号不得长于20位"
        Exit Sub
    ElseIf Len(Text1(2).Text) > 50 Then
        MsgBox "开户人用户住址不得长于50位"
        Exit Sub
    ElseIf Len(Text1(3).Text) > 20 Then
        MsgBox "开户人联系电话不得长于20位"
        Exit Sub
    End If
    '''''''''''''''''''''''''''''''''''''''
    ''''''''''''''''将数据传入下一版面
For i = 0 To 5
  newaccount2.Text1(i).Text = Text1(i).Text
Next
   newaccount2.Text1(7).Text = Format(Date, yyyy, mm, dd)  '传入下一步中的开户日期
newaccount2.Show
Unload Me

End Sub

Private Sub Command2_Click()
Unload Me
End Sub
  
 

⌨️ 快捷键说明

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