📄 form5.frm
字号:
VERSION 5.00
Begin VB.Form Form5
BackColor = &H00FF0000&
Caption = "取款"
ClientHeight = 4605
ClientLeft = 4785
ClientTop = 3570
ClientWidth = 6000
LinkTopic = "Form5"
ScaleHeight = 6862.791
ScaleMode = 0 'User
ScaleWidth = 7692.308
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
BackColor = &H00C0FFFF&
Caption = "返回"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3240
Style = 1 'Graphical
TabIndex = 5
Top = 2880
Width = 855
End
Begin VB.CommandButton Command1
BackColor = &H00C0FFFF&
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1440
Style = 1 'Graphical
TabIndex = 4
Top = 2880
Width = 855
End
Begin VB.TextBox Text1
BackColor = &H00FFFFFF&
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 390
Left = 2040
TabIndex = 2
Top = 1680
Width = 2295
End
Begin VB.Label Label3
BackColor = &H00C0FFFF&
Caption = "元"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4440
TabIndex = 3
Top = 1680
Width = 255
End
Begin VB.Label Label2
BackColor = &H00C0FFFF&
Caption = "所取金额"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 600
TabIndex = 1
Top = 1680
Width = 1335
End
Begin VB.Line Line2
BorderWidth = 2
X1 = 0
X2 = 7692.308
Y1 = 1430.68
Y2 = 1430.68
End
Begin VB.Line Line1
BorderWidth = 2
X1 = 0
X2 = 7692.308
Y1 = 1251.845
Y2 = 1251.845
End
Begin VB.Label Label1
BackColor = &H00C0FFFF&
Caption = "取款"
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2280
TabIndex = 0
Top = 240
Width = 975
End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim cc As String
cc = "select 金额 from yinhang where 卡号='" & Trim(str) & "'"
rsstor (cc)
If Val(Text1.Text) <= 3000 Then
If Text1.Text = "" Then
MsgBox "如果您不想提款,请按返回键返回上一级目录"
Command2.SetFocus
ElseIf Not IsNumeric(Text1.Text) Then
MsgBox "请输入你要取的金额:"
Text1.Text = ""
Text1.SetFocus
ElseIf Val(Text1.Text) Mod 100 <> 0 Then
MsgBox "本机只提供整百的提取,非常抱歉!"
Text1.Text = ""
Text1.SetFocus
ElseIf Val(Text1.Text) > rss.Fields("金额") Then
MsgBox "对不起,您的金额不足,请核对您的帐户余额"
Text1.Text = ""
Text1.SetFocus
Else
num = Val(Text1.Text) + num
rss.Fields("金额") = rss.Fields("金额") - Val(Text1.Text)
rss.Update
Unload Me
MsgBox "交易成功"
Form2.Show
End If
Else
MsgBox "一次提款的金额不能超过3000"
Text1.Text = ""
Text1.SetFocus
End If
End Sub
Private Sub Command2_Click()
Unload Me
Form2.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -