?? 查詢界面.frm
字號:
VERSION 5.00
Begin VB.Form Frmfind
Caption = "查詢余額窗口"
ClientHeight = 3840
ClientLeft = 60
ClientTop = 345
ClientWidth = 5700
LinkTopic = "Form5"
ScaleHeight = 3840
ScaleWidth = 5700
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton ComQuit
Caption = "返回界面"
BeginProperty Font
Name = "華文行楷"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2280
TabIndex = 2
Top = 2760
Width = 1455
End
Begin VB.TextBox TxtUser
Height = 375
Left = 2640
TabIndex = 1
Text = "Text1"
Top = 1560
Width = 2055
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "銀行模擬系統——查詢界面"
BeginProperty Font
Name = "華文行楷"
Size = 21.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 0
TabIndex = 3
Top = 0
Width = 5775
End
Begin VB.Label Label1
Caption = "您的帳戶余額:"
BeginProperty Font
Name = "隸書"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 600
TabIndex = 0
Top = 960
Width = 2895
End
End
Attribute VB_Name = "Frmfind"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub ComQuit_Click()
Unload Me
Frmmain.Show
End Sub
Private Sub Form_Load()
On Error GoTo ErrMsg
Dim sh As String
sh = "select * from 銀行表 where 卡號='" & Frmlogin.id & "'"
Set adoRS = adoCon.Execute(sh)
TxtUser.Text = adoRS("余額") & "元"
ErrMsg:
If Err.Number <> 0 Then
MsgBox Err.Number & Err.Description, vbOKOnly + vbCritical, "出錯提示"
Exit Sub
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -