?? form1.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "C:\WINDOWS\Desktop\tx.mdb"
DefaultCursorType= 0 '缺省游標
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 600
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "txl"
Top = 2280
Visible = 0 'False
Width = 3615
End
Begin VB.CommandButton Command1
Caption = "查詢"
Height = 375
Left = 3120
TabIndex = 2
Top = 120
Width = 1335
End
Begin VB.TextBox Text1
Height = 375
Left = 1560
TabIndex = 1
Top = 120
Width = 1335
End
Begin VB.Label Label2
Height = 375
Left = 240
TabIndex = 3
Top = 720
Width = 2175
End
Begin VB.Label Label1
Caption = "請輸入姓名:"
Height = 255
Left = 240
TabIndex = 0
Top = 240
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Data1.Recordset.FindFirst "name='" & Text1.Text & "'"
If Data1.Recordset.NoMatch Then
MsgBox "無此姓名,請重新輸入!", vbOKOnly, "提示"
Text1.Text = ""
Label2.Caption = ""
Text1.SetFocus
Else
Label2.Caption = Data1.Recordset.Fields("tel")
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -