📄 xzkh.frm
字号:
VERSION 5.00
Begin VB.Form xzkh
BorderStyle = 1 'Fixed Single
Caption = "查找客户"
ClientHeight = 2985
ClientLeft = 3975
ClientTop = 2925
ClientWidth = 3930
Icon = "xzkh.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 2985
ScaleWidth = 3930
Begin VB.Frame Frame1
Height = 2895
Left = 0
TabIndex = 0
Top = 0
Width = 3855
Begin VB.CommandButton Command2
Caption = "取消(&C)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2400
TabIndex = 10
Top = 2160
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "确定(&O)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2400
TabIndex = 9
Top = 1440
Width = 1095
End
Begin VB.Frame Frame3
Caption = "查询内容"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 855
Left = 2040
TabIndex = 7
Top = 240
Width = 1695
Begin VB.TextBox Text1
BackColor = &H00FFFFFF&
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 375
Left = 120
TabIndex = 8
Top = 360
Width = 1455
End
End
Begin VB.Frame Frame2
Caption = "查询主题"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 2535
Left = 120
TabIndex = 1
Top = 240
Width = 1815
Begin VB.OptionButton Option1
Caption = "编号"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 255
Index = 0
Left = 120
TabIndex = 6
Top = 360
Width = 855
End
Begin VB.OptionButton Option1
Caption = "客户名称"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 255
Index = 1
Left = 120
TabIndex = 5
Top = 720
Width = 1335
End
Begin VB.OptionButton Option1
Caption = "联系人"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 255
Index = 2
Left = 120
TabIndex = 4
Top = 1200
Width = 1455
End
Begin VB.OptionButton Option1
Caption = "联系电话"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 255
Index = 3
Left = 120
TabIndex = 3
Top = 1680
Width = 1335
End
Begin VB.OptionButton Option1
Caption = "客户类型"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 255
Index = 4
Left = 120
TabIndex = 2
Top = 2160
Width = 1335
End
End
End
End
Attribute VB_Name = "xzkh"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public a As Integer
Private Sub Command1_Click()
Dim oIndex As Integer
If Option1(0).Value = True Then oIndex = 0
If Option1(1).Value = True Then oIndex = 1
If Option1(2).Value = True Then oIndex = 2
If Option1(3).Value = True Then oIndex = 3
If Option1(4).Value = True Then oIndex = 4
'查找商品
Select Case oIndex
Case 0
khxx.Data1.RecordSource = "select * from wldw where " & "dwbh" & " = '" & Trim(Text1.Text) & "'"
Case 1
khxx.Data1.RecordSource = "select * from wldw where " & "dwmc" & " = '" & Trim(Text1.Text) & "'"
Case 2
khxx.Data1.RecordSource = "select * from wldw where " & "lxr" & " = '" & Trim(Text1.Text) & "'"
Case 3
khxx.Data1.RecordSource = "select * from wldw where " & "lxdh" & " = '" & Trim(Text1.Text) & "'"
Case 4
khxx.Data1.RecordSource = "select * from wldw where " & "khlx" & " = '" & Trim(Text1.Text) & "'"
End Select
Unload Me
khxx.Data1.Refresh
'zyxx.Data1.Recordset.MoveFirst
If khxx.Data1.Recordset.BOF = True Then
MsgBox "没有找到符合条件的记录。", vbInformation, "提示"
Unload Me
khxx.Data1.RecordSource = "select * from wldw"
khxx.Data1.Refresh
khxx.Show
Else
khxx.Show
End If
End Sub
Private Sub Command2_Click()
khxx.Data1.RecordSource = "select * from wldw"
khxx.Data1.Refresh
khxx.Show
Unload Me
End Sub
Private Sub Image2_Click()
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -