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

📄 form1.frm

📁 vb做的银行管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form newaccount2 
   Caption         =   "开户2"
   ClientHeight    =   6135
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   9510
   LinkTopic       =   "Form1"
   ScaleHeight     =   6135
   ScaleWidth      =   9510
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   7
      Left            =   2520
      TabIndex        =   23
      Top             =   4560
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   6
      Left            =   2520
      TabIndex        =   22
      Top             =   4200
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   5
      Left            =   2520
      TabIndex        =   21
      Top             =   3840
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   4
      Left            =   2520
      TabIndex        =   20
      Top             =   3480
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   3
      Left            =   2520
      TabIndex        =   19
      Top             =   3120
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   2
      Left            =   2520
      TabIndex        =   18
      Top             =   2760
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   1
      Left            =   2520
      TabIndex        =   17
      Top             =   2400
      Width           =   2535
   End
   Begin VB.CommandButton Command4 
      Caption         =   "取消"
      Height          =   495
      Left            =   8040
      TabIndex        =   15
      Top             =   4200
      Width           =   1095
   End
   Begin VB.CommandButton Command3 
      Caption         =   "下一步"
      Height          =   495
      Left            =   8040
      TabIndex        =   14
      Top             =   3360
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "上一步"
      Height          =   495
      Left            =   8040
      TabIndex        =   13
      Top             =   2520
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "打印"
      Height          =   495
      Left            =   8040
      TabIndex        =   12
      Top             =   1680
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Caption         =   "用户信息"
      Height          =   4215
      Left            =   840
      TabIndex        =   3
      Top             =   1440
      Width           =   6255
      Begin VB.TextBox Text1 
         Height          =   270
         Index           =   0
         Left            =   1680
         TabIndex        =   16
         Top             =   600
         Width           =   2535
      End
      Begin VB.Label Label11 
         Caption         =   "存款日期:"
         Height          =   255
         Left            =   600
         TabIndex        =   11
         Top             =   3120
         Width           =   1095
      End
      Begin VB.Label Label10 
         Caption         =   "存款金额:"
         Height          =   255
         Left            =   600
         TabIndex        =   10
         Top             =   2400
         Width           =   975
      End
      Begin VB.Label Label9 
         Caption         =   "电话号码:"
         Height          =   255
         Left            =   600
         TabIndex        =   9
         Top             =   1680
         Width           =   975
      End
      Begin VB.Label Label8 
         Caption         =   "用户住址:"
         Height          =   255
         Left            =   600
         TabIndex        =   8
         Top             =   1320
         Width           =   1095
      End
      Begin VB.Label Label7 
         Caption         =   "操作员卡号:"
         Height          =   255
         Left            =   360
         TabIndex        =   7
         Top             =   2040
         Width           =   1215
      End
      Begin VB.Label Label6 
         Caption         =   "用户身份证号:"
         Height          =   255
         Left            =   240
         TabIndex        =   6
         Top             =   960
         Width           =   1335
      End
      Begin VB.Label Label5 
         Caption         =   "用户帐号:"
         Height          =   255
         Left            =   600
         TabIndex        =   5
         Top             =   2760
         Width           =   975
      End
      Begin VB.Label Label4 
         Caption         =   "用户姓名:"
         Height          =   255
         Left            =   600
         TabIndex        =   4
         Top             =   600
         Width           =   975
      End
   End
   Begin VB.Label Label3 
      Caption         =   "第二步"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   6120
      TabIndex        =   2
      Top             =   960
      Width           =   1455
   End
   Begin VB.Label Label2 
      Caption         =   "Second"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   480
      TabIndex        =   1
      Top             =   840
      Width           =   1095
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      Caption         =   "打印并让用户确认信息"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1680
      TabIndex        =   0
      Top             =   240
      Width           =   4335
   End
End
Attribute VB_Name = "newaccount2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'''''''''''''''''''
'响应上一步
'''''''''''''''''''

Private Sub Command2_Click()
newaccount1.Text1(4).Text = sid
newaccount1.Show
Unload Me
End Sub

'响应下一步
Private Sub Command3_Click()
Dim str As String
Dim input1 As Boolean
input1 = True
str = "select * from account"
Set cn = New adodb.Connection
Dim rst As Recordset
Set rst = New Recordset
'Dim dat1 As Date
'Dim dat2 As Date
'Dim lastmoney As Double
cn.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=bank;Data Source=(local)"
If Text1(6).Text = "" Then
MsgBox "请填写用户帐号!", vbExclamation, "错误"
End If


cn.Open
rst.Open str, cn, adOpenDynamic, adLockOptimistic

 ''''''''''''''''''''''''''
 '查找此帐号
 '''''''''''''''''''''''''
 
 If rst.RecordCount <= 0 Then
 GoTo AAA
 End If
 rst.MoveFirst
Do While Not rst.EOF
 If Trim(rst!AuserID) = Text1(6).Text Then
    input1 = False
End If
rst.MoveNext
Loop

If input1 = flase Then
MsgBox "查已有此帐号!请重新输入!"
rst.Close
cn.Close
Exit Sub
End If
'''''''''''''''''''''''''''
'将用户所有数据传向下一步
''''''''''''''''''''''''''
AAA:
newaccount3.Aname1 = Text1(0).Text
newaccount3.ApeopleID1 = Text1(1).Text
newaccount3.Aaddress1 = Text1(2).Text
newaccount3.Aphone1 = Text1(3).Text
newaccount3.money1 = Text1(5).Text
newaccount3.AuserID1 = Text1(6).Text
newaccount3.date1 = Text1(7).Text
newaccount3.Show
rst.Close
cn.Close

Unload Me
End Sub

Private Sub Command4_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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