📄 main_ygcx.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "msflxgrd.ocx"
Begin VB.Form main_ygcx
BackColor = &H00C0C0C0&
Caption = "员工查询"
ClientHeight = 7290
ClientLeft = 60
ClientTop = 345
ClientWidth = 9120
LinkTopic = "Form1"
ScaleHeight = 7290
ScaleWidth = 9120
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "退出"
Height = 975
Left = 6960
TabIndex = 6
Top = 720
Width = 1575
End
Begin VB.Frame Frame1
Height = 2295
Left = 1200
TabIndex = 1
Top = 240
Width = 4935
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 2880
TabIndex = 5
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "查询"
Height = 495
Left = 840
TabIndex = 4
Top = 1560
Width = 1215
End
Begin VB.TextBox Text1
Height = 495
Left = 2280
TabIndex = 3
Top = 480
Width = 2175
End
Begin VB.Label Label1
Caption = "请输入员工姓名"
Height = 375
Left = 600
TabIndex = 2
Top = 600
Width = 1455
End
End
Begin VB.Data Data1
BOFAction = 1 'BOF
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = -1 'True
Height = 615
Left = 0
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "ygb"
Top = 3360
Visible = 0 'False
Width = 1140
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Bindings = "main_ygcx.frx":0000
CausesValidation= 0 'False
Height = 4215
Left = 840
TabIndex = 0
Top = 2640
Width = 6495
_ExtentX = 11456
_ExtentY = 7435
_Version = 393216
Rows = 8
Cols = 8
End
End
Attribute VB_Name = "main_ygcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Data1.DatabaseName = App.Path + "\db.MDB"
End Sub
Private Sub Form_Unload(Cancel As Integer)
main.Enabled = True
End Sub
Private Sub Command1_Click()
Data1.RecordSource = "select * from ygb where ygb.姓名 like " + Chr(34) + Text1.Text + "*" + Chr(34) + ""
Data1.Refresh
End Sub
Private Sub Command2_Click()
Text1.Text = ""
End Sub
Private Sub Command3_Click()
main.Enabled = True
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -