📄 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 + -