?? frmibf.frm
字號:
VERSION 5.00
Begin VB.Form frmIBF
BackColor = &H80000007&
Caption = "Form1"
ClientHeight = 1170
ClientLeft = 60
ClientTop = 345
ClientWidth = 7710
LinkTopic = "Form1"
ScaleHeight = 1170
ScaleWidth = 7710
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取 消"
Height = 345
Left = 6600
TabIndex = 2
Top = 720
Width = 975
End
Begin VB.CommandButton cmdOK
Caption = "確 定"
Default = -1 'True
Height = 345
Left = 5400
TabIndex = 1
Top = 720
Width = 975
End
Begin VB.TextBox txt
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
IMEMode = 3 'DISABLE
Left = 2160
PasswordChar = "*"
TabIndex = 0
Top = 360
Width = 5175
End
Begin VB.Label lbl
AutoSize = -1 'True
BackColor = &H80000007&
Caption = "請輸入密碼!"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 240
Left = 720
TabIndex = 3
Top = 360
Width = 1440
End
End
Attribute VB_Name = "frmIBF"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rst As Recordset
Public consumerID As String
Public consumerMoney As Double
Public nowDate As String
Public nowTime As String
Public balance As Double
Public DDate As String
Public passTime As Double
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
Set rst = New Recordset
'''''''''''''''''''''''''''''''''''判斷密碼輸入的正確性↓
If Len(txt.Text) = 0 Then
MsgBox "密碼不能為空!"
Exit Sub
End If
'''''''''''''''''''''''''''''''''''''''''
Call LinkDB(landWay, SName, "weboy", SUName, SUPw)
con.Open
rst.Open "select * from CConsumers where id='" & consumerID & "'", con, adOpenDynamic, adLockOptimistic
'''''''''''''''''''''''''''''''''''''''''''
If txt.Text = rst!password Then '如果密碼正確
con.Execute "insert " & consumerID & " values('" & nowDate & "','get','" & consumerMoney & "','" & (balance) * (1 + (passTime * ((percentage0 / 100) / 12))) - consumerMoney & "','" & userName & "')"
con.Close
MsgBox "取款完成"
Unload Me
Unload frmFetch
Else
MsgBox "密碼不正確!"
Exit Sub
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -