?? frmstatisticfind.frm
字號:
VERSION 5.00
Begin VB.Form frmstatisticfind
BorderStyle = 1 'Fixed Single
Caption = "運營信息查詢"
ClientHeight = 2730
ClientLeft = 5550
ClientTop = 2025
ClientWidth = 4680
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 2730
ScaleWidth = 4680
Begin VB.CheckBox Check2
Caption = "司機姓名"
Height = 375
Left = 360
TabIndex = 5
Top = 1200
Width = 1335
End
Begin VB.CheckBox Check1
Caption = "車輛牌照:"
Height = 375
Left = 360
TabIndex = 4
Top = 480
Width = 1335
End
Begin VB.CommandButton cmdcancel
Caption = "取 消"
Height = 375
Left = 2760
TabIndex = 3
Top = 2040
Width = 1215
End
Begin VB.CommandButton cmdok
Caption = "查 詢"
Height = 375
Left = 1200
TabIndex = 2
Top = 2040
Width = 1095
End
Begin VB.TextBox Txtitem
Height = 375
Index = 1
Left = 1800
TabIndex = 1
Top = 1200
Width = 2295
End
Begin VB.TextBox Txtitem
Height = 375
Index = 0
Left = 1800
TabIndex = 0
Top = 480
Width = 2295
End
End
Attribute VB_Name = "frmstatisticfind"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
If Check1.Value = 1 Then
Check2.Enabled = False
Txtitem(1).Enabled = False
Else
Check1.Enabled = True
Check2.Enabled = True
Txtitem(0).Enabled = True
Txtitem(1).Enabled = True
End If
End Sub
Private Sub Check2_Click()
If Check2.Value = 1 Then
Check1.Enabled = False
Txtitem(0).Enabled = False
Else
Check1.Enabled = True
Check2.Enabled = True
Txtitem(0).Enabled = True
Txtitem(1).Enabled = True
End If
End Sub
Private Sub cmdcancel_Click()
Unload Me
End Sub
Private Sub cmdok_Click()
Dim txtsql As String
If Check1.Value = vbChecked Then
If Trim(Txtitem(0)) = "" Then
MsgBox "查詢條件不能為空!", vbOKOnly + vbExclamation, "警告"
Else
txtsql = "yy_id='" & Trim(Txtitem(0)) & "'"
End If
End If
If Check2.Value = vbChecked Then
If Trim(Txtitem(1)) = "" Then
MsgBox "查詢條件不能為空!", vbOKOnly + vbExclamation, "警告"
Else
txtsql = "yy_driver='" & Trim(Txtitem(1)) & "'"
End If
End If
If Trim(txtsql) = "" Then
MsgBox "請設置查詢方式!", vbOKOnly + vbExclamation, "提示"
Else
Unload Me
frmstatisticlist.txtsql = "select * from statistic where " & txtsql
frmstatisticlist.Show
End If
End Sub
Private Sub Form_Load()
Me.Left = 5505
Me.Top = 1695
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -