?? form3.frm
字號(hào):
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 = "查詢關(guān)鍵字"
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 = "病人編號(hào)"
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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -