📄 frmdriver2.frm
字号:
VERSION 5.00
Begin VB.Form frmDriver2
BorderStyle = 3 'Fixed Dialog
Caption = "司机信息查询"
ClientHeight = 1776
ClientLeft = 48
ClientTop = 336
ClientWidth = 4680
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1776
ScaleWidth = 4680
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.CheckBox chkItem
Caption = "Check1"
Height = 180
Index = 1
Left = 240
TabIndex = 7
TabStop = 0 'False
Top = 720
Width = 132
End
Begin VB.CheckBox chkItem
Caption = "Check1"
Height = 180
Index = 0
Left = 240
TabIndex = 6
TabStop = 0 'False
Top = 240
Value = 1 'Checked
Width = 132
End
Begin VB.CommandButton cmdOk
Caption = "确定 (&O)"
Default = -1 'True
Height = 375
Left = 840
TabIndex = 2
Top = 1320
Width = 1215
End
Begin VB.CommandButton cmdExit
Caption = "取消 (&X)"
Height = 375
Left = 2760
TabIndex = 3
Top = 1320
Width = 1215
End
Begin VB.TextBox txtItem
Height = 270
Index = 1
Left = 1680
TabIndex = 1
Top = 720
Width = 2655
End
Begin VB.TextBox txtItem
Height = 270
Index = 0
Left = 1680
TabIndex = 0
Top = 240
Width = 2655
End
Begin VB.Label lblitem
Caption = "准驾车型:"
Height = 255
Index = 1
Left = 600
TabIndex = 5
Top = 720
Width = 1095
End
Begin VB.Label lblitem
Caption = "姓 名:"
Height = 255
Index = 0
Left = 600
TabIndex = 4
Top = 240
Width = 1095
End
End
Attribute VB_Name = "frmDriver2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdExit_Click()
Me.Hide
End Sub
Private Sub cmdOK_Click()
Dim txtSQL As String
If chkItem(0).Value = vbChecked Then
txtSQL = " sjname ='" & Trim(txtItem(0) & " ") & "'"
End If
If chkItem(1).Value = vbChecked Then
If Trim(txtSQL & " ") = "" Then
txtSQL = " sjtype ='" & Trim(txtItem(1) & " ") & "'"
Else
txtSQL = txtSQL & " and sjtype ='" & Trim(txtItem(1) & " ") & "'"
End If
End If
Me.Hide
If Trim(txtSQL) = "" Then
MsgBox "请设置查询方式!", vbOKOnly + vbExclamation, "警告"
Exit Sub
Else
If flagdEdit Then
Unload frmDriver
End If
frmDriver.txtSQL = "select * from driver where" & txtSQL
frmDriver.Show
End If
End Sub
Private Sub lblitem_Click(Index As Integer)
chkItem(Index).Value = vbChecked
txtItem(Index).SetFocus
End Sub
Private Sub chkItem_Click(Index As Integer)
txtItem(Index).SetFocus
End Sub
Private Sub txtItem_GotFocus(Index As Integer)
txtItem(Index).SelStart = 0
txtItem(Index).SelLength = Len(txtItem(Index))
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -