📄 findkhf.frm
字号:
VERSION 5.00
Object = "{FAEEE763-117E-101B-8933-08002B2F4F5A}#1.1#0"; "DBLIST32.OCX"
Begin VB.Form findkhf
BorderStyle = 1 'Fixed Single
Caption = "按客户名称查找"
ClientHeight = 1755
ClientLeft = 4605
ClientTop = 3315
ClientWidth = 4680
Icon = "findkhf.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1755
ScaleWidth = 4680
Begin MSDBCtls.DBCombo DBCombo1
Bindings = "findkhf.frx":0742
Height = 330
Left = 1320
TabIndex = 2
Top = 480
Width = 2655
_ExtentX = 4683
_ExtentY = 582
_Version = 327680
ListField = "客户名称"
Text = "选择或输入查询条件"
End
Begin VB.CommandButton Command1
Caption = "查 找"
Default = -1 'True
Height = 375
Left = 1440
TabIndex = 1
Top = 1200
Width = 2295
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 = 0
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "kh"
Top = 1200
Visible = 0 'False
Width = 1140
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "输入客户名:"
Height = 180
Left = 120
TabIndex = 0
Top = 650
Width = 1080
End
End
Attribute VB_Name = "findkhf"
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 + -