📄 form1.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 6495
ClientLeft = 180
ClientTop = 420
ClientWidth = 9885
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 6495
ScaleWidth = 9885
WindowState = 2 'Maximized
Begin VB.CommandButton Command2
Caption = "显示全部"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2040
TabIndex = 6
Top = 5760
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "查询"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4920
TabIndex = 5
Top = 5760
Width = 1455
End
Begin VB.ComboBox Combo1
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 330
ItemData = "Form1.frx":0000
Left = 1560
List = "Form1.frx":0010
TabIndex = 4
Text = "Combo1"
Top = 4320
Width = 2175
End
Begin VB.TextBox Text3
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 375
Left = 5520
TabIndex = 1
Top = 4200
Width = 2415
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "binren.mdb"
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 495
Left = 960
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 6720
Visible = 0 'False
Width = 2895
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Bindings = "Form1.frx":0030
Height = 2535
Left = 1440
TabIndex = 0
Top = 1320
Width = 7095
_ExtentX = 12515
_ExtentY = 4471
_Version = 393216
AllowUserResizing= 3
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 375
Left = 7680
TabIndex = 7
Top = 5520
Width = 1455
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "查询字段名"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 375
Left = 120
TabIndex = 3
Top = 4440
Width = 1455
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "查询关键字"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 375
Left = 4080
TabIndex = 2
Top = 4320
Width = 1455
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim a As String
Dim b As String
a = Trim(Combo1.Text)
b = Trim(Text3.Text)
Data1.RecordSource = "select *from bingren where " & a & "='" & b & "'"
Data1.Refresh
End Sub
Private Sub Command2_Click()
Data1.RecordSource = "select *from bingren"
Data1.Refresh
End Sub
Private Sub Form_Load()
Combo1.Text = "姓名"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -