📄 fangkechaxun.frm
字号:
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 56
Top = 3480
Width = 735
End
Begin VB.TextBox Text12
Height = 1215
Index = 0
Left = 1200
TabIndex = 27
Top = 3000
Width = 3015
End
Begin VB.TextBox Text11
Height = 300
Index = 0
Left = 3120
TabIndex = 25
Top = 2280
Width = 1095
End
Begin VB.TextBox Text10
Height = 300
Index = 0
Left = 960
TabIndex = 23
Top = 2280
Width = 1095
End
Begin VB.TextBox Text9
Height = 300
Index = 0
Left = 3120
TabIndex = 21
Top = 1800
Width = 1095
End
Begin VB.TextBox Text8
Height = 300
Index = 0
Left = 960
TabIndex = 19
Top = 1800
Width = 1095
End
Begin VB.TextBox Text7
Height = 300
Index = 0
Left = 3120
TabIndex = 17
Top = 1320
Width = 1095
End
Begin VB.TextBox Text6
Height = 300
Index = 0
Left = 960
TabIndex = 15
Top = 1320
Width = 1095
End
Begin VB.TextBox Text5
Height = 300
Index = 0
Left = 3120
TabIndex = 13
Top = 840
Width = 1095
End
Begin VB.TextBox Text4
Height = 300
Index = 0
Left = 960
TabIndex = 11
Top = 840
Width = 1095
End
Begin VB.TextBox Text3
Height = 300
Index = 0
Left = 3120
TabIndex = 9
Top = 360
Width = 1095
End
Begin VB.TextBox Text2
Height = 300
Index = 0
Left = 960
TabIndex = 7
Top = 360
Width = 1095
End
Begin VB.Label Label12
Caption = "备注:"
Height = 255
Left = 480
TabIndex = 26
Top = 3000
Width = 495
End
Begin VB.Label Label11
Caption = "总金额:"
Height = 255
Left = 2280
TabIndex = 24
Top = 2280
Width = 735
End
Begin VB.Label Label10
Caption = "住宿人数:"
Height = 255
Left = 120
TabIndex = 22
Top = 2280
Width = 855
End
Begin VB.Label Label9
Caption = "住宿天数:"
Height = 255
Left = 2160
TabIndex = 20
Top = 1800
Width = 855
End
Begin VB.Label Label8
Caption = "房间号码:"
Height = 255
Left = 120
TabIndex = 18
Top = 1800
Width = 855
End
Begin VB.Label Label7
Caption = "证件号码:"
Height = 255
Left = 2160
TabIndex = 16
Top = 1440
Width = 855
End
Begin VB.Label Label6
Caption = "证件名称:"
Height = 255
Left = 120
TabIndex = 14
Top = 1320
Width = 855
End
Begin VB.Label Label5
Caption = "住店时间:"
Height = 255
Left = 2160
TabIndex = 12
Top = 840
Width = 855
End
Begin VB.Label Label4
Caption = "籍贯:"
Height = 255
Left = 240
TabIndex = 10
Top = 840
Width = 495
End
Begin VB.Label Label3
Caption = "性别:"
Height = 255
Left = 2280
TabIndex = 8
Top = 360
Width = 495
End
Begin VB.Label Label2
Caption = "姓名:"
Height = 255
Left = 240
TabIndex = 6
Top = 360
Width = 495
End
End
Begin VB.Frame Frame1
Height = 735
Left = 120
TabIndex = 1
Top = 360
Width = 4455
Begin VB.CommandButton Command1
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3480
TabIndex = 4
Top = 240
Width = 855
End
Begin VB.TextBox Text1
Height = 375
Left = 1920
TabIndex = 3
Top = 240
Width = 1335
End
Begin VB.Label Label1
Caption = "请输入要查找的姓名:"
Height = 255
Left = 120
TabIndex = 2
Top = 240
Width = 1815
End
End
End
End
Attribute VB_Name = "fangkechaxun"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim db As Database
Dim rs As Recordset
Private Sub Command1_Click()
Set db = OpenDatabase(App.Path & "\旅店登记.mdb")
Set rs = db.OpenRecordset("旅店登记")
Set rs = db.OpenRecordset("select * from 旅店登记 where 姓名='" & Text1.Text & "'")
If rs.EOF = True Then
MsgBox "旅店登记信息出错!"
Else
Text2(0) = rs.Fields(0)
Text3(0) = rs.Fields(1)
Text4(0) = rs.Fields(2)
Text5(0) = rs.Fields(5)
Text6(0) = rs.Fields(9)
Text7(0) = rs.Fields(10)
Text8(0) = rs.Fields(10)
Text9(0) = rs.Fields(11)
Text10(0) = rs.Fields(13)
Text11(0) = rs.Fields(14)
End If
End Sub
Private Sub Command3_Click()
Set db = OpenDatabase(App.Path & "\旅店登记.mdb")
Set rs = db.OpenRecordset("旅店登记")
Set rs = db.OpenRecordset("select * from 旅店登记 where 证件号码='" & Text13.Text & "'")
If rs.EOF = True Then
MsgBox "旅店登记信息出错!"
Else
Text2(1) = rs.Fields(0)
Text3(1) = rs.Fields(1)
Text4(1) = rs.Fields(2)
Text5(1) = rs.Fields(5)
Text6(1) = rs.Fields(9)
Text7(1) = rs.Fields(10)
Text8(1) = rs.Fields(10)
Text9(1) = rs.Fields(11)
Text10(1) = rs.Fields(13)
Text11(1) = rs.Fields(14)
End If
End Sub
Private Sub Command2_Click()
fangkechaxun.Hide
End Sub
Private Sub Command4_Click()
fangkechaxun.Hide
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -