📄 xiaochu.frm
字号:
VERSION 5.00
Begin VB.Form xiaochu
Caption = "帐户注销"
ClientHeight = 4275
ClientLeft = 60
ClientTop = 345
ClientWidth = 6285
LinkTopic = "Form1"
ScaleHeight = 4275
ScaleWidth = 6285
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox kahao
Height = 495
Left = 2520
TabIndex = 4
Top = 1200
Width = 2775
End
Begin VB.CommandButton Command1
Caption = "注 消"
Height = 495
Left = 240
TabIndex = 3
Top = 2880
Width = 1695
End
Begin VB.TextBox mima
Height = 495
IMEMode = 3 'DISABLE
Left = 2520
PasswordChar = "*"
TabIndex = 2
Top = 1800
Width = 2775
End
Begin VB.CommandButton Command2
Caption = "清空"
Height = 495
Left = 2280
TabIndex = 1
Top = 2880
Width = 1455
End
Begin VB.CommandButton Command3
Caption = "返 回"
Height = 495
Left = 4200
TabIndex = 0
Top = 2880
Width = 1335
End
Begin VB.Label Label1
Caption = "卡 号"
Height = 375
Left = 840
TabIndex = 7
Top = 1320
Width = 1095
End
Begin VB.Label Label2
Caption = "密 码 "
Height = 495
Left = 840
TabIndex = 6
Top = 1800
Width = 1095
End
Begin VB.Label Label3
Caption = "用户注销"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2160
TabIndex = 5
Top = 480
Width = 2415
End
End
Attribute VB_Name = "xiaochu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim Xiaoh As String
Dim hq As String
Dim sq As String
Dim recADO1 As ADODB.Recordset
Dim X As Currency
Dim Y As Currency
Dim m As Integer
m = 0
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
If kahao.Text = "" Then
MsgBox "请输入帐号"
Exit Sub
End If
If mima.Text = "" Then
MsgBox "请输入密码"
Exit Sub
End If
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Xiaoh = "select * from 客户基本信息 where 帐号='" & kahao.Text & "'"
Set recADO1 = ExecuteSQL(Xiaoh)
If recADO1.EOF = True Then
MsgBox "帐号不存在,请重新输入"
recADO1.Close
Exit Sub
End If
If recADO1.Fields(6) <> mima.Text Then
MsgBox "密码输入错误"
recADO1.Close
Exit Sub
End If
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Xiaoh = "select * from 帐户信息 where 帐号='" & kahao.Text & "'"
Set recADO1 = ExecuteSQL(Xiaoh)
hq = recADO1.Fields(2)
sq = recADO1.Fields(3)
X = recADO1.Fields(4)
Y = recADO1.Fields(5)
recADO1.Close
If X <> CCur(m) Then
MsgBox "请先结算活期存款,在注销该帐户!", 48, "注意"
cashOutForm1.Show
Unload Me
Exit Sub
Else '删除活期账户信息表中的信息
Xiaoh = "select * from 活期帐户信息 where 活期帐户号 ='" & hq & "'"
Set recADO1 = ExecuteSQL(Xiaoh)
While recADO1.EOF <> True
recADO1.Delete
recADO1.MoveNext
Wend
recADO1.Close
End If
If Y <> CCur(m) Then
MsgBox Y
MsgBox "请先结算定期存款,在注销该帐户!", 48, "注意"
cashOutForm1.Show
Unload Me
Exit Sub
Else
'删除定期账户信息表中的内容
Xiaoh = "select * from 定期帐户信息 where 定期帐户号='" & sq & "'"
Set recADO1 = ExecuteSQL(Xiaoh)
While recADO1.EOF <> True
recADO1.Delete
recADO1.MoveNext
Wend
recADO1.Close
End If
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
'删除账户信息表中的内容
Xiaoh = "select * from 帐户信息 where 帐号='" & kahao.Text & "'"
Set recADO1 = ExecuteSQL(Xiaoh)
recADO1.Delete
recADO1.Close
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
'删除基本信息表中的信息
Xiaoh = "select * from 客户基本信息 where 帐号='" & kahao.Text & "'"
Set recADO1 = ExecuteSQL(Xiaoh)
recADO1.Delete
recADO1.Close
MsgBox "销户成功"
Unload Me
End Sub
Private Sub Command2_Click()
kahao.Text = ""
mima.Text = ""
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -