The project entitled HOTEL MANAGEMENT SYSTEM has been designed and developed for Hotel Days-inn. The main aim of this project is computerization of all customer needs. It is a database system for creating a selective retrieved of information, for subsequent analysis, manipulation and application.

The system has different modules for various activities. The various modules of the system are rooms enquiry details, reservation details, cancellation details, vacating details, and restaurant information.

Implementation of this system requires the use of computers with most versatile system. Hence, this software is developed on MS-Windows platform using Visual Basic 6.0.

This package if fully of menu-driven with pop-up menu being given wherever there is a need. It is very simple in its creation and all the user-friendly facilities are provided. Messages are given wherever there is a need. Special care has been made for data integrity and security; in addition the authorization is also given. This system of computerization is to ameliorate and make more advantages than the existing system by being

 More efficient  More reliable  Time saving and  Accurate

The unique micro computer server is used to maintain the database in MS-ACCESS with Visual Basic as front end-tool. The reason for choosing this package, Visual Basic is because of utilization of graphical interface facility and also of event-driven property.

This project is HOTEL MANAGEMENT SYSTEM; the main aim of this project is gives the customer view of the hotel. The customer needs in hotel are, enquiry about rooms, reservation process, vacating process, canceling the reservation, and the restaurant for food items.

In this project the first module gives the customer view for lodging. The customer needs enquiry for first process. So the enquiry process is shown in the project that works more effectively than the manual process. The next process of customer is reservation. This reservation is for may today or future, for this the reservation form can work more efficient than the manual process. This form also checks the rooms for reservation dates. It is interactive to the customer, if the rooms are not available it gives message and not allows reserving for that date.

The next process for the customer is vacating the room. For this he needs the total bills. Also he uses the restaurant for food that information also we need in the bill. The vacating form works for this information effectively. This form calculates the user bills of room and restaurant; it is minus by the advance. Shows the

total bill he need to pay. The cancellation process is the next process of the customer. For this the cancellation form works effectively. The customers reserved for future needs the cancellation process. That time we need to calculate the refund amount from the advance. For this, this form works efficiently.

The next module gives the restaurant information for the customer. The customer gives order from room and also spot order. For the room order and the spot order the customer having same process, only one different is for the room order he need to select the id, and for the customer order he need to enter the name. The last module is reports of the hotel management system. It is having all details of the database.

3.System Configuration:
This project was developed in the system saving Pentium processor with the following configuration.

Processor RAM Cachememory Speed Co-Processor Monitor Resolution Hard Disk

: Pentium-MMX : 16MB : 256 KB : 166 MHz : In Built : SVGA : 800 x 600 pixels : 2 GB

Operating System : Windows ’me Floppy drives : 1.2 MB, 1.44 MB

the customer operations in lodging. The same problems in restaurant also possible. reservation.System Analysis: In the hotel management system. That time any customer came for enquiry or reservation they need to check every reservation in the book. that is surly time wasting process. and customer spot orders are the operations. and cancellation. Using this many problems can occur. Exiting system: The existed system is in that hotel is manual working. Also the man who is searching also important. enquiry.4. in the billing time wasting are possible to occur. and in restaurant orders from the room. some times he may do some problems in the process. Some drawbacks of this existed system are  Time required to do manual work  Calculation is difficult  Security is low . for this system they used some bill books. vacating.

Also the calculations is very is to do.  Easy and quick retrieval of data. In this system we can eliminate time wasting process. Data entry is easier than the manual. reserving and billing.  At every stage of operation a great deal of information is required for checking. Searching is difficult  Data entry is difficult Need for computerization: In order to escape from the disadvantages mentioned in the existing system. In the computer system we can over come these problems.  As the variety of information and timeliness is now of great importance. . The searching is very easy to do compare to the manual work. the system need to computerize.  Facilitation of proper security.

we have restaurant details. . the vacating table for process. this checks the order type. The room details. reservation of rooms for today or future. the orders are from room or spot order by the customer. after that it allows the user to access the menu. also the restaurant bill item details are included in this module. The room order the payment is taken when they are vacating. and canceling the future reservation. The vacating process uses the reservation table. item details. and the cancellation process uses the reservation table for the cancel future reservations. So. reservation details. restaurant details. vacating the room. and the reservation the system uses room. we have lodging details. Here enquiry of the rooms.Project Modules: Module1:(Lodging) In this module. and reservation tables in the database. vacating information. and allows the order for items. Module 3:(Reporting) In this module. For the spot orders are current payments. cancellation details. Module 2:(Restaurant) In this module. we have the reporting information about the system. For the rooms enquiry.

and keywords. a language used by more programmers than any other language in the history of computing. The "Basic" part refers to the BASIC (Beginners AllPurpose Symbolic Instruction Code) language. functions. If you've ever used a drawing program such as Paint. Visual Basic has evolved from the original BASIC language and now contains several hundred statements. Whether you are an experienced professional or brand new to Windows programming. many of which relate directly to the Windows GUI. Visual Basic provides you with a complete set of tools to simplify rapid application development. you already have most of the skills necessary to create an effective user interface. Rather than writing numerous lines of code to describe the appearance and location of interface elements. the fastest and easiest way to create applications for Microsoft Windows®.5. yet the power of the language allows professionals to accomplish anything . Beginners can create useful applications by learning just a few of the keywords.System Description: Welcome to Microsoft Visual Basic. So what is Visual Basic? The "Visual" part refers to the method used to create the graphical user interface (GUI). you simply add prebuilt objects into place on screen.

and many other Windows applications uses the same language. frontend applications. The Visual Basic programming language is not unique to Visual Basic. a large enterprise-wide system. such as Microsoft Word processor. ActiveX™ technologies allow you to use the functionality provided by other applications. Visual Basic has the tools you need. The investment you make in learning Visual Basic will carry over to these other areas. or even distributed applications spanning the globe via the Internet. Applications Edition included in Microsoft Excel.that can be accomplished using any other Windows programming language. Microsoft Excel spreadsheet. You can even automate . Microsoft Access. The Visual Basic programming system. Data access features allow you to create databases. The Visual Basic Scripting Edition (VBScript) is a widely used scripting language and a subset of the Visual Basic language. including Microsoft SQL Server and other enterprise-level databases. Whether your goal is to create a small utility for yourself or your work group. and scalable server-side components for most popular database formats. and other Windows applications.

customizing a toolbar. The features are  It has so many toolbars such as standard toolbar. or to create Internet server applications.applications and objects created using the Professional or Enterprise editions of Visual Basic. Features: Visual basic has so many features which helps the developer feel free to develop the user friendly environment. Your finished application is a true . Internet capabilities make it easy to provide access to documents and applications across the Internet or intranet from within your application. debug toolbar.exe file that uses a Visual Basic Virtual Machine that you can freely distribute. edit toolbar.  It has great features to build the user interface using The toolbox and custom controls and components  Properties windows to set the properties for each components  It supports wide range of data types  Good controlling programming flow . form editor toolbar.

 Arrays. and optimization  We can do graphics  Since it is a event driven programming it has a mouse event procedures  It has a file system controls and file system objects (file list boxes. error trapping  It allows object oriented programming  It has tools and techniques for testing. combining conditions in an if-then. handling functions (split. NOT  Making decisions (conditionals) like the else. do loops with AND. filter functions). records all these can be controlled by code  Control arrays. the Goto  It has so many built in functions like string functions. like and fuzzy functions etc. sorting and searching. indeterminate loops (relational operators. do while loop. list and combo box. drive list boxes)  It can communicate with other windows applications  We can build Activex controls . code modules. the flex grid controls  We can build larger projects easily using multiple forms. debugging. the block ifthen. OR. Determinate loops (for-next loop). replace function.

opening. 95.  Use the Objects bar View database objects in the Objects bar — its vertical orientation makes it easier to use. 2. Vbscript can be use for building dynamic html pages Access features: Microsoft Access appeared out of nowhere at the end of 1992 to rapidly become the database of choice for Windows based database development.  Use the Database window toolbar Quickly find commands for creating. Access is a relational database designed for the modern Windows environment. What's new about the Database window The Database window in Microsoft Access 2000 provides a variety of options for viewing and manipulating database objects. or managing database objects. 97 and now 2000) and just keeps on getting better. Access is now in its fifth major incarnation (versions 1. Microsoft's other database system). .0.0. it does not carry the baggage and preWindows design history of earlier database systems (such as FoxPro.

 Select an object by typing its name For example. Open databases using record level locking (Tools menu.  Customize how you select and open objects in the Database window If you choose. quickly create a new database object by using a wizard. in addition to pagelevel locking. Organize database objects into groups Click the Groups bar to view your groups. or open a new database object in design view. Advanced Tab). Microsoft Access 2000 provides many new features that make working with data and designing a database even easier. Options command.  Use new object shortcuts In the Database window. change the default behavior so that you select a database object by resting the pointer over it. . and open an object by single-clicking it. Use record-level locking A Microsoft Access database now supports record-level locking. which can contain shortcuts to database objects of different types. You enable the locking level with the new database option. select the Shippers table while viewing the list of table objects by typing Sh.

in the Northwind sample database the Suppliers table has a one-to-many relationship with the Products table. For example. . reports. queries. Take advantage of Unicode support Use the characters of any language that Unicode supports in your data. fields. tables. text boxes or other controls.The actual level that is used depends on how the Access database is programmed. Use Unicode compression to offset the effect of Unicode's increased storage space requirements. you can view and edit the related rows of the Products table in a subdatasheet. View related data in a subdatasheet Use a subdatasheet to view and edit related or joined data in a table. query. or in a subform all from the same view. so for each row of the Suppliers table in Datasheet view. Automatically fix errors caused by renaming fields Name AutoCorrect automatically corrects common side effects that occur when you rename forms. Find and replace You can now move freely between the Find and Replace dialog boxes and the data in the view or window. Take advantage of dual-font support — specify a substitute font that you can use in addition to your default font to properly display all of the characters in your data. or form datasheet.

Print relationships Print a report of the relationships in your Access database as they appear in the Relationships window. edit. Use Microsoft ActiveX Data Objects (ADO) Use Microsoft ActiveX Data Objects (ADO) to access and manipulate data in a database server through any OLE DB provider. Use the keyboard to manage relationships Use the keyboard to create. font size. Group text boxes and other controls Use the Group command on the Format menu to group related text boxes and other controls on a form or report. control background color. and other visual information that gives feedback to users as they enter data on a form. and delete relationships and joins. . What's new about forms and reports Microsoft Access 2000 provides new features to make it faster and easier to create great-looking forms and reports. Define conditional formatting rules for text boxes and other controls Use the Conditional Formatting command on the Format menu to define the font color.

print.Create forms and reports for SQL Server databases In a Microsoft Access project. Distribute reports to users who don't have Microsoft Access Export Microsoft Access reports to report snapshot (. create forms and reports for an SQL Server database with the same tools that you use to create them in a Microsoft Access database. .snp) file format. and mail report snapshots. You can use Snapshot Viewer to view.

6. Data Flow Diagram: USER Lodging Restaurant Reports Enquiry Room Reservation Reservation Vacating Item Vacating Restbill Billitems Cancellation .

Database Structures: Room Table: Field Name Rtype Total Price Data Type Text Integer Currency Description Room Type Total Rooms Cost Of Room Reservation Table: Field Name Cid Cname Add Tel Rtype Noofrooms Noofdays Indate Intime Advance Status Data Type Integer Text Text Integer Text Integer Integer Date/time Date/time Currency Text Description Customer ID Customer Name Address Telephone number Room type No.7. of rooms No. of days In date In time Room advance Fucture or current .

Vacating Table: Field Name Bno cid Name Rtype Noofrooms Indate Outdate Outtime Restbill Roombill Total Status Data Type Integer Integer Text Text Integer Date/time Date/time Date/time Currency Currency Currency Text Description Bill no. of rooms In date Out date Out time Restaurant bill Room bill Total bill Vacated or cancel Item Table: Field Name Status Name Price Data Type Text Text Currency Description Item Type Item name Cost of item . Customer id Customer name Room type No.

Restaurant Table: Field Name Bno cid Name Amt Data Type Integer Integer Text Currency Description Bill no. Customer id Customer name Total amount Bill Items Table: Field Name Bno Item Qty Price Data Type Integer Text Integer Currency Description Bill no. Item name Item qty Total amount .

Show End Sub Private Sub Image12_Click() .Project Coding: Dim DB As Database Dim RS As Recordset Dim RS1 As Recordset Dim RS2 As Recordset Dim RS3 As Recordset Dim RS4 As Recordset Dim RS5 As Recordset Dim FRAMEFLAG1 As Integer Dim L As String Dim T As Date Dim I As Integer Dim J As Currency Dim RESFLAG As Integer Dim RESTFLAG As Integer Dim ITMS As String Dim VAFLAG As Integer Dim CANFLAG As Integer Private Sub Image11_Click() DataReport1.8.

Command4 RM DataReport4.Command5 RM DataReport5.Value = True Then .Show End Sub Private Sub Option3_Click() If Option3.Show End Sub Private Sub Image16_Click() RM = InputBox("ENTER THE ID") DataReport1.Refresh DataEnvironment1.Show End Sub Private Sub Image15_Click() RM = InputBox("ENTER THE ID") DataReport1.Show End Sub Private Sub Image13_Click() DataReport2.Refresh DataEnvironment1.Show End Sub Private Sub Image14_Click() DataReport3.DataReport6.

Visible = False Frame9.OpenRecordset("ROOM". 2) Set RS2 = DB.Caption = Date Label3.Visible = False Frame5. 2) Set RS1 = DB.Visible = True Frame10.Caption = Time End Sub Private Sub Form_Load() Set DB = OpenDatabase("C:\MADHURIMA\DAYS.OpenRecordset("ITEM".Frame1.Visible = False Frame4. 2) Set RS3 = DB.mdb") Set RS = DB.OpenRecordset("RESTBILL".Visible = False Frame6. 2) .OpenRecordset("VACATING".Visible = False Frame8.Visible = False Frame3.Visible = False FRAMEFLAG1 = 1 End If End Sub Private Sub Timer1_Timer() Label2.OpenRecordset("RES".Visible = True Frame2. 2) Set RS4 = DB.

Text) List10.Visible = False CLEAR TXTE FRV FRAMEFLAG1 = 0 D=0 RESFLAG = 0 RESTFLAG = 0 VAFLAG = 0 CANFLAG = 0 End Sub Private Sub Image10_Click() If CANFLAG = 1 Then Text36.Text) .Text = (Val(Text35.Text = Val(Text35. 2) Frame1.Val(Text36. vbYesNo) If CAM = vbYes Then If RS2.Text) / 10) * 8 Text37.Visible = False Image5.Set RS5 = DB.Enabled = False CANFLAG = 2 ElseIf CANFLAG = 2 Then CAM = MsgBox("SURE DO U WANT TO CANCEL".OpenRecordset("BITEMS".BOF Then BILLNO = 1 Else .

Text RS2(6) = Date RS2(7) = Time RS2(8) = O RS2(9) = Text37.Text RS2(5) = Text34.AddNew RS2(0) = BILLNO RS2(1) = List10.Value = False ElseIf CAM = vbNo Then List10.Text RS2(3) = Text32.Text) RS1.Delete MsgBox "CANCELLED" CANFLAG = O Option12.Text RS2(11) = "CANCEL" RS2.FindFirst "[CID]=" & Val(List10.Enabled = True End If End If .Text RS2(2) = Text31.Text RS2(4) = Text33.MoveLast BILLNO = RS2(0) + 1 End If RS2.RS2.Text RS2(10) = Text37.Update RS1.

Text RS1(5) = Text9.Edit RS1(0) = List2.Update MsgBox "RESERVAED" Image2.Text RS1(6) = Text10.FindFirst "[CID]=" & Val(List2.End Sub Private Sub Image2_Click() If ((RESFLAG = 2) And (Text7.Text) RS1.Text RS1(2) = Text6.Text RS1(7) = Text11.Text RS1(3) = Text7.Text)) Then RS1.Text .Text RS1(1) = Text5.Text RS1(4) = List3.Text RS1(3) = Text7.Text RS1.Text RS1(8) = Text12.Text RS1(10) = Text28.AddNew RS1(0) = Text4.Text RS1(2) = Text6.Text RS1(1) = Text5.Visible = False RESFLAG = 0 ElseIf RESFLAG = 3 Then RS1.Text RS1(9) = Text13.

Date.Text) D3 = DateDiff("d".Update MsgBox "RESERVAED" Image2. D2) If D3 <> 0 Then Text10.Text RS1(10) = Text28.Text RS1.Visible = False RESFLAG = 0 ElseIf ((RESFLAG = 1) And (List2.Text = Time Text28.Text RS1(6) = Text10.Text = Date Text12. vbOKCancel) If N = vbOK Then RESFLAG = 3 D2 = DateAdd("d".Text <> "")) Then N = MsgBox("D U WANT TO RESERVE".Text). Val(Text10.Text RS1(9) = Text13. Text11.Text = 1 End If Text11.Text = D3 Else Text10.RS1(4) = Text8.Text RS1(8) = Text12.Text RS1(7) = Text11.Text RS1(5) = Text9.Text = "C" End If End If .

Text) Then RAMT = RAMT + RS4(3) End If RS4.Text = Time If Not RS4.Text = RAMT RS.Text) ROOMD = DateDiff("d".Text & " '" ROOMAMT = RS(2) * Val(Text16. Date) If ROOMD = 0 Then ROOMD = 1 End If .MoveFirst Do While Not RS4.MoveNext Loop End If Text20.Text) RS1.Text = Date Text19.BOF Then RS4. RS1(7).FindFirst "[CID]=" & Val(List4.End Sub Private Sub Image3_Click() If VAFLAG = 1 Then RAMT = 0 ROOMAMT = 0 ROOMD = 0 Text18.EOF If RS4(1) = Val(List4.FindFirst "[RTYPE]='" & Text15.

Text RS2(9) = Text21.ROOMAMT = ROOMAMT * ROOMD Text21.Text = Val(Text20.Text) + Val(Text21. vbYesNo) If M = vbYes Then If RS2.Text RS2(2) = Text14.Text RS2(10) = Text22.Text RS2(4) = Text16.Text = ROOMAMT .MoveLast BILL = RS2(0) + 1 End If RS2.Text RS2(3) = Text15.Text RS2(8) = Text20.Text RS2(5) = Text17.Enabled = False VAFLAG = 2 ElseIf VAFLAG = 2 Then M = MsgBox("DO U WANT TO VACATE".Text RS2(7) = Text19.Text RS2(6) = Text18.Text RS2(11) = "VACATED" .AddNew RS2(0) = BILL RS2(1) = List4.BOF Then BILL = 1 Else RS2.Text) List4.RS1(9) Text22.

RS2.Update RS1.AddItem RS1(0) End If RS1.Text = "" Text21.BOF Then RS1.Text = "" Text15.Text) RS1.Text = "" List1.FindFirst "[CID]=" & Val(List4.EOF If ((RS1(10) = "C") And (RS1(7) >= Date)) Then List4.Text = "" Text18.Text = "" Text22.Text = "" Text17.Text = "" Text19.Text = "" Text20.MoveNext Loop End If VAFLAG = 0 End If End If .Text = "" Text16.MoveFirst Do While Not RS1.Delete MsgBox "THANQ VISIT AGAIN" Text14.Enabled = True If Not RS1.

Text = 100 Else RS4.Visible = True List5.Text <> "")) Then If RS4.Enabled = True Text24.Enabled = False RESTFLAG = 2 ElseIf R = vbNo Then MsgBox "Enter Customer Name" Label30. vbYesNo) If R = vbYes Then MsgBox "SELECT CUSTOMER ID" Label30.Visible = True List5.Visible = False Text24.End Sub Private Sub Image4_Click() If RESTFLAG = 1 Then R = MsgBox("Room Order".Text = RS4(0) + 1 End If .Visible = False List5.BOF Then Text23.Enabled = True RESTFLAG = 3 End If ElseIf (((RESTFLAG = 2) Or (RESTFLAG = 3)) And (Text24.MoveLast Text23.

Update For LCOUNT = 0 To (List7.RESTFLAG = 4 List5.1) RS5.List(LCOUNT) RS5.List(LCOUNT) RS5(3) = List9.ListCount .Update Next MsgBox "THANQ" RESTFLAG = 1 .Text RS4(1) = ID RS4(2) = Text24.Visible = False Then ID = -1 Else ID = Val(List5.Text) End If RS4.AddNew RS5(0) = Text23.Enabled = False List6.Text RS5(1) = List7.Visible = False ElseIf RESTFLAG = 4 Then If List5.Enabled = False Image4.AddNew RS4(0) = Text23.Enabled = True Text24.Text RS4.Text RS4(3) = Text27.List(LCOUNT) RS5(2) = List8.

CLEAR List9.Visible = False Frame5.Text = "" Text24.Visible = False Frame4.Enabled = False Label30.CLEAR List8.Text = "" Text27.Visible = False Frame9.Text = "" List6.Text = "" Text26.Visible = True End If End Sub Private Sub Image5_Click() If FRAMEFLAG1 = 1 Then Frame1.Visible = False Frame6.Visible = False .CLEAR List7.Visible = True Frame2.Text = "" Text25.Visible = False Frame10.Visible = True List5.CLEAR List6.Text23.Visible = False Frame3.Visible = False Frame8.

Visible = True Image6.Visible = True Image5.EOF .Visible = False List3.Value = False Option3.Visible = False CLEAR TXTE End If End Sub Private Sub Image6_Click() M = MsgBox("B4 U RESERVED".Visible = False If Not RS.Visible = False Image2.Visible = True Text8.Value = False FRAMEFLAG1 = 0 Else Frame1.Value = False Option2.BOF Then RS. vbYesNoCancel) If M = vbNo Then CLEAR List2.MoveFirst Do While Not RS.Option1.Visible = False Frame8.Visible = False Text4.

Enabled = True Text6.EOF If RS1(10) = "F" Then D1 = DateAdd("d".Enabled = True Text7.CLEAR List2. RS1(7)) If ((RS1(7) <= Date) And (D1 >= Date)) Then .List3.BOF Then RS1.MoveFirst Do While Not RS1.MoveNext Loop End If If RS1.Enabled = True If Not RS1.AddItem RS(0) RS.MoveLast Text4.Enabled = True RESFLAG = 2 ElseIf M = vbYes Then CLEAR List2.Enabled = True Text10. RS1(6).Text = RS1(0) + 1 End If Text5.BOF Then Text4.Enabled = True Text11.Enabled = True Text9.Text = 1 Else RS1.

Value = False Option2.Value = False Option3.Text = "madhurima") And (Text30.Text = "daysinn") Then Frame1.MoveNext Loop End If Image6.Visible = False Image5.List2.Value = False Else MsgBox "Error In Login" Text29.SetFocus End If .Visible = True Frame8.Visible = False Image2.Visible = True Option1.AddItem RS1(0) End If End If RS1.Text = "DAYSINN" Or Text30.Visible = True RESFLAG = 1 End If End Sub Private Sub Image8_Click() If (Text29.Text = "MADHURIMA" Or Text29.

Text) Text5.Text = RS1(1) Text6.Text = RS1(9) Text36.Text = "" Text37.Text = "" CANFLAG = 1 End Sub Private Sub List2_Click() RS1.Text = RS1(5) Text34.FindFirst "[CID]=" & Val(List2.Text = RS1(1) Text32.Text) Text31.Text = RS1(7) Text35.Text = RS1(4) Text33.FindFirst "[CID]=" & Val(List10.End Sub Private Sub Image9_Click() End End Sub Private Sub List1_Click() Text1.Enabled = True End Sub Private Sub List10_Click() RS1.Text = RS1(2) .

FindFirst "[CID]=" & Val(List5.Enabled = True End Sub Private Sub List5_Click() RS1.Text = RS1(1) Text15.Text = RS1(4) Text9.Text = RS1(4) Text16.Text = RS1(6) Text11.Text = RS1(5) Text17.Text = RS1(7) Text12.Text = RS1(9) Text28.Text = RS1(5) Text10.Text = RS1(3) Text8.Text = RS1(10) End Sub Private Sub List4_Click() RS1.FindFirst "[CID]=" & Val(List4.Text = RS1(1) End Sub Private Sub List6_Click() .Text) Text14.Text = RS1(8) Text13.Text7.Text = RS1(7) VAFLAG = 1 List4.Text) Text24.

SetFocus End Sub Private Sub Option1_Click() If Option1.Value = False Option12.Value = False End If FRAMEFLAG1 = 1 End Sub Private Sub Option10_Click() .Visible = False Frame10.Value = True Then Frame2.Text & " '" Text25.Visible = False Frame4.Value = False Option6.FindFirst "[NAME]= '" & List6.Enabled = True Text26.Visible = False Frame6.Visible = False Option4.Visible = False Frame8.Visible = True Frame3.Visible = False Frame5.Value = False Option5.Text = RS3(2) Text26.RS3.Visible = False Frame9.

Caption GITEMS End If End Sub Private Sub Option11_Click() If Option11.Visible = True Frame10.Value = True Then Frame1.If Option10.Visible = False Frame6.Visible = False Frame5.Visible = False List10.Value = True Then ITMS = Option11.Visible = False Frame8.Visible = False Frame9.Enabled = True .Visible = False Frame3.Visible = False Frame4.Visible = False Frame7.Value = True Then ITMS = Option10.Caption GITEMS End If End Sub Private Sub Option12_Click() If Option12.

MoveNext Loop End If CANFLAG = 0 End If End Sub Private Sub Option2_Click() If Option2.MoveFirst Do While Not RS1.Visible = False Frame7.Value = True Then Frame1.Visible = True Frame8.Visible = False Frame3.BOF Then RS1.AddItem RS1(0) End If RS1.Visible = False Frame10.Visible = False .Visible = False Frame5.Visible = False Frame4.CLEAR TXTE If Not RS1.Visible = False Frame9.Visible = True Frame2.EOF If RS1(10) = "F" And RS1(7) >= Date Then List10.

MoveNext Loop End If FRAMEFLAG1 = 1 .Text = "" Text24.Enabled = False Image4.Visible = True List5.Visible = True Label30.MoveFirst Do While Not RS1.Text = "" Text27.CLEAR List8.AddItem RS1(0) End If RS1.CLEAR If Not RS1.CLEAR List9.Visible = True List5.CLEAR List6.BOF Then RS1.EOF If RS1(10) = "C" Then List5.Text = "" FRAMEFLAG1 = 1 RESTFLAG = 1 List5.Text = "" Text26.Visible = True Text23.CLEAR List7.Text = "" Text25.Frame6.

Visible = False Frame8.Visible = False Frame4.Visible = False Frame5.End If End Sub Private Sub Option4_Click() If Option4.Visible = False CLEAR TXTE If Not RS.Visible = True Frame1.Visible = False Frame6.MoveFirst Do While Not RS.Visible = False Frame10.EOF List1.AddItem RS(0) RS.Visible = False Frame9.BOF Then RS.Value = True Then Frame3.MoveNext Loop End If End If End Sub .

Visible = False Frame6.Private Sub Option5_Click() If Option5.Visible = False Frame10.Visible = False Frame9.MoveNext Loop .Visible = False List2.Visible = False Text4.Visible = False Frame5.MoveFirst Do While Not RS1.Visible = True Frame1.Visible = True Image2.EOF If RS1(10) = "C" Then List2.Value = True Then Frame4.Visible = False List3.Visible = False Frame3.Visible = True Text8.Visible = True Frame2.AddItem RS1(0) End If RS1.Visible = False Image6.Visible = False Frame8.Visible = True CLEAR TXTE If Not RS1.BOF Then RS1.

Visible = False Frame4.Visible = True Frame1.Visible = False List4.Visible = False Frame10.MoveNext Loop End If .BOF Then RS1.Visible = False Frame8.Enabled = True List4.Visible = False Frame3.Visible = False Frame9.Value = True Then VAFLAG = 0 Frame5.End If End If End Sub Private Sub Option6_Click() If Option6.EOF If RS1(10) = "C" Then List4.MoveFirst Do While Not RS1.AddItem RS1(0) End If RS1.CLEAR If Not RS1.Visible = False Frame6.

Text = "" Text10.Text = "" Text3.Text = "" Text21.Text = "" Text13.Text = "" Text20.Text = "" .Text = "" Text4.Text = "" Text17.Text = "" Text9.Text = "" Text16.Text = "" Text7.Text = "" Text2.Text = "" Text8.Text = "" Text11.Text = "" Text22.Text = "" Text12.Text = "" Text5.Text = "" Text14.Text = "" Text19.Text = "" Text6.End If End Sub Public Sub CLEAR() Text1.Text = "" Text15.Text = "" Text18.

CLEAR List5.Text23.Text = "" Text36.CLEAR List6.Text = "" Text31.CLEAR List1.CLEAR List8.Text = "" Text29.Text = "" Text30.CLEAR List6.Text = "" Text28.CLEAR List10.Text = "" List1.CLEAR List3.Text = "" Text37.Text = "" Text34.CLEAR List7.CLEAR List4.Enabled = False List7.Text = "" Text27.Enabled = False .Text = "" Text32.Text = "" Text35.CLEAR List2.Text = "" Text26.Text = "" Text25.Text = "" Text24.Text = "" Text33.

Enabled = False List9.Caption GITEMS End If End Sub Private Sub Option8_Click() If Option8.Value = True Then ITMS = Option8.Value = True Then ITMS = Option9.Caption GITEMS End If .List8.Enabled = False End Sub Private Sub Option7_Click() If Option7.Value = True Then ITMS = Option7.Caption GITEMS End If End Sub Private Sub Option9_Click() If Option9.

Text) < Date Then MsgBox "ERROR IN DATE" Text1.Visible = False Frame5.End Sub Private Sub Text1_LostFocus() If Text1.Visible = False Frame4.Text T = CDate(Text1.Visible = False .Text = I Text3.Visible = False Frame9.Text <> "" Then If CDate(Text1.Visible = False Frame3.Visible = False Frame6.Text = J End If End If End Sub Public Sub FRV() Frame1.SetFocus Else L = List1.Visible = False Frame2.Text) DATECHECK Text2.

Value = False Option10.Value = False Option11.Enabled = False Text4.Value = False Option8.Enabled = False Text2.Enabled = False Text7.Enabled = False .Value = False Option4.Enabled = False Text8.Enabled = False Text9.Value = False Option6.Frame10.Enabled = False Text10.Visible = False Option1.Enabled = False Text3.Value = False Option5.Enabled = False Text11.Value = False Option9.Value = False End Sub Public Sub TXTE() Text1.Value = False Option12.Value = False Option3.Value = False Option2.Enabled = False Text6.Value = False Option7.Enabled = False Text5.

Enabled = False Text32.Enabled = False Text20.Enabled = False Text27.Enabled = False Text16.Enabled = False Text23.Enabled = False Text21.Enabled = False Text15.Enabled = False Text17.Enabled = False Text14.Enabled = False Text36.Enabled = False Text13.Text12.Enabled = False Text33.Enabled = False Text35.Enabled = False Text31.Enabled = False Text26.Enabled = False End Sub .Enabled = False Text24.Enabled = False Text25.Enabled = False Text37.Enabled = False Text19.Enabled = False Text28.Enabled = False Text22.Enabled = False Text34.Enabled = False Text18.

MoveNext Loop . Y As Date If Not RS.MoveNext Loop End If If Not RS1.EOF If RS1(4) = L Then X = RS1(7) Y = DateAdd("d".BOF Then RS1.Public Sub DATECHECK() Dim X. X) If ((T >= X) And (T <= Y)) Then I = I .MoveFirst Do While Not RS.EOF If L = RS(0) Then I = RS(1) J = RS(2) End If RS.RS1(5) End If End If RS1. RS1(6).MoveFirst Do While Not RS1.BOF Then RS.

COUNT. Text11.SetFocus Else DAYS = Text10.Text <> "" Then If CDate(Text11.Text) Then MsgBox ("Number Of Rooms Not Availabel For This Date" & T) Exit Do End If COUNT = COUNT + 1 .Text = "" List3.End If End Sub Private Sub Text11_LostFocus() Dim COUNT As Integer If Text11.Text = "" Then MsgBox "SELECT ROOM TYPE" Text11.Text) < Date Then MsgBox "ERROR IN DATE" Text11.Text DATECHECK If I < Val(Text9.SetFocus ElseIf List3.Text) L = List3.Text COUNT = 0 Do While COUNT <= DAYS T = DateAdd("d".

CLEAR Text25.BOF Then RS3.EOF If ITMS = RS3(0) Then List6.Text) * 250 If CDate(Text11.Text = "" Else Text12.SetFocus Text11.Text = "C" Else Text28.MoveFirst Do While Not RS3.AddItem RS3(1) .Text = Val(Text9.Text = Time Text13.Visible = True End If End If End If End Sub Public Sub GITEMS() List6.Loop If COUNT <= DAYS Then Text11.Text = "F" End If Image2.Text) = Date Then Text28.Text) * Val(Text10.Text = "" If Not RS3.

Text = "" Then AMT = 0 Else AMT = Val(Text27.AddItem List6.Text)) Text27.Text)) LICOUNT = LICOUNT + 1 Text26.Text List9.Text = AMT + (Val(Text25.Text = "" Text26.Text <> "" Then List7.AddItem (Val(Text25.Enabled = False Image4.Visible = True End If End Sub .Text) End If If Text26.Text List8.End If RS3.Text) * Val(Text26.AddItem Text26.MoveNext Loop End If End Sub Private Sub Text26_LostFocus() If Text27.Text) * Val(Text26.

Sign up to vote on this title
UsefulNot useful