?? abhc.frm
字號:
VERSION 5.00
Begin VB.Form abhc
Caption = "Form1"
ClientHeight = 2085
ClientLeft = 60
ClientTop = 450
ClientWidth = 6360
LinkTopic = "Form1"
ScaleHeight = 2085
ScaleWidth = 6360
StartUpPosition = 3 '窗口缺省
Begin VB.ComboBox Combo2
Height = 300
Left = 2520
TabIndex = 7
Top = 720
Width = 3375
End
Begin VB.CommandButton Command3
Caption = "返回"
Height = 375
Left = 4080
TabIndex = 6
Top = 1560
Width = 1455
End
Begin VB.TextBox Text2
Height = 270
Left = 360
TabIndex = 5
Top = 1080
Width = 5535
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "abhc.frx":0000
Left = 360
List = "abhc.frx":000D
TabIndex = 3
Top = 720
Width = 1575
End
Begin VB.CommandButton command2
Caption = "查詢"
Height = 375
Left = 2400
TabIndex = 2
Top = 1560
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "清除"
Height = 375
Left = 720
TabIndex = 1
Top = 1560
Width = 1455
End
Begin VB.Label Label2
Caption = "為"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 2040
TabIndex = 4
Top = 720
Width = 375
End
Begin VB.Label Label1
Caption = "選擇查詢條件"
Height = 255
Left = 360
TabIndex = 0
Top = 240
Width = 3255
End
End
Attribute VB_Name = "abhc"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_Click()
Text2 = ""
If Trim(Combo1.Text) = "證書編號" Then
Text2 = "zsbh"
combo2.Text = ""
End If
If Trim(Combo1.Text) = "委托單位" Then
combo2.Clear
strsql = "select sy,wtdwmc from wtdwb"
grs.Open strsql, conn, adOpenKeyset, adLockReadOnly, adCmdText
fillcombo combo2, grs
grs.Close
Text2 = "wtdwmc"
End If
If Trim(Combo1.Text) = "儀器名稱" Then
combo2.Clear
strsql = "select sy,yqmc from yqmcb"
grs.Open strsql, conn, adOpenKeyset, adLockReadOnly, adCmdText
fillcombo combo2, grs
grs.Close
Text2 = "yqmc"
End If
End Sub
Private Sub combo2_Click()
If Len(Combo1.Text) <> 0 Then
Text2 = Text2 & " like " & "'%" + Trim(combo2.Text) + "%'"
Text2.SetFocus
End If
End Sub
Private Sub Combo2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
'Text2 = Text2 & " like " & "'%" + Trim(Combo2.Text) + "%'"
Text2.SetFocus
End If
End Sub
Private Sub Combo2_LostFocus()
If Trim(Combo1.Text) = "證書編號" Then
Text2 = Text2 & " like " & "'%" + Trim(combo2.Text) + "%'"
Text2.SetFocus
End If
End Sub
Private Sub Combo3_Change()
End Sub
Private Sub Command1_Click()
Text2 = ""
End Sub
Private Sub Command2_Click()
cxtj = Trim(Text2)
caxunbj = 1
jdzsb.Show 1
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Me.Move (main.Width - Me.Width) / 2, (main.Height - Me.Height) / 2
Select Case caxiun
Case 1 '按證書編號查詢
Label1.Caption = "按證書編號查詢"
Case 2 '按委托單位查詢
Label1.Caption = "按委托單位查詢"
Case 3 '按儀器名稱查詢
Label1.Caption = "按儀器名稱查詢"
End Select
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -