?? frm_quecar.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 Frm_queCar
Caption = "查詢轎車"
ClientHeight = 4815
ClientLeft = 60
ClientTop = 450
ClientWidth = 5430
LinkTopic = "Form1"
ScaleHeight = 4815
ScaleWidth = 5430
StartUpPosition = 3 'Windows Default
Begin VB.Frame Frame1
Caption = "Frame1"
Height = 1935
Left = 240
TabIndex = 1
Top = 2640
Width = 4935
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 3360
Top = 1560
Visible = 0 'False
Width = 1455
_ExtentX = 2566
_ExtentY = 582
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= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=CarSaleSys"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "CarSaleSys"
OtherAttributes = ""
UserName = "sa"
Password = "sa"
RecordSource = "select * from Car"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.TextBox txtPrice
Appearance = 0 'Flat
Height = 285
Left = 1800
TabIndex = 12
Top = 1320
Width = 1335
End
Begin VB.TextBox txtBrand
Appearance = 0 'Flat
Height = 285
Left = 1800
TabIndex = 11
Top = 840
Width = 1335
End
Begin VB.TextBox txtName
Appearance = 0 'Flat
Height = 285
Left = 1800
TabIndex = 10
Top = 360
Width = 1335
End
Begin VB.CommandButton Cmd_Cancel
Caption = "取消"
Height = 375
Left = 3600
TabIndex = 9
Top = 960
Width = 735
End
Begin VB.CommandButton Cmd_que
Caption = "確定"
Height = 375
Left = 3600
TabIndex = 8
Top = 360
Width = 735
End
Begin VB.OptionButton Option3
Caption = "Option3"
Height = 255
Left = 240
TabIndex = 7
Top = 1320
Width = 255
End
Begin VB.OptionButton Option2
Caption = "Option2"
Height = 255
Left = 240
TabIndex = 6
Top = 840
Width = 255
End
Begin VB.OptionButton Option1
Caption = "Option1"
Height = 255
Left = 240
TabIndex = 5
Top = 360
Width = 255
End
Begin VB.Label Label3
Caption = "按價(jià)格查詢"
Height = 255
Left = 600
TabIndex = 4
Top = 1320
Width = 1095
End
Begin VB.Label Label2
Caption = "按品牌查詢"
Height = 255
Left = 600
TabIndex = 3
Top = 840
Width = 1215
End
Begin VB.Label Label1
Caption = "按型號查詢"
Height = 255
Left = 600
TabIndex = 2
Top = 360
Width = 1215
End
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "Frm_queCar.frx":0000
Height = 2295
Left = 240
TabIndex = 0
Top = 120
Width = 4935
_ExtentX = 8705
_ExtentY = 4048
_Version = 393216
HeadLines = 1
RowHeight = 15
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 6
BeginProperty Column00
DataField = "Car_id"
Caption = "ID"
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 = "Car_name"
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 = "Car_brand"
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 = "Car_price"
Caption = "價(jià)格"
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 = "Car_time"
Caption = "保修期"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column05
DataField = "Car_info"
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
ColumnWidth = 870.236
EndProperty
BeginProperty Column01
ColumnWidth = 824.882
EndProperty
BeginProperty Column02
ColumnWidth = 840.189
EndProperty
BeginProperty Column03
ColumnWidth = 989.858
EndProperty
BeginProperty Column04
ColumnWidth = 1094.74
EndProperty
BeginProperty Column05
ColumnWidth = 1844.787
EndProperty
EndProperty
End
End
Attribute VB_Name = "Frm_queCar"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
Private Sub Cmd_que_Click()
If Option1 = True Then
If txtName.Text <> "" Then
Adodc1.RecordSource = "select * from Car where Car_name = '" + Trim(txtName.Text) + "'"
Adodc1.Refresh
End If
End If
If Option2 = True Then
If txtBrand.Text <> "" Then
Adodc1.RecordSource = "select * from Car where Car_brand = '" + Trim(txtBrand.Text) + "'"
Adodc1.Refresh
End If
End If
If Option3 = True Then
If txtPrice.Text <> "" Then
Adodc1.RecordSource = "select * from Car where Car_price = " + Val(Trim(txtPrice.Text))
Adodc1.Refresh
End If
End If
End Sub
Private Sub Option1_Click()
txtBrand.Text = ""
txtBrand.Enabled = False
txtPrice.Text = ""
txtPrice.Enabled = False
txtName.Enabled = True
End Sub
Private Sub Option2_Click()
txtName.Text = ""
txtName.Enabled = False
txtPrice.Text = ""
txtPrice.Enabled = False
txtBrand.Enabled = True
End Sub
Private Sub Option3_Click()
txtName.Text = ""
txtName.Enabled = False
txtBrand.Text = ""
txtBrand.Enabled = False
txtPrice.Enabled = True
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -