📄 frmcheckoutview.frm
字号:
VERSION 5.00
Begin VB.Form FrmCheckOutView
BackColor = &H00C0E0FF&
BorderStyle = 0 'None
Caption = "View Check Out Record"
ClientHeight = 9105
ClientLeft = 0
ClientTop = 0
ClientWidth = 11205
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 9105
ScaleWidth = 11205
ShowInTaskbar = 0 'False
Begin VB.CommandButton Command1
BackColor = &H00808080&
Caption = "Quit"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 8400
Style = 1 'Graphical
TabIndex = 7
Top = 8040
Width = 2415
End
Begin VB.ListBox List5
Appearance = 0 'Flat
BackColor = &H0080C0FF&
Height = 6270
ItemData = "FrmCheckOutView.frx":0000
Left = 7680
List = "FrmCheckOutView.frx":0002
TabIndex = 5
Top = 1440
Width = 3135
End
Begin VB.ListBox List1
Appearance = 0 'Flat
BackColor = &H0080C0FF&
Height = 6270
ItemData = "FrmCheckOutView.frx":0004
Left = 360
List = "FrmCheckOutView.frx":0006
TabIndex = 4
Top = 1440
Width = 1575
End
Begin VB.ListBox List2
Appearance = 0 'Flat
BackColor = &H0080C0FF&
Height = 6270
ItemData = "FrmCheckOutView.frx":0008
Left = 1920
List = "FrmCheckOutView.frx":000A
TabIndex = 3
Top = 1440
Width = 1695
End
Begin VB.ListBox List3
Appearance = 0 'Flat
BackColor = &H0080C0FF&
Height = 6270
ItemData = "FrmCheckOutView.frx":000C
Left = 3600
List = "FrmCheckOutView.frx":000E
TabIndex = 2
Top = 1440
Width = 2055
End
Begin VB.ListBox List4
Appearance = 0 'Flat
BackColor = &H0080C0FF&
Height = 6270
ItemData = "FrmCheckOutView.frx":0010
Left = 5640
List = "FrmCheckOutView.frx":0012
TabIndex = 1
Top = 1440
Width = 2055
End
Begin VB.Label Label2
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
BorderStyle = 1 'Fixed Single
Caption = "Customer No. Check In Check Out Date Room No Customer Name"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 375
Left = 360
TabIndex = 6
Top = 1080
Width = 10455
End
Begin VB.Line Line1
X1 = 1920
X2 = 1920
Y1 = 1440
Y2 = 1080
End
Begin VB.Line Line2
X1 = 3600
X2 = 3600
Y1 = 1440
Y2 = 1080
End
Begin VB.Line Line3
X1 = 5640
X2 = 5640
Y1 = 1440
Y2 = 1080
End
Begin VB.Line Line4
X1 = 7680
X2 = 7680
Y1 = 1440
Y2 = 1080
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "View Check Out Record"
BeginProperty Font
Name = "Times New Roman"
Size = 24
Charset = 0
Weight = 700
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 735
Left = 360
TabIndex = 0
Top = 240
Width = 5415
End
End
Attribute VB_Name = "FrmCheckOutView"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim MyDb As Database, MyRs As Recordset
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Load()
Me.Left = MDIForm1.Left + 1000
Me.Top = MDIForm1.Top + 1000
SQL = "select distinct * from PRINTDB"
Set MyDb = DBEngine.Workspaces(0).OpenDatabase("D:\HOTEL\PRINT\PRINT.MDB")
Set MyRs = MyDb.OpenRecordset(SQL, dbOpenDynaset)
Do While Not MyRs.EOF
List1.AddItem MyRs!ID
List2.AddItem MyRs!checkindate
List3.AddItem MyRs!checkoutdate
List4.AddItem MyRs!ROOMNO
List5.AddItem MyRs!Name
MyRs.MoveNext
Loop
End Sub
Private Sub List1_Click()
List2.ListIndex = List1.ListIndex
List3.ListIndex = List1.ListIndex
List4.ListIndex = List1.ListIndex
List5.ListIndex = List1.ListIndex
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -