?? duzhe_tushu.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 duzhe_tushu
BorderStyle = 3 'Fixed Dialog
Caption = "圖書搜索"
ClientHeight = 6930
ClientLeft = 45
ClientTop = 435
ClientWidth = 10200
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6930
ScaleWidth = 10200
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
Caption = "圖書信息"
BeginProperty Font
Name = "幼圓"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3495
Left = 480
TabIndex = 5
Top = 2520
Width = 9495
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "duzhe_tushu.frx":0000
Height = 2655
Left = 360
TabIndex = 6
Top = 480
Width = 8655
_ExtentX = 15266
_ExtentY = 4683
_Version = 393216
AllowUpdate = 0 'False
DefColWidth = 100
HeadLines = 1
RowHeight = 15
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 = 2
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
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
End
Begin VB.CommandButton command3
Caption = "刷新"
Height = 375
Left = 5280
TabIndex = 4
Top = 1680
Width = 1935
End
Begin VB.CommandButton Command2
Caption = "清除"
Height = 375
Left = 7560
TabIndex = 3
Top = 960
Width = 2295
End
Begin VB.CommandButton Command1
Caption = "快搜"
Height = 375
Left = 5280
TabIndex = 2
Top = 960
Width = 1935
End
Begin VB.TextBox Text1
Height = 375
Left = 480
TabIndex = 1
Top = 1560
Width = 4455
End
Begin VB.ComboBox Combo1
Height = 300
Left = 2520
TabIndex = 0
Text = "———請選擇———"
Top = 1200
Width = 2175
End
Begin MSAdodcLib.Adodc Adodc1
Height = 450
Left = 7560
Top = 1560
Width = 2280
_ExtentX = 4022
_ExtentY = 794
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=Microsoft.Jet.OLEDB.4.0;Data Source=圖書館管理系統.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=圖書館管理系統.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "圖書信息"
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 VB.Label Label9
Caption = "搜索條件"
Height = 255
Left = 600
TabIndex = 8
Top = 1200
Width = 1095
End
Begin VB.Line Line2
X1 = 360
X2 = 4320
Y1 = 840
Y2 = 840
End
Begin VB.Label Label10
AutoSize = -1 'True
Caption = "圖書信息搜索"
BeginProperty Font
Name = "幼圓"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 600
TabIndex = 7
Top = 480
Width = 1350
End
End
Attribute VB_Name = "duzhe_tushu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim condition As String
condition = Combo1.Text & "='" & Text1.Text & "'"
Adodc1.Recordset.Filter = condition
If Adodc1.Recordset.EOF = False Then
Set DataGrid1.DataSource = Adodc1.Recordset
Else
MsgBox "沒有您要找的信息"
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
End Sub
Private Sub command3_Click()
Adodc1.Recordset.Filter = ""
Set DataGrid1.DataSource = Adodc1.Recordset
End Sub
Private Sub Form_Load()
Combo1.AddItem "圖書編號"
Combo1.AddItem "書名"
Combo1.AddItem "作者"
Combo1.AddItem "出版社"
Combo1.AddItem "出版日期"
Combo1.AddItem "單價"
Adodc1.Refresh
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -