This action might not be possible to undo. Are you sure you want to continue?
HOTEL MANAGEMENT SYSTEM
The “Hotel Management System-Book keeping” system is menu driven and highly interactive. It was developed in Visual basic 6.0 as Front End Tool and M.S-Access Backend Tool. The Hotel Management System (HMS) project will automate the manual and legacy operations. The project will keep track of guest database, room reservations, booking ,vacating, finance and reporting details. The activities associated with HOTEL MANAGEMENT SYSTEM can be classified into five major modules. They are:
• Login Screen • Room Description • Room Booking • Room Vacating • Reporting View
The system has been developed based on the requirements of the management and user for immediate report of Guest status or details. The system is dynamic in nature and can be updated/modified based on the user’s requirement any time. The system reduces the work load of the users. The accurate, adequate and timely information are produced as and when needed. The newly developed system is more effective and it it will be consuming.
1 Source Code 10. 4. 6.2 Proposed System PROBLEM DESCRIPTION SYSTEM REQUIREMENTS 4. . 10. 3.1 Existing System 2. 9.NO NAME OF THE CHAPTER PAGE NO.1 Data Flow Diagram 5.2 Data Base Design SYSTEM TESTING AND IMPLEMENTATION FUTURE ENHANCEMENT CONCLUSION BIBLIOGRAPHY APPENDIX 10.1 Hardware Requirements 4.1 Introduction about the Project SYSTEM ANALYSIS 2. 7.2 Screen Layout 2.S. INTRODUCTION 1.3 About the Software SYSTEM DESIGN 5.2 Software Requirements 4. 8. 5. 1.
The project will keep track of Guest details. The main form consists of five menus. Room Booking .ABOUT THE PROJECT:The resort management project will automate the manual and legacy operation of a resort or a hotel. Finance and Reports. There will be a username and password to login into the system to use all the facilities. Room Reservation. . They are • Login Screen • Room Description • Room Booking • Room Vacating • Reporting View Login Screen:This includes Administrator and User login.
Room Rent. Booking Type and arrival date .deposit. Then delete option used . Room entry called another name Room reservation Room Entry Update and Delete :- Room entry Update means already reserve the room any more changes using these options. If the room entered in the form is vacant then only we can allot that room.Room Description:- This form consists of the following sub menus Room Entry Room Entry Update and Delete Room Entry :- This form display the information Room No.
. We can select the rooms that are reserved. guest name. fine levied. Room number. advance amount. also display the room vacating form. Room Booking:- This form display the information like Booking code. Booking date. address etc. for cancellations. cancel date.for booking code. guest phone number. total amount. fine waived. Booking name. Room Vacating:This will form display the information like room number. Reporting View:- . if the room entered in the form is vacant then only we can reserve that room. and check in date. check out date. balance amount.
There are only one report are available. That is like vacating are includes financial . .departure report and payment report are generated between booking dates to vacating dates.
Very careful handling is needed in manual systems. In the earlier system the inventory report is calculated manually. The book keeping procedure is tedious and is prompt to errors. Whenever the accounting is to be . It maintains huge records for various departments. Manual processes results in waste of time and energy.SYSTEM ANALYSIS EXISTING SYSTEM: The existing system is manual. Even a very minute mistake may lead to imbalanced results.
PROPOSED SYSTEM: This project integrates all Operation processes in the computer to synergies the important resources of Material and Money. to decide the Room booking details. This project reports can be automatically generated. The department people can gather the needed information at their desk without any manual burdens. Daily transactions are maintained in journals. The processes of creating reports are manually very tedious . The existing system leads to a lot of problems. In manual process. These journal entries are then posted on to the ledger accounts correspondingly. But with this project these process are automated and no manual checking is required. This project reduces manual burdens and automates the functions of various departments. That information must be extracted from the files and the calculation will have to check by the Concern person. The existing system consumed a lot of stationary cost. vacating details have to be verified each time.performed.
The reports produced helps in making management decision easily.which are made very easy and automatically through this project. such reports can be produced within few seconds. Less effort 2. ADVANTAGES: 1. With this project. which could be used for some other constructive purpose towards the organization’s success. since all information about previous years is readily available. Thus the project eliminates many difficulties saving a lot of time and energy. Future enhancement . Quick reference 3.
This form also checks the rooms for reservation dates. enquiry about rooms. It is interactive to the customer. the main aim of this project is gives the customer view of the hotel. In this project the first module gives the administrator view for logging. This reservation is for may today or future. vacating process. reservation process. The customer needs in hotel are. canceling the reservation. The next process of customer is reservation. The customer needs enquiry for first process. for this the reservation form can work more efficient than the manual process.PROBLEM DESCRIPTION: This project is HOTEL MANAGEMENT SYSTEM. if the rooms are not available it gives message and not allows reserving for . So the enquiry process is shown in the project that works more effectively than the manual process.
that date. For this he needs the total bills. . It is having all details of the database. more reliable. time saving and accurate. Shows the total bill he need to pay.The vacating form works for this information effectively. It is more efficient. The next process for the customer is vacating the room. This form calculates the user bills of room it is minus by the advance.
SYSTEM REQUIREMENTS HARDWARE REQUIREMENTS:- Processor Monitor Ram Hard Disk Drive Keyboard Mouse : Dual Core 2.5GHZ : 15” LCD Monitor : 1GB DDR 1 : 160 GB : TVS Electronics : Front tech .
0 : Ms-Access .SOFTWARE REQUIREMENTS:- Operating system Front End Back End : Windows XP : V.B 6.
“easy yet powerful tool for developing windows applications in basic”. As Charles Petzold (author of one of the . This may not seem like enough to justify all the user until you realize that Microsoft Windows applications formerly required an expert C/C++ programmer supplied with about 20 pounds worth of documentation for the needed c/c++ compiler and the essential add-ons. Visual Basic has many features.VISUAL BASIC Visual Basic is a programming language and development environment that us to create programs that run under Windows operating system. Bill Gates describes Visual Basic as an.
Object based development is possible using class modules. Includes good debugging facilities. DLLs etc.” The following is a list of some of the more prominent features: Includes a GUI development environment for developing Windows Applications. Windows become most popular. Rapid application development (RAD).. Allows for the creation of COM components such as ActiveX Controls. Visual Basic poses a real threat to livelihood.standard books on windows programming in C) put it in the NEWYORK TIMES: “For those of us who make our living explaining the complexities of windows programming to programmers. Microsoft realized that the text based basic would not work as a windowed . Has many internet development possibilities like ActiveX documents.
Compile your tested application and distribute the compiled application to your users. Test your application language to locate and remove any bugs you find.programming language based on BASIC but one much more suited to today’s windowed environments. A debugger is an interactive monitoring system that you can turn on and off inside visual basic helps you locate statements that contain bugs. PROGRAMMING PROCESS: Decide what your application is to do by creating on over all design. your users will . Majority of visual basic program consist of basic program consist of graphical elements. Create the visual portion of your application (the screens and menus that interact with) Add visual basic programming language code on the visual elements together and to automate the program.
Document your programs. Internal Visual Basic descriptions are called remarks. users will think of new things that they want the program to do. Documentation is completed of descriptions of the program. and laws change. make other programmers to understand your code if they must make changes to it later. You must also change program you write so that they remain viable programs. In addition. You can place documentation inside the program itself so that when you (or some one else) later make a change to the program you will read what sections of the program are without having to figure out what the code’s purpose is. This update may be a result or a user’s request or a change in the way the program needs operate. companies change. .Programming maintenance is necessary because requirements change. PROGRAM MAINTENANCE: Programming maintenance is the term used for updating of a program after the program is put into use. you will need to update your program periodically to reflect changes that impact the program.
MULTIPLE DOCUMENT INTERFACE: This allows your application to contain multiple document windows.A project is a collection of files that make up your application. . and the project is the collection of those files. That might appear in several different applications. One of these files contain descriptions of screens inside their respective form windows and one or more files contain advanced programming information that your program will us to communicate with other programs and modules inside the program . Form templates are form with similar properties. FORM: The form template is a model of the form that you can customize. A simple application might contain code. In effect this interface lets you work with several sets of date in multiple windows with several sets of date in multiple windows with in your program. one or more files might consist of several files. Each document window is called a child window.
or code module that holds programming statements. FUNCTIONS AND PROCEDURES: Decreases the workload of rewriting the same code in different places.EVENT-DRIVEN PROGRAMMING: The window contains several kinds of window controls such as command buttons. These controls are just a sample of many window controls available for you within the visual Basic Programming environment to add to the programs that you write. thus reducing the code size to the maximum . check boxes. Such as a control. text labels size and location of the form. and a scroll bar. Properties have values such as colors. form. PROPERTIES: The property helps to differentiate a control from other controls because the property shows appearance and a behavior of a control. An object is an element form a visual Basic program.
When we use RDO or DAO for connecting VB to a database we need a ODBC driver. Database can be accessed through DAO (Data access Object). RDO (Remote Data Object). With RDO ADO Controls we can access Oracle. But in case of ADO we need an OLEDB. SOL and any such databases. DATABASE CONNECTIONS: VB allow easy access to database. ODBC provides a universal for accessing data in a database. Using DAO we can access databases in MS-Access only. Functions and Procedures optimize the program sizes and make use of the functions effectively and efficiently. With we use RDO or DAO for connecting VB to databases. USER-DEFINED DATA TYPES: VB provides facilities to create our own data types which give more flexibility for programming.level. These types can be used just like built in date types. With RDO and ADO controls we can access databases in MS-Access only. An ODBC data source is a . and ADO (ActiveX Data Object). Database developers will write ODBC compliant drivers to interface with their DBMS.
This allows us to connect information in a table to different controls on our form. Record set. CONNECTION: A connection defines a named session for the user. relation or table definition object. ODBC client requires proper drivers for each data type (MS-Access’ SQL.collection of data that can be indexed and referenced for data retrieval. FoxPro etc. Thus we will be able to view and edit data without writing a line of code. It contains open databases and provider mechanisms for simultaneous transactions.) In our project we have3w used ADO controls. ADVANTAGES INCLUDE THE FOLLOWING: . Fields : Field collection contains all stored field objects of An index. Record set : A record set object represents the records in a database table or the Records that result from a running query. QD.
It can be used to store and manipulate large amount of information and automate repetitive task. By using ACCESS you can develop easy- . Such as maintaining and inventory and generating invoices. Better support for Database Environment. Features of Integrated Development Environment. Improved data access Facilities. Multiple Windows on Screen. MS-ACCESS MS-ACCESS is powerful multi-user DBMS. Mire Internet Features & Web Tools. More Wizards.
Access also maintains index file s for tables. An index is a table of value that access maintains to store the order of records. Index object thus provide access to data.to-use data input forms. However it thus not duplicates the data itself. A combination of two are more fields can also we used us the primary key search a combination is called composite key Since a value on a table can be replicated across other tables thus should be a way to maintain a relation between the two tables this relation is implemented through the concept of a foreign key. DATABASE: . You can process your data and create meaningful reports. Data in ACCESS is organized in the form table with in a cable records are arranged according to a common reference value known as primary key for the key field the value in the key fields in the document for every record and thus help for unique records. Database access has a default extension of . A foreign key is a table which links to other tables. Similarly in a table indexes control the way data is accessed.mdb.
retrieving. analyzing and managing data. records can be termed as group of data items or data aggregates. RECORD: It is an organized collection of information in other words. One who uses system built on RELATIONAL MODEL will instantly appreciate this as a convenient and powerful system. RELATIONAL DATABASE MANAGEMENT SYSTEM: A relational database management system is the most popular and most dominant information management system available today.Database is an organized collection information about an entity without redundancy and server multiple applications. Commencing in 1971 this concept has proven to the one of the highly prudent ways of storing. OPEN DATABASE CONNECTIVITY: .
We setup a connection with any reachable database for which we have an ODBC DRIVER. `With ODBC. we create with ODBC. CLIENT / SERVER ARCHITECTURE: In this architecture system is divided into two parts. the database type the IP address of the server and the name of the server and the name of the database were supplied.The code requesting the data from the database whether in the java server or in the server component must have a way of a locating that databases this can be achieved grows the open database connectivity (ODBC). The DSN is created to allow communication between oracle and active server page. SQL *PLUS is applicable only for Ms-Access while SQL is the unified language which is applicable for all the RDBMS packages. . we create a DATA SOURCE NAME (DSN) through the ODBC data source administrator by clicking on the add button. When this connection was initially created.
shares data access to an oracle database. MICROSOFT ACCESS AND IT’S FEATURES:MOVEABLE. to display the name of the button or option. Hide them individually. and customize them by adding buttons you can also create your own toolbars and attach them to forms and reports. The server executes the oracle software and handles the function required for concurrent. A Back End or A Server Client executes the database application that accesses database information and interacts with the user. setting a property or performing most any other task in . TOOL TIPS:Move the pointer onto the face of any toolbar button. CUSTOMIZABLE TOOLBARS: Microsoft Access toolbars are now moveable and customizable. including those in the toolbox or palette. Press the right mouse button when you’re defining a control. A Front End or A Client. Shortcut menus. You can move toolbars around in the Microsoft Access window.
Commands appraise to the current task appear on the menu. You can click the sort Ascending or Descending buttons on the toolbar to quickly sort the current records based on the selected column.Microsoft Access to display a shortcut menu. QUICK SORTING:In table and form datasheets and in forms. .
SYSTEM DESIGN:- .
system design. DATA FLOW DIAGRAM:- . It also describes the data . analysis and design. system design Many tools assist performed and data stored desired.Any Process that is only in the planning stage and needs to be converted into reality requires three important steps namely planning. It describes how a system will meet the requirement identified during the system analysis. All the above three ‘design’ is very important.Calculations to be In short. stated how to accomplish the objectives. It is conversion of the ideas into reality by putting together all ideas block and achieving realism. System design is the process of planning a new business or one to replace or complement an existing system. including data flow diagram.
ADFD typically shows the minimum contents of the data stores. approach. It consists of a series of “bubbles”joied by “lines” The bubble represents data transformations and the flow in the system. lower level diagrams can be obtained that shows additional features. So. As the overview mode is exploded. the data stores and data flows.Data flow diagram (DFD) is a tool developed for he purpose of graphically representing t he system in order t make the classification of system requirements easy and identifying the major transformation that will become modules in system design. Data flow diagram is used to descried the actual process that makeup the system. Each process in the data flows diagram can be exploded into yet more detailed data flow diagram. line represents data . DFD shows the flow of the data within the system. Each data stores well contain all the data elements the flow in and or f it. it is starting point of the design phase that This diagram follows a top down functionally decomposes specifications down phase to the lowest level of details.
TABLE DETAILS:- .
Table: Room Entry Column Name Room_num Room_rent bed_model Room_fe Data Type Number(6) Number(6) Text(10) Text(10) Description Unique identification for ever Room Rent received the Guest Bed Model Single or Double Bed Facility A/c or Non A/c Table: Room Update / Delete Column Name Room_num Room_rent bed_model Room_fe Data Type Number(6) Number(6) Text(10) Text(10) Description Unique identification for ever Room Rent received the Guest Bed Model Single or Double Bed Facility A/c or Non A/c .
Table: Room Current Booking Column Name Name Address Data Type Text(20) Text(40) Description Whether corporate friends or guest Street/House No. of the Guest’s residence Date_Booking Date/Time Date on which this information was fed into the data base and default is today’s date. Amount Phone Room_num Number(60) Number(10) Number(6) Advance amount Received Phone of the gust Residence Unique identification for ever Room .
Date_Vacating Date/Time Date on which the guest vacated the room No_Of_Day Ad_amount Number(2) Number(5) Number of days staying in hotel How much received by advance amount Tot_amount Bal_amount Number(5) Number(5) How much received by total amount Display the Balance amount .Table: Room Vacating Column Name Room_num Name Address Data Type Number(6) Text(20) Text(40) Description Unique identification for ever Room Whether corporate friends or guest Street/House No. of the Guest’s residence Phone Date_Booking Number(10) Date/Time Phone of the gust Residence Date on which this information was fed into the data base and default is today’s date.
which is the last stage of the software development testing.SYSTEM TESTING AND IMPLEMENTATION: Testing in the system was done to ensure the integrity of the system. has several purpose. . Testing to vital for the success of the project.
The end-user rather than the system developer conduct this test most software developers as a process called “Alpha and Beta test” to uncover that only the end user seems able to find. The procedure level testing is made first. To validate the software and to eliminate the operational reliability of system. To affirm the availability of project. Here we implement the tested error free system into real life environment and make necessary changes. specially designed to show that the system will operated successfully in all its aspects conditions. This is the final step in system life cycle. By giving improper inputs. which runs is an online fashion. Thus the system testing is a confirmation that all is correct and an opportunity to show the user that the system works. . The final step involves validation testing. After testing all the modules. To find and eliminate the errors from previous stage. the errors occurred are noted and eliminated. Testing is done for each module. which determines whether the software function as the user expected. the modules are integrated and testing of the final system is done with the test data.
Here system maintenance is done every months or year based on company policies. In these testing steps. This is known as “Module Testing”. module. and is checked for errors like runtime errors. This testing is carried out during programming stage itself. long run errors and other maintenances like table verification and reports. The modules are tested separately. Each . TYPES OF TESTING: UNIT TESTING: Unit testing verifications efforts on the smallest unit of software design.
CATEGORIES OF UNIT TESTING: FUNCTIONAL TESTING: Functional test cases specify typical operating conditions. STRESS TESTING: Stress tests are designed to overload a system in various ways. Function tests also test behavior just inside. on adjust beyond the functional boundaries. STRUCTURE TESTING: Structure tests are concerned with examining the internal processing logic of a software system.module is found to be working satisfactorily as regard to the expected output from the module. . typical input value and typical expected results. PERFORMANCE TESTING: Performance testing is carried out to test the run time performance of the system. VALIDATION TESTING: Validation is the process of evaluating software at the software development process to determine compliance with requirements block box testing techniques are used exclusively during validation.
output documents.OUTPUT TESTING: Output testing is series of different test whole primary purpose is the fully exercise the company based system. The input screens. the whole system was tested and found to be a successful one.were checked and required modification made suit specification. which a ensuring that system works accurately before live operation commences. The main goal of the implementation plan is the development of . Then using the test data prepared. Although each test has a different purpose all the works should verify that all system elements have been properly integrated and perform allocated function. database structure etc. IMPLEMENTATION PLAN: The requirements for implementing the project is determined and also tested to confirm the effectiveness while implementing the project design into the source code. Output testing is the stage of implementation.
source code that is easy to read and understand.
implementation plan will help the project to proceed with the available resources. Once the implementation plan is over the source code can be developed easily because it will provide a clear idea about the project. IMPLEMENTATION: Implementation is the process of installing the software into the system so that it will be provided with original data to process. Implementation phase is started after o9nly the successful completion of the testing phase in which the above tests should be carried. To complete the implementation into success, a test should be carried out. Compatibility testing: this testing is carried out to check the compatibility that whether this software will run smoothly on the provided system configuration.
After this test implementation gets over only for the implementation purpose. But it should be maintained so that the performance will remain same and it will not be degraded. To maintain the performance of the software, continuously the performance test should be carried.
Performance testing : to test the performance of the modules, their Response time, device utilization etc. The performance o f a software may deguard when more application or software are handled by operating system at a time or due to less available resource i.e. Less memory etc.,But anyway the performance of the software may degrade due to the external events such as processor speed and memory etc. So the processor should be upgrade to maintain the performance.
FUTURE ENHANCEMENT: The project is developed considering only material and money but it can be extended for man and machine also. Since
our objective of the project is successfully completed. This is system provides efficiency in many ways. All the features that is required for the HOTEL MANAGEMENT SYSTEM has been finished successfully. All the complications concerned with this project are successfully solved. Every application has it s own merits and demerits. The project has covered almost all the requirements. Further requirements and improvements can easily be done since the coding is mainly structured or modular in nature. Changing the existing modules or adding new module can append improvements. This project provides detailed information about all the Room Booking, Rook vacating and Reporting details for all transactions.
This project work is an attempt to develop a system that can be used for computerization of activities in the resort. Since
Various reports can be generated by this system. minimization of clerical work. easy and efficient data storage and report generation. The requirements a suitable database is created maximum effort were taken to avoid duplication in data entry and data storage. more care has been taken for the system development. The major advantage of the system is fast and accurate information retrieval. .these activities are tedious process requiring lot of effort.
BIBLIOGRAPHY • VB6 Complete Reference .Siben • Visual Basic 6 Programming Reference .
.Brain Overland • Software Engineering Concept .Richard E.Boodley .Mosley .Fairly • Mastering Microsoft ofice97 -Lonney E.David M.
Show Form7.rsCommand1.Text = "SABARI" And Text2.Command1 If DataEnvironment1.Show Else A = MsgBox("Record Not Found".rsCommand1. "Information") DataEnvironment1. vbInformation + vbOKOnly.Close End If End Sub Private Sub CurrentBooking_Click() Form4.Text = "DINESH" Then Form1.Hide Else MsgBox "PASSWORD IS WRONG ! TRY AGAIN" End If End Sub MENU BAR: Private Sub Close_Click() End End Sub Private Sub Curr_Click() DataEnvironment1.SOURCE CODING: LOGIN: Private Sub Command1_Click() If Text1.Show Unload Me End Sub .BOF = False Then DataReport1.
Show Unload Me End Sub Private Sub RoomEntry_Click() Form2. "Information") DataEnvironment1.WindowState = 2 End Sub Private Sub list1_Click() Form6. vbInformation + vbOKOnly.Show End Sub Private Sub roomvegating_Click() Form5.BOF = False Then DataReport2.rsCommand2.Close End If End Sub .Show Unload Me End Sub Private Sub vecat_Click() DataEnvironment1.Command2 If DataEnvironment1.rsCommand2.Private Sub Form_Load() Me.Show Else A = MsgBox("Record Not Found".Show Unload Me End Sub Private Sub ruc_Click() Form3.
Value = False End Sub Private Sub Command3_Click() Dim S As String Dim s1 As String If Text1.Value = True Then S = "SINGLE" End If If Option2.Value = False And Option4.Value = False Option4.Text = "" Or Text2.Value = False Option2.Value = False Option3.Value = True Then S = "DOUBLE" End If If Option3.Value = False) Or (Option3. vbInformation + vbOKOnly.Value = False) Then A = MsgBox("DataMissing". "Missing") Else If Option1.Value = True Then s1 = "NO" End If .Value = False And Option2.Room Entry: Unload Me End Sub Private Sub Command2_Click() Call CLEAR End Sub Sub CLEAR() Text1.Value = True Then s1 = "YES" End If If Option4.Text = "" Text2.Text = "" Or (Option1.Text = "" Option1.
"Message") End If rs.rs. "Message") Call CLEAR Else rs.Close End If End Sub Private Sub Form_Load() Me.Left = 3000 Call conn End Sub ROOM CHANGE AND UPDATE: Dim S As String Private Sub Command1_Click() If Text1.Text)) & "'").Open ("select * from room_detail where room_no='" & Trim(UCase(Text1.'YES')") A = MsgBox("Insert Sucessfully".Execute ("insert into room_status values('" & Trim(UCase(Text1. vbCritical + vbOKOnly.BOF = False Then .Top = 2000 Me.'" & Trim(UCase(S)) & "'. db If rs.Execute ("INSERT INTO ROOM_DETAIL VALUES('" & Trim(UCase(Text1. vbInformation + vbOKOnly.'" & Trim(UCase(Text2.Text)) & "'.BOF = False Then A = MsgBox("Room Number Already Exists". vbInformation + vbOKOnly. "Information") Else db.Text)) & "'. db If rs.Open ("select * from room_detail where room_no='" & Trim(UCase(Text1.'" & Trim(UCase(s1)) & "')") db.Text = "" Then A = MsgBox("Specify The Room Number".Text)) & "'").Text)) & "'.
MoveFirst While Not rs.Text = "" Text3.Text = "" Then .Text = "WITHOUT A/C" End If rs.Enabled = True rs.Enabled = True Command3. vbInformation + vbOKOnly.Text = rs(2) S = Text1.Text = "" Or Text3.Text = rs(1) Combo1.Text = "" Combo2.Enabled = False Command3.Close End If End Sub Sub CLEAR() Text2.Text = "" Or Text2.Enabled = True Command2.Text = rs(0) Text3.Text = "" Combo1.Text = "" Frame2.MoveNext Wend Else Call CLEAR A = MsgBox("Record Not Found". "Information") End If rs.EOF Text2.Text = "WITH A/C" Else Combo2.Enabled = False End Sub Private Sub Command2_Click() Dim s1 As String If Text1.Enabled = False Command2.Text If rs(3) = "YES" Then Combo2.Frame2.
bed_model='" & UCase(Trim(Combo1.room_rent='" & UCase(Trim(Text3. vbInformation + vbOKOnly. vbInformation + vbOKOnly.Execute ("update room_detail set Room_no='" & UCase(Trim(Text2.Text = "" Or Text2. "Missing") Else If UCase(Combo2.Text = "" End If End Sub . "Sucessful") End If End Sub Private Sub Command3_Click() If Text1.Text)) & "'.Execute ("UPDATE ROOM_STATUS SET ROOM_NO='" & UCase(Trim(Text2. "Information") Call CLEAR Text1. vbCritical + vbOKOnly.Text)) & "'.Execute ("DELETE FROM ROOM_STATUS WHERE ROOM_NO='" & Trim(UCase(S)) & "'") A = MsgBox("Record Deleted Sucessfully".Execute ("DELETE FROM ROOM_DETAIL WHERE ROOM_NO='" & Trim(UCase(S)) & "'") db.Text = "" Then Else db.Text)) & "' WHERE ROOM_NO='" & UCase(Trim(S)) & "'") A = MsgBox("Update Sucessfully".room_fe='" & UCase(Trim(s1)) & "' where room_no='" & UCase(Trim(S)) & "'") db.Text) = UCase("WITH A/C") Then s1 = "YES" Else s1 = "NO" End If db.A = MsgBox("Data Missing".Text = "" Or Text3.Text)) & "'.
AddItem ("DOUBLE") Combo2.AddItem ("SINGLE") Combo1.Text = "" Then A = MsgBox("Check The Data".Text = "" RT.AddItem ("WITHOUT A/C") Call CLEAR End Sub Private Sub Form_Unload(Cancel As Integer) Form1.Private Sub Command4_Click() Unload Me End Sub Private Sub Form_Load() Call conn Me.Text = "" Or Text5.Show End Sub ROOM CURRENT BOOKING: Private Sub Command1_Click() Unload Me End Sub Private Sub Command2_Click() Call CLEAR End Sub Sub CLEAR() Text1.AddItem ("WITH A/C") Combo2.Text = "" Or Text4.Text = "" End Sub Private Sub Command3_Click() If Text1.Text = "" Text4.Text = "" Or Text2. vbInformation + vbOKOnly. "Message") .Enabled = False Combo1.Text = "" Or Text3.Text = "" Or RT.Text = "" Text5.WindowState = 2 Frame2.
Text)) & "'.Text)) & "'.'" & Trim(UCase(Text1.Text)) & "'. "Sucessful") Call CLEAR End If End Sub Private Sub Form_Load() Me.WindowState = 2 Call conn Call M1DIS Text2.Text)) & "'.Text = "0" End Sub Private Sub Form_Unload(Cancel As Integer) Form1.'" & Trim(UCase(Text2. db If rs.'" & Trim(UCase(RT.'" & Trim(UCase(Text5.Text)) & "'.Text)) & "'") Call M1DIS 'Call CLEAR A = MsgBox("Room Booking Sucessfully".'" & Trim(UCase(Text3. vbInformation + vbOKOnly.Else db.Open ("SELECT ROOM_NO FROM ROOM_STATUS WHERE ROOM_STATUS='YES'").Execute ("insert into cur_booking values('" & Trim(UCase(Text4.MoveFirst While Not rs.Execute ("UPDATE ROOM_STATUS SET ROOM_STATUS='NO' WHERE ROOM_NO='" & Trim(UCase(Text4.Show End Sub Sub M1DIS() Dim I As Integer Dim J As Integer Dim K As Integer rs.BOF = False Then rs.EOF .Text = Date Text3.Text)) & "')") db.
CellForeColor = vbBlue Next rs1.Col = 3 .Cols = 5 rs1.Rows = J + 1 M1.CellFontBold = True M1.Close End Sub Sub M1APP() M1.BOF = False Then J=J+1 M1.Col = 2 M1.Text = "ROOM NO" M1.CellForeColor = vbRed M1.EOF M1.Text = "ROOM RENT" M1. db If rs1.Text = rs1(I) M1.CellFontBold = True M1.Open ("SELECT * FROM ROOM_DETAIL WHERE ROOM_NO='" & rs(0) & "'").rs1.Row = J For I = 0 To 3 M1.CellFontBold = True M1.Row = 0 M1.MoveNext Wend Else End If rs.Close rs.CellForeColor = vbRed M1.MoveNext Wend Call M1APP End If rs1.Col = I + 1 M1.Col = 1 M1.MoveFirst While Not rs1.
Row = I M1.CellForeColor = vbRed M1.ColAlignment(2) = 3 M1.Text End Sub Private Sub Text3_LostFocus() If Text3.ColWidth(1) = 1900 M1.M1.Text = "0" End If End Sub .CellForeColor = vbRed M1.Text = "" Then Text3.Col = 1 Text4.CellFontBold = True M1.Text = "A/C OR NOT" M1.CellFontBold = True M1.RowSel M1.ColAlignment(3) = 3 M1.ColAlignment(4) = 3 End Sub Private Sub M1_Click() Dim I As Integer I = M1.ColWidth(3) = 2000 M1.ColWidth(2) = 2000 M1.ColWidth(4) = 2000 M1.Col = 4 M1.Text = "BED MODEL " M1.ColWidth(0) = 0 M1.ColAlignment(1) = 3 M1.Text = M1.
" & Trim(Val(Label18.Text)) & "'.Caption)) & "'.Text)) & "'") A = MsgBox("Register Sucessfully".Caption)) & ")") db.WindowState = 2 Call conn Call CLEAR End Sub Private Sub Form_Unload(Cancel As Integer) Form1.Execute ("UpDATE ROOM_STATUS SET ROOM_STATUS='YES' WHERE ROOM_NO='" & Trim(UCase(Text1. vbInformation + vbOKOnly.Text)) & "'.Text)) & "'") db.Show .'" & Trim(UCase(Label10. "Sucessful") End Sub Private Sub Form_Load() Me.Execute ("delete from cur_booking where room_no='" & Trim(UCase(Text1.Execute ("INSERT INTO VECAT_DETAILs VALUES('" & Trim(UCase(Text1.Caption)) & "'.'" & Trim(UCase(RT.Caption)) & ".Caption)) & "'.'" & Trim(UCase(Label8.'" & Trim(UCase(Label6." & Trim(Val(Label12.'" & Trim(UCase(Label3.ROOM VECATING: Private Sub Command1_Click() Unload Me End Sub Private Sub Command2_Click() Call CLEAR Text1.Text = "" End Sub Private Sub Command3_Click() db.Caption)) & "'.
End Sub Sub CLEAR() Label3.Caption = "" Label16.CDate(Label8.Caption = Date If Date .Text)) & "'").Caption = rs(5) .Caption = "" Label10.EOF Label3.CDate(Label8.MoveFirst While Not rs. Shift As Integer) 'Call CALCU End Sub Sub CALCU() Dim I As Integer Dim AM As Double Dim TOT As Double rs.Caption = rs(3) Label8.Text = "" End Sub Private Sub Text1_KeyDown(KeyCode As Integer.Caption = "" RT.Caption = "" Label12. db If rs.Caption) > 0 Then Label12.Caption = Date .Text = rs(2) Label6.Caption = "" Label14.Open ("SELECT * FROM CUR_BOOKING WHERE ROOM_NO='" & Trim(UCase(Text1.Caption = 1 End If Label14.Caption = rs(1) RT.Caption = "" Label8.Caption = "" Label18.Caption = "" Label6.BOF = False Then rs.Caption = rs(4) Label10.Caption) Else Label12.
Caption = TOT Label16.I=1 rs.Close TOT = AM * Val(Label12.MoveNext Wend Else Call CLEAR End If rs. Shift As Integer) Call CALCU End Sub .Text)) & "'").Open ("SELECT ROOM_RENT FROM ROOM_DETAIL WHERE ROOM_NO='" & Trim(UCase(Text1. db If rs.Caption) End If End Sub Private Sub Text1_KeyUp(KeyCode As Integer.EOF AM = CDbl(rs(0)) rs.Close If I = 1 Then rs.MoveFirst While Not rs.BOF = False Then rs.Caption) Val(Label14.Caption = Val(Label18.MoveNext Wend End If rs.Caption) Label18.
RecordCount + 1 C = rs.Text = rs(0) M1.Open ("SELECT * FROM CUR_BOOKING").Row = I J=J+1 M1.MoveFirst While Not rs.Rows = rs.Col = J M1.BOF = False Then M1.EOF I=I+1 M1.CellForeColor = vbBlue J=J+1 M1.Cols = 6 rs.Rows = 1 M1.Col = J M1.CellForeColor = vbBlue J=J+1 .RecordCount M1.REPORT: Private Sub Form_Load() Me.Top = 320 Frame2. db If rs.Cols = 6 Call M1DIS Call M1APP Call M2DIS End Sub Sub M1DIS() Dim C As Integer Dim I As Integer Dim J As Integer rs.Text = rs(1) M1.CellFontBold = True M1.WindowState = 2 Call conn Frame1.CellFontBold = True M1.Top = 320 M1.
CellFontBold = True M1.CellFontBold = True M1.Text = rs(4) M1.CellForeColor = vbBlue rs.MoveNext J=0 Wend Call M1APP End If rs.M1.Caption = C End Sub Sub M1APP() M1.CellForeColor = vbBlue J=J+1 M1.CellFontBold = True M1.Col = J M1.CellForeColor = vbBlue J=J+1 M1.Col = J M1.Col = 2 M1.Text = rs(3) M1.Col = 1 M1.CellFontBold = True M1.CellForeColor = vbRed M1.Col = 3 M1.CellForeColor = vbRed M1.CellFontBold = True M1.Text = rs(2) M1.Row = 0 M1.CellFontBold = True M1.Text = "NAME" M1.Text = "ROOM NO" M1.CellForeColor = vbRed M1.Text = "ADDRESS" M1.Col = J M1.Close Label6.Col = 4 .
CellForeColor = vbRed M1.RecordCount + 1 D = rs.ColAlignment(1) = 3 M1.Cols = 9 rs.ColAlignment(4) = 3 M1.ColWidth(3) = 3500 M1.ColWidth(2) = 2000 M1.EOF I=I+1 M2.CellForeColor = vbRed M1.CellFontBold = True .M1.Open ("SELECT * FROM VECAT_DETAILS").CellFontBold = True M1.Col = 5 M1.BOF = False Then M2.MoveFirst While Not rs.ColAlignment(2) = 3 M1.ColWidth(1) = 1500 M1.Rows = rs.ColAlignment(3) = 3 M1.CellFontBold = True M1.Col = J + 1 M2.ColWidth(0) = 0 M1.ColWidth(4) = 1500 M1.ColWidth(5) = 2000 M1.RecordCount M2.Text = rs(J) M2.Row = I For J = 0 To 7 M2. db If rs.ColAlignment(5) = 3 End Sub Sub M2DIS() Dim I As Integer Dim J As Integer Dim C As Double Dim D As Integer rs.Text = "PHONE" M1.Text = "DATE OF BOOKING" M1.
Col = 5 M2.CellFontBold = True .CellFontBold = True M2.Text = "ROOM NO" M2.Caption = C Label4.CellFontBold = True M2.CellForeColor = vbRed M2.CellForeColor = vbRed M2.CellForeColor = vbBlue Next C = C + rs(J .CellForeColor = vbRed M2.1) rs.CellFontBold = True M2.Row = 0 M2.Text = "NAME" M2.Col = 1 M2.Text = "DATE OF VECATING" M2.CellFontBold = True M2.Caption = D End Sub Sub M2APP() Dim I As Integer M2.CellFontBold = True M2.CellForeColor = vbRed M2.Text = "PHONE NUMBER" M2.Col = 4 M2.Close Label2.Text = "ADDRESS" M2.Col = 6 M2.Text = "DATE OF BOOKING" M2.M2.CellForeColor = vbRed M2.Col = 3 M2.Col = 2 M2.MoveNext Wend M2APP End If rs.
ColWidth(I) = 2000 Next M2.CellFontBold = True M2.Col = 8 M2.Text = "NO OF DAYS" M2.CellFontBold = True M2.CellForeColor = vbRed M2.Col = 7 M2.ColWidth(0) = 0 End Sub Private Sub Form_Unload(Cancel As Integer) Form1.M2.ColWidth(1) = 1000 M2.ColAlignment(I) = 3 M2.Show End Sub Private Sub M1_Click() End Sub .Text = "PAID AMMOUNT" M2.CellForeColor = vbRed M2.CellForeColor = vbRed For I = 1 To 8 M2.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue listening from where you left off, or restart the preview.