📄 frm_tpcx.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Begin VB.Form Frm_tpcx
BorderStyle = 1 'Fixed Single
Caption = "退票查询"
ClientHeight = 3810
ClientLeft = 45
ClientTop = 330
ClientWidth = 6345
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
ScaleHeight = 3810
ScaleWidth = 6345
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command3
Caption = "退出"
Height = 435
Left = 4980
TabIndex = 7
Top = 420
Width = 930
End
Begin VB.Frame Frame1
Height = 1080
Left = 15
TabIndex = 0
Top = 0
Width = 4260
Begin VB.CommandButton Command2
Caption = "查询"
Height = 345
Left = 2820
TabIndex = 3
Top = 615
Width = 795
End
Begin VB.CommandButton Command1
Caption = "查询"
Height = 345
Left = 2820
TabIndex = 2
Top = 165
Width = 795
End
Begin VB.TextBox Text1
Height = 330
Left = 1260
TabIndex = 1
Top = 615
Width = 1485
End
Begin MSComCtl2.DTPicker DTP1
Height = 330
Left = 1275
TabIndex = 4
Top = 180
Width = 1485
_ExtentX = 2619
_ExtentY = 582
_Version = 393216
Format = 69533697
CurrentDate = 39433
End
Begin VB.Label Label2
Caption = "按车次查询"
Height = 345
Left = 90
TabIndex = 6
Top = 630
Width = 1095
End
Begin VB.Label Label1
Caption = "按日期查询"
Height = 255
Left = 120
TabIndex = 5
Top = 240
Width = 1035
End
End
Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSH1
Height = 2565
Left = 0
TabIndex = 8
Top = 1125
Width = 6255
_ExtentX = 11033
_ExtentY = 4524
_Version = 393216
_NumberOfBands = 1
_Band(0).Cols = 2
End
End
Attribute VB_Name = "Frm_tpcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim rs As New ADODB.Recordset
rs.Open "select * from tb_cpyd where 乘坐日期='" & DTP1.Value & "'and 备注='退票'", cnn, adOpenKeyset, adLockOptimistic
Set MSH1.DataSource = rs
rs.Close
End Sub
Private Sub Command2_Click()
Dim rs As New ADODB.Recordset
rs.Open "select * from tb_cpyd where 车次='" & Text1.Text & "'and 备注='退票'", cnn, adOpenKeyset, adLockOptimistic
Set MSH1.DataSource = rs
rs.Close
End Sub
Private Sub Command3_Click()
Unload Me
Frm_main.Show
End Sub
Private Sub Form_Load()
Dim rs As New ADODB.Recordset
rs.Open "select * from tb_cpyd where 备注='退票'", cnn, adOpenKeyset, adLockOptimistic
Set MSH1.DataSource = rs
rs.Close
DTP1.Value = Date
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -