📄 findsp.frm
字号:
VERSION 5.00
Object = "{FAEEE763-117E-101B-8933-08002B2F4F5A}#1.1#0"; "DBLIST32.OCX"
Begin VB.Form findsp
BorderStyle = 3 'Fixed Dialog
Caption = "按商品名称查询"
ClientHeight = 1920
ClientLeft = 3360
ClientTop = 4170
ClientWidth = 8190
Icon = "findsp.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1920
ScaleWidth = 8190
ShowInTaskbar = 0 'False
Begin VB.CommandButton Command1
Caption = "查 询"
Default = -1 'True
Height = 375
Left = 3000
TabIndex = 2
Top = 960
Width = 2895
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "C:\Program Files\YWGL\ywy.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 285
Left = 240
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "sp"
Top = 840
Visible = 0 'False
Width = 1335
End
Begin MSDBCtls.DBCombo DBCombo1
Bindings = "findsp.frx":0742
Height = 330
Left = 2040
TabIndex = 0
Top = 360
Width = 6015
_ExtentX = 10610
_ExtentY = 582
_Version = 327680
ListField = "商品名称"
Text = "选择或输入查询条件:"
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "选择或输入商品名称:"
Height = 180
Left = 120
TabIndex = 1
Top = 435
Width = 1800
End
End
Attribute VB_Name = "findsp"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Load jg
jg.Data1.RecordSource = "select * from yw where 商品名称='" & DBCombo1.Text & "'"
jg.Data1.Refresh
jg.Show vbModal
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -