📄 yudingchaxun.frm
字号:
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 28
Top = 3360
Width = 735
End
Begin VB.TextBox Text12
Height = 1215
Index = 0
Left = 1200
TabIndex = 27
Top = 3000
Width = 3135
End
Begin VB.TextBox Text11
Height = 300
Index = 0
Left = 3240
TabIndex = 25
Top = 2280
Width = 1095
End
Begin VB.TextBox Text10
Height = 300
Index = 0
Left = 960
TabIndex = 23
Top = 2160
Width = 1095
End
Begin VB.TextBox Text9
Height = 300
Index = 0
Left = 3240
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 = 3240
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 = 3240
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 = 3240
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 = 240
TabIndex = 26
Top = 2880
Width = 855
End
Begin VB.Label Label11
Caption = "折扣:"
Height = 255
Left = 2520
TabIndex = 24
Top = 2160
Width = 495
End
Begin VB.Label Label10
Caption = "客房单价:"
Height = 255
Left = 120
TabIndex = 22
Top = 2160
Width = 855
End
Begin VB.Label Label9
Caption = "房间类型:"
Height = 255
Left = 2280
TabIndex = 20
Top = 1800
Width = 975
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 = 2280
TabIndex = 16
Top = 1320
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 = 1095
End
Begin VB.Label Label4
Caption = "电话号码:"
Height = 255
Left = 120
TabIndex = 10
Top = 840
Width = 855
End
Begin VB.Label Label3
Caption = "性别:"
Height = 255
Left = 2400
TabIndex = 8
Top = 360
Width = 495
End
Begin VB.Label Label2
Caption = "姓名:"
Height = 255
Left = 120
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 = 3360
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 = 360
Width = 1815
End
End
End
End
Attribute VB_Name = "yudingchaxun"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
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(3)
Text6(0) = rs.Fields(4)
Text7(0) = rs.Fields(5)
Text8(0) = rs.Fields(6)
Text9(0) = rs.Fields(7)
Text10(0) = rs.Fields(8)
Text11(0) = rs.Fields(9)
Text12(0) = rs.Fields(10)
End If
End Sub
Private Sub Command2_Click()
yudingchaxun.Hide
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(3)
Text6(1) = rs.Fields(4)
Text7(1) = rs.Fields(5)
Text8(1) = rs.Fields(6)
Text9(1) = rs.Fields(7)
Text10(1) = rs.Fields(8)
Text11(1) = rs.Fields(9)
Text12(1) = rs.Fields(10)
End If
End Sub
Private Sub Command4_Click()
yudingchaxun.Hide
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -