📄 frmfml.frm
字号:
VERSION 5.00
Begin VB.Form frmfml
BorderStyle = 1 'Fixed Single
Caption = "家庭成员表"
ClientHeight = 5130
ClientLeft = 45
ClientTop = 330
ClientWidth = 7725
ControlBox = 0 'False
LinkTopic = "Form3"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5130
ScaleWidth = 7725
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command11
Caption = "返回"
Height = 375
Left = 6120
TabIndex = 33
Top = 2160
Width = 1095
End
Begin VB.CommandButton Command10
Caption = "取消"
Height = 375
Left = 6120
TabIndex = 32
Top = 4200
Width = 1215
End
Begin VB.TextBox Text3
Height = 270
Left = 3480
TabIndex = 29
Top = 4200
Width = 1215
End
Begin VB.CommandButton Command7
Caption = "修改"
Height = 375
Left = 1560
TabIndex = 24
Top = 3960
Width = 975
End
Begin VB.CommandButton Command6
Caption = "删除"
Height = 375
Left = 480
TabIndex = 23
Top = 4200
Width = 975
End
Begin VB.CommandButton Command5
Caption = "添加"
Height = 375
Left = 480
TabIndex = 22
Top = 3720
Width = 975
End
Begin VB.Frame Frame2
Caption = "维护管理"
Height = 1455
Left = 360
TabIndex = 21
Top = 3360
Width = 7095
Begin VB.CommandButton Command9
Caption = "确定"
Height = 375
Left = 5760
TabIndex = 31
Top = 240
Width = 1215
End
Begin VB.Frame Frame3
Caption = "查询"
Height = 1215
Left = 2280
TabIndex = 25
Top = 120
Width = 3375
Begin VB.CommandButton Command8
Caption = "查找"
Height = 375
Left = 2160
TabIndex = 30
Top = 480
Width = 1095
End
Begin VB.TextBox Text2
Height = 270
Left = 840
TabIndex = 28
Top = 360
Width = 1215
End
Begin VB.Label Label3
Caption = "按姓名"
Height = 255
Left = 120
TabIndex = 27
Top = 720
Width = 855
End
Begin VB.Label Label2
Caption = "按编号"
Height = 255
Left = 120
TabIndex = 26
Top = 360
Width = 735
End
End
End
Begin VB.CommandButton Command4
Caption = "最后一条"
Height = 375
Left = 5760
TabIndex = 20
Top = 2760
Width = 1455
End
Begin VB.CommandButton Command3
Caption = "下一条"
Height = 375
Left = 2280
TabIndex = 19
Top = 2760
Width = 1455
End
Begin VB.CommandButton Command2
Caption = "上一条"
Height = 375
Left = 3960
TabIndex = 18
Top = 2760
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "第一条"
Height = 375
Left = 600
TabIndex = 17
Top = 2760
Width = 1455
End
Begin VB.Frame Frame1
Caption = "浏览"
Height = 735
Left = 360
TabIndex = 16
Top = 2520
Width = 7095
End
Begin VB.TextBox Text1
Height = 270
Index = 7
Left = 4560
TabIndex = 7
Text = "Text1"
Top = 1800
Width = 1575
End
Begin VB.TextBox Text1
Height = 270
Index = 6
Left = 4560
TabIndex = 6
Text = "Text1"
Top = 1320
Width = 2655
End
Begin VB.TextBox Text1
Height = 270
Index = 5
Left = 4560
TabIndex = 5
Text = "Text1"
Top = 840
Width = 1575
End
Begin VB.TextBox Text1
Height = 270
Index = 4
Left = 4560
TabIndex = 4
Text = "Text1"
Top = 360
Width = 1575
End
Begin VB.TextBox Text1
Height = 270
Index = 3
Left = 1320
TabIndex = 3
Text = "Text1"
Top = 1800
Width = 1335
End
Begin VB.TextBox Text1
Height = 270
Index = 2
Left = 1320
TabIndex = 2
Text = "Text1"
Top = 1320
Width = 1575
End
Begin VB.TextBox Text1
Height = 270
Index = 1
Left = 1320
TabIndex = 1
Text = "Text1"
Top = 840
Width = 1455
End
Begin VB.TextBox Text1
Height = 270
Index = 0
Left = 1320
TabIndex = 0
Text = "Text1"
Top = 360
Width = 1335
End
Begin VB.Label Label4
Caption = "时间格式:月/日/年"
ForeColor = &H000000C0&
Height = 255
Left = 360
TabIndex = 34
Top = 2160
Width = 2415
End
Begin VB.Label Label1
Caption = "联系电话:"
Height = 255
Index = 7
Left = 3480
TabIndex = 15
Top = 1800
Width = 975
End
Begin VB.Label Label1
Caption = "工作单位:"
Height = 255
Index = 6
Left = 3480
TabIndex = 14
Top = 1320
Width = 975
End
Begin VB.Label Label1
Caption = "政治面貌:"
Height = 255
Index = 5
Left = 3480
TabIndex = 13
Top = 840
Width = 1095
End
Begin VB.Label Label1
Caption = "与职工关系:"
Height = 255
Index = 4
Left = 3360
TabIndex = 12
Top = 360
Width = 1095
End
Begin VB.Label Label1
Caption = "出生日期:"
Height = 255
Index = 3
Left = 360
TabIndex = 11
Top = 1800
Width = 975
End
Begin VB.Label Label1
Caption = "成员姓名:"
Height = 255
Index = 2
Left = 360
TabIndex = 10
Top = 1320
Width = 975
End
Begin VB.Label Label1
Caption = "姓名:"
ForeColor = &H00FF0000&
Height = 255
Index = 1
Left = 360
TabIndex = 9
Top = 840
Width = 975
End
Begin VB.Label Label1
Caption = "编号:"
ForeColor = &H00FF0000&
Height = 255
Index = 0
Left = 360
TabIndex = 8
Top = 360
Width = 975
End
End
Attribute VB_Name = "frmfml"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim op As Boolean
Dim error As Boolean
Dim selen As New ADODB.Recordset
Dim selex As New ADODB.Recordset
Private Sub Command1_Click()
Command1.Enabled = False
Command2.Enabled = False
Command3.Enabled = True
Command4.Enabled = True
If fmlc.RecordCount > 0 Then
fmlc.MoveFirst
displayfml
Else
MsgBox "database error!"
End If
End Sub
Private Sub Command10_Click()
If judge = True Then
If fmlc.RecordCount > 0 Then
fmlc.MoveFirst
displayfml
Command1.Enabled = True
Command2.Enabled = True
Command3.Enabled = True
Command4.Enabled = True
Command5.Enabled = True
Command6.Enabled = True
Command7.Enabled = True
Command9.Enabled = False
Else
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -