📄 frmfixfetch1.frm
字号:
VERSION 5.00
Begin VB.Form frmFixFetch1
BackColor = &H80000007&
Caption = "Form1"
ClientHeight = 2340
ClientLeft = 60
ClientTop = 345
ClientWidth = 4515
LinkTopic = "Form1"
ScaleHeight = 2340
ScaleWidth = 4515
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdNext
Caption = "下一步"
Default = -1 'True
Height = 345
Left = 1680
TabIndex = 3
Top = 1680
Width = 975
End
Begin VB.TextBox txt
Appearance = 0 'Flat
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
IMEMode = 3 'DISABLE
Index = 0
Left = 1680
TabIndex = 2
Top = 360
Width = 2415
End
Begin VB.TextBox txt
Appearance = 0 'Flat
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
IMEMode = 3 'DISABLE
Index = 1
Left = 1680
PasswordChar = "*"
TabIndex = 1
Top = 960
Width = 2415
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取 消"
Height = 345
Left = 3000
TabIndex = 0
Top = 1680
Width = 975
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "请输入帐户号码:"
ForeColor = &H00FFFFFF&
Height = 180
Index = 4
Left = 120
TabIndex = 5
Top = 480
Width = 1440
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "请输入密码:"
ForeColor = &H00FFFFFF&
Height = 180
Index = 1
Left = 480
TabIndex = 4
Top = 1080
Width = 1080
End
End
Attribute VB_Name = "frmFixFetch1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdNext_Click()
Dim rst As New Recordset
Call LinkDB(landWay, SName, "weboy", SUName, SUPw)
con.Open
rst.Open "select * from FConsumers", con, adOpenDynamic, adLockOptimistic
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'判断账户输入的正确性↓
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Dim errID As Boolean
errID = True
On Error GoTo err1
rst.MoveFirst
errID = False
err1:
If errID Then
MsgBox "此帐户不存在!", vbExclamation, "提示"
End If
'''''''''''''''''''''''''判断此账户是否已经进行过取款↓
Dim findID As Boolean
findID = False
Do While Not rst.EOF
If rst!id = txt(0).Text And rst!password = txt(1).Text Then
If rst!be = "0" Then
MsgBox "此帐户已经进行过取款"
Exit Sub
Else
findID = True
Exit Do
End If
End If
rst.MoveNext
Loop
If findID = False Then
MsgBox "此帐户未找到!", vbExclamation, "提示"
Exit Sub
End If
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'将数据传到第二步
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
frmFixFetch2.theID = rst!id
frmFixFetch2.theMoney = rst!money
frmFixFetch2.thePassTime = rst!passTime
frmFixFetch2.theFAccrual = rst!FAccrual
frmFixFetch2.theCAccrual = rst!CAccrual
rst.Close
con.Close
Unload Me
frmFixFetch2.Show
End Sub
Private Sub Form_Load()
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -