📄 form4.frm
字号:
VERSION 5.00
Begin VB.Form Form4
BackColor = &H00FF0000&
Caption = "Form4"
ClientHeight = 4605
ClientLeft = 4785
ClientTop = 3375
ClientWidth = 6000
LinkTopic = "Form4"
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 = 3360
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
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 2040
TabIndex = 2
Top = 1680
Width = 2415
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 = 4680
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 = 495
Left = 2400
TabIndex = 0
Top = 240
Width = 975
End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim dd As String
dd = "select 金额 from yinhang where 卡号='" & Trim(str) & "'"
rsstor (dd)
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
Else
rss.Fields("金额") = rss.Fields("金额") + Val(Text1.Text)
rss.Update
Unload Me
MsgBox "存储成功"
Form2.Show
End If
End Sub
Private Sub Command2_Click()
Unload Me
Form2.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -