📄 frmthsearch.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"
Object = "{F6B9D3BC-3953-4A68-AD1A-BD05206D76A9}#1.0#0"; "hmButton.ocx"
Begin VB.Form FrmTHsearch
Caption = "退货信息查询"
ClientHeight = 8085
ClientLeft = 60
ClientTop = 450
ClientWidth = 10320
LinkTopic = "Form1"
ScaleHeight = 8085
ScaleWidth = 10320
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 2880
Top = 2880
Visible = 0 'False
Width = 2415
_ExtentX = 4260
_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= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\SQL数据库设计\data\db.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\SQL数据库设计\data\db.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 退货图书表"
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.Frame Frame2
Caption = "查询结果"
Height = 4935
Left = 360
TabIndex = 1
Top = 3000
Width = 9495
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "FrmTHsearch.frx":0000
Height = 4335
Left = 240
TabIndex = 10
Top = 360
Width = 9015
_ExtentX = 15901
_ExtentY = 7646
_Version = 393216
AllowUpdate = 0 'False
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.Frame Frame1
Caption = "查询条件"
Height = 2535
Left = 360
TabIndex = 0
Top = 240
Width = 9495
Begin VB.ComboBox Combo2
Height = 300
Left = 1200
TabIndex = 13
Text = "<"
Top = 1680
Width = 735
End
Begin VB.ComboBox Combo1
Height = 300
Left = 1200
TabIndex = 12
Text = ">"
Top = 1080
Width = 735
End
Begin VB.ComboBox Combo3
Height = 300
Left = 720
TabIndex = 11
Text = "选择条件"
Top = 480
Width = 1215
End
Begin 黑马按钮控件.dcButton dcButton3
Height = 375
Left = 7560
TabIndex = 9
Top = 1680
Width = 1095
_ExtentX = 1931
_ExtentY = 661
BackColor = 14742518
ButtonStyle = 8
Caption = "查询"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.TextBox Text3
Height = 375
Left = 1920
TabIndex = 8
Top = 1680
Width = 5055
End
Begin 黑马按钮控件.dcButton dcButton2
Height = 375
Left = 7560
TabIndex = 6
Top = 1080
Width = 1095
_ExtentX = 1931
_ExtentY = 661
BackColor = 14742518
ButtonStyle = 8
Caption = "查询"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.TextBox Text2
Height = 375
Left = 1920
TabIndex = 5
Top = 1080
Width = 5055
End
Begin 黑马按钮控件.dcButton dcButton1
Height = 375
Left = 7560
TabIndex = 3
Top = 480
Width = 1095
_ExtentX = 1931
_ExtentY = 661
BackColor = 14742518
ButtonStyle = 8
Caption = "查询"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.TextBox Text1
Height = 375
Left = 1920
TabIndex = 2
Top = 480
Width = 5055
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "进价"
Height = 180
Left = 600
TabIndex = 7
Top = 1680
Width = 360
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "退货日期"
Height = 180
Left = 360
TabIndex = 4
Top = 1080
Width = 720
End
End
End
Attribute VB_Name = "FrmTHsearch"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub dcButton1_Click()
Adodc1.RecordSource = "select * from 退货图书表 where " & Combo3.Text & " like '%" & Text1.Text & "%'"
Adodc1.Refresh
End Sub
Private Sub dcButton2_Click()
Adodc1.RecordSource = "select * from 退货图书表 where 退货日期 " & Combo1.Text & Text2.Text
Adodc1.Refresh
End Sub
Private Sub dcButton3_Click()
Adodc1.RecordSource = "select * from 退货图书表 where 进价 " & Combo2.Text & Val(Text3.Text) & " order by 进价"
Adodc1.Refresh
End Sub
Private Sub Form_Load()
Combo3.AddItem "图书编号"
Combo3.AddItem "图书名"
Combo3.AddItem "供应商编号"
Combo1.AddItem ">"
Combo1.AddItem "="
Combo1.AddItem "<"
Combo2.AddItem ">"
Combo2.AddItem "="
Combo2.AddItem "<"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -