?? frmfind.frm
字號:
VERSION 5.00
Begin VB.Form frmFind
BorderStyle = 3 'Fixed Dialog
Caption = "查找記錄"
ClientHeight = 3840
ClientLeft = 45
ClientTop = 330
ClientWidth = 5385
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3840
ScaleWidth = 5385
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 3000
TabIndex = 3
Top = 2880
Width = 975
End
Begin VB.CommandButton Command1
Caption = "確定"
Height = 375
Left = 1200
TabIndex = 2
Top = 2880
Width = 975
End
Begin VB.TextBox Text1
Height = 375
Left = 2040
TabIndex = 0
Top = 1440
Width = 1935
End
Begin VB.Label Label2
Caption = "查找學生記錄"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1560
TabIndex = 4
Top = 480
Width = 1815
End
Begin VB.Label Label1
Caption = "學號:"
Height = 255
Left = 1080
TabIndex = 1
Top = 1560
Width = 735
End
End
Attribute VB_Name = "frmFind"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim StrId As String
Me.Hide
i = frmMain.Data1.Recordset.Bookmark
StrId = Trim$(Me.Text1.Text)
frmMain.Data1.Recordset.FindFirst "StuId=" & "'" & StrId & "'"
If frmMain.Data1.Recordset.NoMatch Then
MsgBox "無此記錄!!!", vbOKOnly + vbCritical, "錯誤"
Me.Text1.Text = ""
Me.Show
frmMain.Data1.Recordset.Bookmark = i
Me.Text1.SetFocus
Else
Unload Me
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -