?? frmqueryclientg.frm
字號:
VERSION 5.00
Begin VB.Form frmQueryClientg
Caption = "Form1"
ClientHeight = 3000
ClientLeft = 60
ClientTop = 345
ClientWidth = 6630
LinkTopic = "Form1"
ScaleHeight = 3000
ScaleWidth = 6630
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
Caption = "選擇查詢條件"
Height = 1695
Left = 240
TabIndex = 2
Top = 240
Width = 6015
Begin VB.ComboBox Combo1
Height = 300
ItemData = "frmQueryClientg.frx":0000
Left = 360
List = "frmQueryClientg.frx":000A
TabIndex = 4
Text = "Combo1"
Top = 960
Width = 1215
End
Begin VB.TextBox Text1
Height = 495
Left = 2400
TabIndex = 3
Top = 840
Width = 3255
End
Begin VB.Label Label1
Caption = "查詢字段"
Height = 255
Index = 0
Left = 480
TabIndex = 6
Top = 480
Width = 855
End
Begin VB.Label Label1
Caption = "查詢值"
Height = 255
Index = 1
Left = 3600
TabIndex = 5
Top = 480
Width = 855
End
End
Begin VB.CommandButton cmdQuery
Caption = "查 詢"
Height = 495
Left = 1200
TabIndex = 1
Top = 2160
Width = 1455
End
Begin VB.CommandButton cmdClose
Caption = "關 閉"
Height = 495
Left = 3600
TabIndex = 0
Top = 2160
Width = 1455
End
End
Attribute VB_Name = "frmQueryClientg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdClose_Click()
Unload Me
End Sub
Private Sub cmdQuery_Click()
If Text1.Text = "" Then
MsgBox "查詢條件不可為空!", vbOKOnly + vbInformation, "注意"
Text1.SetFocus
Exit Sub
End If
'設置查詢家庭租戶變量為真
querycg = True
sqlqcg = " where " & Combo1.Text & " = " & "'" & Text1.Text & "'"
frmClient.Show
'關閉本窗體
Unload Me
End Sub
Private Sub Form_Load()
'讓窗體居中
Dim X0 As Long
Dim Y0 As Long
X0 = Screen.Width
Y0 = Screen.Height
X0 = (X0 - Me.Width) / 2
Y0 = (Y0 - Me.Height) / 2
Me.Move X0, Y0
Combo1.ListIndex = 0
Text1.Text = ""
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -