📄 form3.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form Form3
Caption = "Form3"
ClientHeight = 6495
ClientLeft = 120
ClientTop = 435
ClientWidth = 9885
LinkTopic = "Form3"
MDIChild = -1 'True
ScaleHeight = 6495
ScaleWidth = 9885
WindowState = 2 'Maximized
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "binren.mdb"
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 285
Left = 3240
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 6480
Visible = 0 'False
Width = 2055
End
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 = 2640
TabIndex = 3
Top = 5520
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 = 5520
TabIndex = 2
Top = 5520
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 = "Form3.frx":0000
Left = 1560
List = "Form3.frx":000A
TabIndex = 1
Text = "Combo1"
Top = 3840
Width = 2895
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 = 6240
TabIndex = 0
Top = 3840
Width = 2895
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Bindings = "Form3.frx":0022
Height = 2055
Left = 1560
TabIndex = 4
Top = 1080
Width = 6615
_ExtentX = 11668
_ExtentY = 3625
_Version = 393216
AllowUserResizing= 3
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 = 6
Top = 3960
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 = 4800
TabIndex = 5
Top = 3960
Width = 1455
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Combo1.Text = "病人编号"
End Sub
Private Sub Command1_Click()
Dim a As String
Dim b As String
a = Trim(Combo1.Text)
b = Trim(Text3.Text)
Data1.RecordSource = "select *from bingli where " & a & "='" & b & "'"
Data1.Refresh
End Sub
Private Sub Command2_Click()
Data1.RecordSource = "select *from bingli"
Data1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -