📄 carefind.frm
字号:
VERSION 5.00
Begin VB.Form CareFind
Caption = "查询"
ClientHeight = 2385
ClientLeft = 60
ClientTop = 345
ClientWidth = 6450
Icon = "CareFind.frx":0000
LinkTopic = "Form1"
ScaleHeight = 2385
ScaleWidth = 6450
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Height = 2295
Left = 120
TabIndex = 0
Top = 0
Width = 6255
Begin VB.ComboBox Combo1
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 1800
TabIndex = 6
Top = 480
Width = 2415
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 1800
TabIndex = 5
Top = 840
Width = 2415
End
Begin VB.ComboBox Combo2
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 1800
TabIndex = 4
Top = 1200
Width = 2415
End
Begin VB.ComboBox Combo3
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 1800
TabIndex = 3
Top = 1560
Width = 2415
End
Begin VB.CommandButton Command1
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4800
TabIndex = 2
Top = 720
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "退出"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4800
TabIndex = 1
Top = 1440
Width = 1095
End
Begin VB.Label Label1
Caption = "卡片类别"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 10
Top = 480
Width = 2055
End
Begin VB.Label Label2
Caption = "名称"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 9
Top = 885
Width = 2055
End
Begin VB.Label Label3
Caption = "购入方式"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 8
Top = 1275
Width = 2055
End
Begin VB.Label Label4
Caption = "所属部门"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 7
Top = 1680
Width = 2055
End
End
End
Attribute VB_Name = "CareFind"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public sqlstr As String
Private Sub Command1_Click()
If Combo1.Text <> "" Then
sqlstr = sqlstr & " and dbo.GyzcCode.Name like " & "'" & Combo1.Text & "'"
End If
If Text1.Text <> "" Then
sqlstr = sqlstr & " and dbo.GyzcCare.Name Like " & "'" & Text1.Text & "%" & "'"
End If
If Combo2.Text <> "" Then
sqlstr = sqlstr & " and dbo.AddMode.Name like " & "'" & Combo2.Text & "'"
End If
If Combo3.Text <> "" Then
sqlstr = sqlstr & " and dbo.DwBmCode.Name like " & "'" & Combo3.Text & "'"
End If
Unload Me
GareList.Show 1
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim strSql As String
sqlstr = ""
strSql = "select Name from AddMode"
Call AddDataComboBox(strSql, Combo2)
strSql = "select Name from GyzcCode where Mjbz=1"
Call AddDataComboBox(strSql, Combo1)
strSql = "select Name from DwBmCode where Mjbz=1"
Call AddDataComboBox(strSql, Combo3)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -