📄 cashoutform1.frm
字号:
VERSION 5.00
Begin VB.Form cashOutForm1
BorderStyle = 1 'Fixed Single
Caption = "取款"
ClientHeight = 3060
ClientLeft = 45
ClientTop = 435
ClientWidth = 5595
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3060
ScaleWidth = 5595
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 3240
TabIndex = 5
Top = 2040
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 720
TabIndex = 4
Top = 2040
Width = 1455
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 1
Top = 1200
Width = 3255
End
Begin VB.TextBox Text1
Height = 375
Left = 1680
TabIndex = 0
Top = 480
Width = 3255
End
Begin VB.Label Label2
Caption = "密码"
Height = 255
Left = 720
TabIndex = 3
Top = 1200
Width = 375
End
Begin VB.Label Label1
Caption = "帐号"
Height = 255
Left = 720
TabIndex = 2
Top = 480
Width = 495
End
End
Attribute VB_Name = "cashOutForm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim dengLu As Boolean
Dim queRen As Boolean
Dim tempPoint As ADODB.Recordset
Dim textSQL As String
queRen = False
If (Trim(Text1.Text) = "") Then
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
MsgBox "帐号空!", vbOKOnly + vbExclamation, ""
Else
If (Trim(Text2.Text) = "") Then
Text1.Text = ""
Text2.Text = ""
Text2.SetFocus
MsgBox "密码空!", vbOKOnly + vbExclamation, ""
Else
queRen = True
End If
End If
If queRen = True Then
textSQL = "select * from 客户基本信息 where 帐号 ='" & Text1.Text & "'"
Set tempPoint = ExecuteSQL(textSQL)
If tempPoint.EOF Then
MsgBox "帐户不存在", vbOKOnly + vbExclamation, "错误"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
Else
If tempPoint.Fields(6) <> Text2.Text Then
MsgBox "帐户不正确,请重新输入!", vbOKOnly + vbExclamation, "密码错误"
Text2.Text = ""
Text2.SetFocus
Else
LoginSucceeded = True
ID_Number = tempPoint.Fields(5)
tempPoint.Close
cashOutForm2.Show
Unload Me
End If
End If
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim countNum As Integer
countNum = 0
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -