📄 main_xfpcx.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "msflxgrd.ocx"
Begin VB.Form main_xfpcx
BackColor = &H00C0C0C0&
Caption = "消费品查询"
ClientHeight = 6120
ClientLeft = 60
ClientTop = 345
ClientWidth = 7410
LinkTopic = "Form1"
ScaleHeight = 6120
ScaleWidth = 7410
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "退出"
Height = 495
Left = 5400
TabIndex = 5
Top = 1320
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 3600
TabIndex = 4
Top = 1320
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "查询"
Height = 495
Left = 1800
TabIndex = 3
Top = 1320
Width = 1095
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 975
Left = 240
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "xfp"
Top = 4320
Visible = 0 'False
Width = 1335
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Bindings = "main_xfpcx.frx":0000
Height = 3375
Left = 1080
TabIndex = 2
Top = 2040
Width = 5775
_ExtentX = 10186
_ExtentY = 5953
_Version = 393216
Rows = 7
Cols = 7
End
Begin VB.TextBox Text1
Height = 495
Left = 3240
TabIndex = 1
Top = 240
Width = 2655
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "请输入消费品名称"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 1320
TabIndex = 0
Top = 240
Width = 1815
End
End
Attribute VB_Name = "main_xfpcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Data1.RecordSource = "select * from xfp where xfp.名称 like " + Chr(34) + Text1.Text + "*" + Chr(34) + ""
Data1.Refresh
End Sub
Private Sub Command2_Click()
Text1.Text = ""
End Sub
Private Sub Command3_Click()
main.Enabled = True
Unload Me
End Sub
Private Sub Form_Load()
Data1.DatabaseName = App.Path + "\db.MDB"
End Sub
Private Sub Form_Unload(Cancel As Integer)
main.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -