?? 車次查詢.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form Form7
Caption = "車次查詢"
ClientHeight = 4290
ClientLeft = 60
ClientTop = 345
ClientWidth = 9225
LinkTopic = "Form7"
MDIChild = -1 'True
ScaleHeight = 4290
ScaleWidth = 9225
Begin VB.TextBox Text4
DataField = "車次"
DataSource = "Adodc2"
Height = 375
Left = 3360
TabIndex = 7
Top = 3480
Visible = 0 'False
Width = 375
End
Begin VB.TextBox Text3
DataField = "站名"
DataSource = "Adodc2"
Height = 375
Left = 3840
TabIndex = 6
Top = 3720
Visible = 0 'False
Width = 375
End
Begin MSAdodcLib.Adodc Adodc2
Height = 330
Left = 2520
Top = 3840
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=車站售票管理系統"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=車站售票管理系統"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "途徑表"
Caption = "Adodc2"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.TextBox Text2
DataField = "車次"
DataSource = "Adodc1"
Height = 270
Left = 1680
TabIndex = 5
Top = 3840
Visible = 0 'False
Width = 375
End
Begin VB.CommandButton Command1
Caption = "查詢"
Height = 495
Left = 7200
TabIndex = 4
Top = 2160
Width = 1215
End
Begin VB.ComboBox Combo1
BeginProperty Font
Name = "宋體"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 405
Left = 7080
TabIndex = 2
Top = 600
Width = 1695
End
Begin VB.TextBox Text1
Height = 375
Left = 600
Locked = -1 'True
MultiLine = -1 'True
TabIndex = 1
Top = 2520
Width = 6135
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 240
Top = 3840
Visible = 0 'False
Width = 1215
_ExtentX = 2143
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=車站售票管理系統"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=車站售票管理系統"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select 車次,站名,車型,發車時間,檢票口 from 發車時刻表,車輛 where 發車時刻表.車輛編號=車輛.車輛編號"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "車次查詢.frx":0000
Height = 2295
Left = 240
TabIndex = 0
Top = 120
Width = 6495
_ExtentX = 11456
_ExtentY = 4048
_Version = 393216
HeadLines = 1
RowHeight = 15
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 5
BeginProperty Column00
DataField = "車次"
Caption = "車次"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = "站名"
Caption = "站名"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
DataField = "車型"
Caption = "車型"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = "發車時間"
Caption = "發車時間"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column04
DataField = "檢票口"
Caption = "檢票口"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnAllowSizing= 0 'False
ColumnWidth = 915.024
EndProperty
BeginProperty Column01
ColumnAllowSizing= 0 'False
ColumnWidth = 1365.165
EndProperty
BeginProperty Column02
ColumnAllowSizing= 0 'False
ColumnWidth = 1289.764
EndProperty
BeginProperty Column03
ColumnAllowSizing= 0 'False
ColumnWidth = 1814.74
EndProperty
BeginProperty Column04
ColumnAllowSizing= 0 'False
ColumnWidth = 734.74
EndProperty
EndProperty
End
Begin VB.Label Label1
Caption = "車次:"
BeginProperty Font
Name = "宋體"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 7080
TabIndex = 3
Top = 120
Width = 1095
End
End
Attribute VB_Name = "Form7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim cc As String
cc = "select 車次,站名,車型,發車時間,檢票口 from 發車時刻表,車輛 where 發車時刻表.車輛編號=車輛.車輛編號 and 車次='" & Combo1.Text & "'"
Adodc1.RecordSource = cc
Adodc1.Refresh
End Sub
Private Sub Command2_Click()
Adodc1.Recordset.MoveNext
End Sub
Private Sub DataGrid1_Click()
Text1.Text = ""
Adodc2.Recordset.MoveFirst
While Not Adodc2.Recordset.EOF
If Text2.Text = Text4.Text Then
Text1.Text = Text1.Text & "," & Text3.Text
End If
Adodc2.Recordset.MoveNext
Wend
End Sub
Private Sub Form_Load()
Adodc1.Recordset.MoveFirst
While Not Adodc1.Recordset.EOF
Combo1.AddItem Text2.Text
Adodc1.Recordset.MoveNext
Wend
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -