0% found this document useful (0 votes)
3 views39 pages

HMSVB

The document outlines a project report for a Hotel Management System developed as part of the Post Graduation Diploma in Computer Application at Sant Gahira Guru Vishwavidyalaya. It details the project's objectives, features, system specifications, and the technologies used, including Visual Basic 6.0 and MS Access 2007. The project aims to automate hotel management processes to improve efficiency and user experience compared to manual systems.

Uploaded by

Mahabeer Rana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views39 pages

HMSVB

The document outlines a project report for a Hotel Management System developed as part of the Post Graduation Diploma in Computer Application at Sant Gahira Guru Vishwavidyalaya. It details the project's objectives, features, system specifications, and the technologies used, including Visual Basic 6.0 and MS Access 2007. The project aims to automate hotel management processes to improve efficiency and user experience compared to manual systems.

Uploaded by

Mahabeer Rana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 39

SANT GAHIRA GURU VISHWAVIDYALAYA, AMBIKAPUR

GURUKUL ARTS, COMMERCE & SCIENCE COLLEGE PATHALGAON

Center code No. - 045

A Project on

“HOTEL MANAGEMENT SYSTEM”

By

“………………………………………”

A Project report submitted in partial fulfillment of requirement

For the degree of

POST GRADUATION DIPLOMA IN COMPUTER APPLICATION

SANT GAHIRA GURU VISHWAVIDYALAYA, AMBIKAPUR (C.G.)

GURUKUL ARTS, COMMERCE & SCIENCE COLLEGE PATHALGAON (C.G.)


PROJECT WORK EVALUATION

1. Project Title:
2. Software Base: Visual Basic 6.0
3. Submitted for the Course & Year: PGDCA (2024-25)

4. Individual Evaluation: Maximum 100

INDIVIDUAL EVALUATION (M.G.)


NAME ROLL NUMBER
(MAX.100)

7. Center Name: (045) Gurukul Arts, Commerce & Science College, Pathalgaon (C.G.)

External Examiner
GURUKUL ARTS, COMMERCE & SCIENCE COLLEGE, PATHALGAON (C.G.)
POST GRADUATION DIPLOMA IN COMPUTER APPLICATION

CERTIFICATE OF APPROVAL

This is to certify that the work embodied in this Major Project, “HOTEL MANAGEMENT
SYSTEM” has been satisfactorily completed
by……………………………….with……………………..… . It is a bonafide piece of work,
carried out under my guidance in the PGDCA, GURUKUL ARTS, COMMERCE &
SCIENCE COLLEGE, PATHALGAON, and JASHPUR for the partial fulfillment of the
POST GRADUATION DIPLOMA IN COMPUTER APPLICATION during the Session
2024 - 2025.

Guided By

Name of Guidance
MR. PAWAN KUMAR YADAV
MR. NEERAJ KUMAR PATEL

Approved By
DR. AJEET KUMAR YADAV
Principal of Gurukul Arts, Commerce & Science College, Pathalgaon (C.G.)
GURUKUL ARTS, COMMERCE & SCIENCE COLLEGE, PATHALGAON (C.G.)
POST GRADUATION DIPLOMA IN COMPUTER APPLICATION

CERTIFICATE OF APPROVAL
This foregoing Major project is hereby approved as a creditable study of a computer
application Subject carried out and presented in a manner satisfactory to warranty its
acceptances as a prerequisite to the post graduate degree for which it has been submitted. It is
understood that by this approval the undersigned do not necessarily endorse or approval any
statements made , opinion expressed on conclusion drawn therein, but approval the thesis
only for the purpose the which it has been submitted.

(Internal Examiner) (External Examiner)


MR. PAWAN KUMAR YADAV
GURUKUL ARTS, COMMERCE & SCIENCE COLLEGE, PATHALGAON (C.G.)
POST GRADUATION DIPLOMA IN COMPUTER APPLICATION

DECLARATION

I, …………………………………., a student of post graduation diploma in computer


application, GURUKUL ARTS, COMMERCE & SCIENCE COLLEGE,
PATHALGAON hereby declare that the work presented in this Major Project is outcome of
my own work, is bonafide, correct to the best of my knowledge and this work has been
carried out taking care of Engineering Ethics. The work presented does not infringe any
patented work and has not been submitted to any University for the award of degree or any
professional diploma.

NAME OF STUDENT - ……………………………………………

CLASS NAME - …………………………………………….

ENROLMENT NO - …………………………………………….
ACKNOWLEDGMENT

“TASK successful makes everyone happy, but the happiness will not be gold without
glitter if we didn’t state the persons how have supported us to make it a success

Success will be crowned to people how made it a reality but the people whose
constants guidance and encouragement it possible will be crowned first on the eve of success.
This acknowledgement transcends the reality of formality when we would like to
express deep gratitude and respect to all those people behind the screen who guided, inspired
and happened me for the compilation of our project work.

I consider my self lucky in enough to get such a good project. This project would add
as an asset to my academic profile.

I would like to express my thankfulness HOD of GURUKUL ARTS, COMMERCE


& SCIENCE COLLEGE, PATHALGAON (C.G.) HOD of Computer Application Mr.
Pawan Kumar Yadav and my project Guide Mr. Pawan Kumar Yadav for his constant
motivation and valuable help through the project work.
I also extend my thanks to my team members and family members for their co-
operation during my course.

Thank you!
INDEX

S.N. DESCRIPTION PAGE NO

1 INTRODUCTION

2 PROBLEM DESCRIPTION

3 FEATURES OF PROJECT

4 OBJECTIVE OF PROJECT

5 SYSTEM SPECIFICATION

6 SYSTEM STUDY

7 DFD

8 E-R DIAGRAM

9 SOFTWARE DESCRIPTION

10 DATABASE DESIGN

11 SAMPLE CODING

12 OUTPUT

13 CONCLUSION

14 BIBLIOGRAPHY
1 .INTRODUCTION:-

My project title is Hotel Management System. I have tried my best to make the complicated
process of Hotel Management System as simple as possible using Structured & Modular
technique & Menu oriented interface. I have tried to design the Project in such a way that
user may not have any difficulty in using this package & further expansion is possible
without much effort. Even though I cannot claim that this work to be entirely exhaustive, the
main purpose of my exercise is perform each Employee’s activity in computerized way rather
than manually which is time consuming.

I am confident that this software package can be readily used by non-programming personal
avoiding human handled chance of error. This project is used by two types of users

i. Online Users.

ii. Administrator (management of the Hotel).

Online users can see the required articles or news

Administrator can maintain daily updates in the hotel records. Administrator is must be an
authorized user. He can further change the password. There is the facility for password
recovery, logout etc.

The main aim of the entire activity is to automate the process of day to day activities of Hotel
like Room activities, Admission of a New Customer, Assign a room according to customer’s
demand, checkout of a computer and releasing the room and finally compute the bill etc.

The limited time and resources have restricted us to incorporate, in this project, only main
activities that are performed in a Hotel Management System, but utmost care has been taken
to make the system efficient and user friendly.

“Hotel Management System” has been designed to computerize the following functions that
are performed by the system:

 Room Detail Functions


 Opening a New Room
 Modification to room assigned
 Check-in and check-out Detail Functions
 Admission of New customer
 Check-out of customer
 Room assigning related to customer’s need.
 Statement of Customer Details
 Check-in customer
 Check-out customer
 Room Details
 Total number of Customers in the Hotel
 Individual customer Report

2 .PROBLEM DESCRIPTION:-

As we know manual system are quite tedious, time consuming and less efficient and
accurate in comparison to the computerized system. So following are some advantages of the
old system:

1. Time consuming
2. Less accurate
3. Less efficient
4. Lots of paper work
5. Slow data processing
6. Not user friendly environment
7. Difficult to keep old records

3. FEATURES OF PROJECT:-

The project “HOTEL MANAGEMENT SYSTEM” is made with the effort of many people in
a direct or indirect manner to achieve the objective. This project can store record input by the
user and show when it is required by the user. It can print the data report as per the user
choice. In this project we can add new work from the user or we can add new type of work
also in it. It can print data report as per date also etc can effectively perform by this project.

4. OBJECTIVE OF PROJECT:-

During the past several decades personnel function has been transformed from a relatively
obscure record keeping staff to central and top level management function. There are many
factors that have influenced this transformation like technological advances, professionalism,
and general recognition of human beings as most important resources.
 A computer based management system is designed to handle all the primary
information required to calculate monthly statements. Separate database is

 Maintained to handle all the details required for the correct statement calculation and
generation.

 This project intends to introduce more user friendliness in the various activities such
as record updating, maintenance, and searching.

 The searching of record has been made quite simple as all the details of the customer
can be obtained by simply keying in the identification of that customer.

 Similarly, record maintenance and updation can also be accomplished by using the
identification of the customer with all the details being automatically generated. These
details are also being promptly automatically updated in the master file thus keeping
the record absolutely up-to-date.

 The entire information has maintained in the database or Files and whoever wants to
retrieve can’t retrieve, only authorization user can retrieve the necessary information
which can be easily be accessible from the file.

The main objective of the entire activity is to automate the process of day to day activities of
Hotel like:

 Room activities,
 Admission of a New Customer,
 Assign a room according to customer’s demand,
 Checkout of a computer and releasing the room
 Finally compute the bill etc.
 Packages available.
 Advance online bookings.
 Online Cancellation.
 List of Regular customers.
 Email facility.
 Feedbacks
5. SYSTEM SPECIFICATION:-

HARDWARE REQUIREMENT

Processor : Intel Pentium IV 2.4 GHz


Clock speed : 500 MHz
Ram : 1 Mb
Hard Disk : 160 Gb
Monitor : 15 VGA Color
Keyboard : 108 keys
Mouse : Fingers

SOFTWARE REQUIREMENT

Operating System : MS Windows XP Home


Back-End : Ms- Access 2007
Front-End : Visual Basic 6.0

6. SYSTEM STUDY:-

FEASIBILITY STUDY
An initial investigation terminates in a proposal that determines whether an alternative
system is feasible. Feasibility study can be categorized into three major parts: -
TECHNICAL FEASIBILITY

 The proposed system has technical capacity of required to hold the data.
 This project is efficient and responds quickly for various enquires regardless
 Of number of locations.
 The system proposed could be expanded easily and efficiency, whenever required.

OPERATING FEASIBILITY STUDY

The management of the organization has a fully supported us to bring up the project and
the data security in this project provided by setting up the password procedure so that only
the authorized user can access the system.

OUR PROJECT IS ECONOMICAL FEASIBLE AS

 It has computerized paper works and also is reduced to large extent


 With the help of this project single person is now available to do the tasks of 5 to 7
persons.
 Due to processing speed of then computer, we can extract desired information’s in a
fraction of second.

7. DATA FLOW DIAGRAM:-

DFD is a graphical representation of data process and files used in a support system.
Data Flow Diagrams are useful tools for analyzing existing systems. Data Flow Diagram is a
network that describes flows of data and the processes that changes or transforms the data
throughout a system.

Data flow diagrams can be expanded to show successive levels of details sufficient.

Expansion should be performed during the initial investigation to be certain that both the
analyst and user personnel share a common understanding of the existing system and its data
flow.

The different symbols used in the data flow diagram are:-


1. Circle It is used form transfer the input to output
Indicate process that transfer data flow.

2. Rectangle with When data is in file this symbol is used flow.


Representation
Open End

3. Square Squares indicates the source of destination .

4. Arrows Arrows are sued to show flow of path from where it is coming
& going.
8. E-R DIAGRAM:-

CONCEPTUAL ERD SYMBOLS


These symbols are generally used for conceptual data models, although some aspects may
spill over into logical data models. They can be found in the UML Entity Relationship and
Entity Relationship shape library of Lucid chart. If you don't see the shape you need, use an
image file (Lucid chart supports .PNG, .JPG, or .SVG import) or create your own with our
existing shapes and styling options.

ENTITIES
Entities are objects or concepts that represent important data. They are typically nouns,
e.g. customer, supervisor, location, or promotion.

Strong entities exist independently from other entity types. They always possess one or more
attributes that uniquely distinguish each occurrence of the entity.

Weak entities depend on some other entity type. They don't possess unique attributes (also
known as a primary key) and have no meaning in the diagram without depending on another
entity. This other entity is known as the owner.

Associative entities are entities that associate the instances of one or more entity types. They
also contain attributes that are unique to the relationship between those entity instances.

RELATIONSHIPS
Relationships are meaningful associations between or among entities. They are usually
verbs, e.g. assign, associate, or track. A relationship provides useful information that could
not be discerned with just the entity types.
Weak relationships, or identifying relationships, are connections that exist between a weak
entity type and its owner.

ATTRIBUTES

Attributes are characteristics of either an entity, a many-to-many relationship, or a one-to-


one relationship.

Multivalued attributes are those that are capable of taking on more than one value.

Derived attributes are attributes whose value can be calculated from related attribute values.
9. SOFTWARE DESCRIPTION:-

FRONT END (VB 6.0)

Visual basic 6.0 is the popular version of the programming language. This environment is
to develop robust. Attend alone application and utilities is less time then it usually takes in
other language. Project development has been all easier what with the language supporting
the oops concept.

VISUAL BASIC is a VISUAL and Event-driven Programming Language. These are


the main divergence from the old BASIC. In BASIC, programming is done in a text-only
environment and the program is executed sequentially. In VB6, programming is done in a
graphical environment. In the old BASIC, you have to write program code for each graphical
object you wish to display it on screen, including its position and its color. However, In VB6
, you just need to drag and drop any graphical object anywhere on the form, and you can
change its properties using the properties window.

In addition, Visual Basic 6 is Event-driven because we need to write code in order to


perform some tasks in response to certain events. The events usually comprises but not
limited to the user's inputs. Some of the events are load, click, double click, drag and drop,
pressing the keys and more. We will learn more about events in later lessons. Therefore, a
VB6 Program is made up of many subprograms, each has its own program code, and each
can be executed independently and at the same time each can be linked together in one way
or another.

BACK END (MS ACCESS-2007)

Ms access is a dbms .a database system is basically a computer based record keeping


system. The collection of data, usually referred to as the database, contains information about
one particular enterprise. It maintains any information be necessary to the decision making
process involved the management of that organization.

Very simply, Microsoft Access is an information management tool that helps you store
information for reference, reporting, and analysis. Microsoft Access helps you analyze large
amounts of information, and manage related data more efficiently than Microsoft Excel or
other spreadsheet applications. This article shows you when to use Access, and how it can
help make you more effective.

Microsoft Access works in the same manner any database does, by storing related
information together, and letting you create connections (commonly called relationships)
between different things. The relationships between two different things in MSAccess can be
very simple (such as a contact at a customer and the customer itself) or complex. In the
example below, the blue boxes represent the major things we're tracking in our MS Access
database tables, and the reports at right show how you can join the related information for
analysis and reporting.

10. DATABASE DESIGN:-

A database is certainly control, integrated collection of logically organized data. Before we


use a DBMS to actually build the tables, forms and other objects that will make up our
Database, it is important to take time to design our database. A good database design is
keystone to creating a database that dose what you want it to do effectively, accurately and
efficient.

BOOKING TABLE

ROOM TABLE
ROOM TYPE TABLE

SERVICE TABLE
11. SAMPLE CODING:-

Developing this project here are design the various form for coding. These forms are as
following:

LOGIN FORM

Private Sub Command1_Click()


If rs.State = 1 Then rs.Close
rs.Open "select * from tbluser where uid='" & Text1.Text & "' and password='" &
Text2.Text & "'", con, adOpenKeyset, adLockOptimistic, adCmdText
If rs.RecordCount > 0 Then
mdi.Show
Unload Me
Else
MsgBox "invalid userid or password", vbInformation
End If
End Sub

Private Sub Command2_Click()


End
End Sub

Private Sub Command3_Click()


Forget.Show
Unload Me
End Sub

Private Sub Command4_Click()


Form1.Show
Unload Me
End Sub
MDI FORM

Private Sub addnew_Click()


TBLROOM.Show
End Sub

Private Sub BILLTABLE_Click()


TBLBILL.Show
End Sub

Private Sub C_Click()


addnewservice.Show
End Sub

Private Sub come_Click()


frmROOMTYPE.Show
End Sub

Private Sub d_Click()


tabletype.Show
End Sub

Private Sub DGD_Click()


TBLSTATUS.Show
End Sub

Private Sub e_Click()


End
End Sub

Private Sub FETU_Click()


frmtable.Show
End Sub

Private Sub Form_Load()


'
End Sub

Private Sub mnudate_Click()


Form2.Show
End Sub
Private Sub nmesearch_Click()
BYNAME.Show
End Sub

Private Sub p_Click()


cin.Show
End Sub

Private Sub pr_Click()


search.Show
End Sub

Private Sub S_Click()


Cout.Show
End Sub

Private Sub SR_Click()


DataReport2.Show
End Sub

Private Sub STOCKREPORT_Click()


DataReport5.Show
End Sub

Private Sub VIEWA_Click()


frmtablebooking.Show
End Sub

NEW SERVICE FORM

Private Sub Combo3_Click()

If rs.State = 1 Then rs.Close

rs.Open "select * from tbl_stock where company='" & Combo3.Text & "'", con,
adOpenKeyset, adLockOptimistic, adCmdText

Combo4.Clear

While Not rs.EOF


Combo4.AddItem rs(0)

rs.MoveNext

Wend

End Sub

Private Sub Command1_Click()

If rs.State = 1 Then rs.Close

rs.Open "select * from TBL_SERVICE", con, adOpenKeyset, adLockOptimistic, adCmdText

rs.addnew

rs(0) = Text1.Text

rs(1) = Text2.Text

rs.Update

MsgBox "record saved", vbInformation

Text1.Text = ""

Text2.Text = ""

Adodc1.Refresh

'Text1.Text = ""

End Sub

Private Sub Command2_Click()

Unload Me
End Sub

CHECKIN FORM

Private Sub Combo1_CLICK()


'Combo1.Enabled = False
End Sub

Private Sub Combo3_Click()


If rs.State = 1 Then rs.Close
rs.Open "select * from TBL_ROOM where ROOMTYPE='" & Combo3.Text & "' and
FLOOR='" & Combo1.Text & "' and STATUS='FREE'", con, adOpenKeyset,
adLockOptimistic, adCmdText
Combo4.Clear
While Not rs.EOF
Combo4.AddItem rs(0)
rs.MoveNext
Wend

Adodc2.RecordSource = "select * from TBL_ROOM where ROOMTYPE='" &


Combo3.Text & "' and FLOOR='" & Combo1.Text & "'"
Adodc2.Refresh
End Sub

Private Sub Combo4_Click()


'Adodc2.RecordSource = "select fet_name,feture from feture_details where itemname='" &
Combo4.Text & "'"
Adodc2.Refresh

'If rs.State = 1 Then rs.Close


'rs.Open "select PRICE from tbl_stock where itemname='" & Combo4.Text & "' and
company='" & Combo3.Text & "'", con, adOpenKeyset, adLockOptimistic, adCmdText
'Text2.Text = rs(0)

End Sub

Private Sub Command1_Click()


MsgBox "record saved", vbInformation
If DataEnvironment1.rsCommand3_Grouping.State = 1 Then
DataEnvironment1.rsCommand3_Grouping.Close
DataEnvironment1.rsCommand3_Grouping.Filter = "order_no =" & Val(Text4.Text)
DataReport3.Show
CLEARALLTEXT Me
Adodc1.RecordSource = "select * from tbl_purchase where order_no=0"
Adodc1.Refresh
Form_Load

End Sub

Private Sub Command2_Click()


Unload Me
End Sub

Private Sub Command3_Click()


If rs.State = 1 Then rs.Close
rs.Open "select * from TBL_BOOKING", con, adOpenKeyset, adLockOptimistic,
adCmdText
rs.addnew
rs(0) = Val(Text4.Text)
rs(1) = Text2.Text
rs(2) = Text3.Text
rs(3) = Text1.Text
rs(4) = Val(Combo4.Text)
rs(5) = Combo3.Text
rs(6) = Date

rs(8) = Time
rs.Update

If rs.State = 1 Then rs.Close


rs.Open "select * from TBL_ROOM where ROOM_NO=" & Val(Combo4.Text), con,
adOpenKeyset, adLockOptimistic, adCmdText
rs(5) = "BOOKED"
rs.Update

Dim i As Integer
Dim ch As String
i = Val(Text4.Text)
ch = Combo1.Text
CLEARALLTEXT Me
Text4.Text = i
Combo1.Text = ch
MsgBox "Record saved.", vbInformation
Adodc1.RecordSource = "select * from TBL_BOOKING where booking_id=" & i
Adodc1.Refresh
Adodc2.Refresh
If rs.State = 1 Then rs.Close
rs.Open "select max(BOOKING_ID)from TBL_BOOKING", con, adOpenDynamic,
adLockOptimistic

If IsNull(rs(0)) Then
Text4.Text = "001"
Else
Text4.Text = "00" & (rs(0) + 1)
End If
End Sub

Private Sub Form_Load()

DTPicker1.Value = Date
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Combo3.Text = ""
Combo4.Text = ""
Combo1.Enabled = True

If rs.State = 1 Then rs.Close


rs.Open "select distinct ROOMTYPE from TBL_ROOM_TYPE", con, adOpenKeyset,
adLockOptimistic, adCmdText
Combo3.Clear
While Not rs.EOF
Combo3.AddItem rs(0)
rs.MoveNext
Wend

If rs.State = 1 Then rs.Close


rs.Open "select distinct floor from TBL_ROOM", con, adOpenKeyset, adLockOptimistic,
adCmdText
Combo1.Clear
While Not rs.EOF
Combo1.AddItem rs(0)
rs.MoveNext
Wend

If rs.State = 1 Then rs.Close


rs.Open "select max(BOOKING_ID)from TBL_BOOKING", con, adOpenDynamic,
adLockOptimistic

If IsNull(rs(0)) Then
Text4.Text = "001"
Else
Text4.Text = "00" & (rs(0) + 1)
End If
End Sub

Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)

'Text3.Text = Val(Text1.Text) * Val(Text2.Text)


End Sub

Private Sub Timer1_Timer()


Text5.Text = Time
End Sub

CHECKOUT FORM

Private Sub Combo3_Click()


If rs.State = 1 Then rs.Close
rs.Open "SELECT TBL_BOOKING.BOOKING_ID, TBL_BOOKING.CUST_NAME,
TBL_BOOKING.ROOM_NO, TBL_ROOM.PRICE, TBL_BOOKING.BOOKING_DATE,
TBL_BOOKING.FREE_DATE FROM TBL_ROOM INNER JOIN TBL_BOOKING ON
TBL_ROOM.ROOM_NO = TBL_BOOKING.ROOM_NO Where BOOKING_ID = " &
Val(Combo3.Text), con, adOpenKeyset, adLockOptimistic, adCmdText
Combo1.Text = rs(1)
DTPicker1.Value = rs(4)
Text2.Text = rs(3)
Text1.Text = DateSerial(DTPicker1.Year, DTPicker1.Month, DTPicker1.Day) -
DateSerial(DTPicker2.Year, DTPicker2.Month, DTPicker2.Day) + 1
Text3.Text = Val(Text1.Text) * Val(Text2.Text)
Text4.Text = rs(2)
End Sub

Private Sub Combo4_Click()


Adodc2.RecordSource = "select fet_name,feture from feture_details where itemname='" &
Combo4.Text & "'"
Adodc2.Refresh

If rs.State = 1 Then rs.Close


rs.Open "select PRICE,qty from tbl_stock where itemname='" & Combo4.Text & "' and
company='" & Combo3.Text & "'", con, adOpenKeyset, adLockOptimistic, adCmdText
Text2.Text = rs(0)
Label9.Caption = rs(1)

End Sub

Private Sub Command1_Click()


MsgBox "record saved", vbInformation
If DataEnvironment1.rsCommand4_Grouping.State = 1 Then
DataEnvironment1.rsCommand4_Grouping.Close
DataEnvironment1.rsCommand4_Grouping.Filter = "order_no =" & Val(Text4.Text)
DataReport4.Show
CLEARALLTEXT Me
Adodc1.RecordSource = "select * from tbl_sales where order_no=0"
Adodc1.Refresh
Form_Load

End Sub

Private Sub Command2_Click()


Unload Me
End Sub

Private Sub Command3_Click()

If rs.State = 1 Then rs.Close


rs.Open "select * from TBL_BOOKING where booking_id=" & Val(Combo3.Text), con,
adOpenKeyset, adLockOptimistic, adCmdText

rs(7) = Date
rs(9) = Time
rs(10) = Val(Text1.Text)
rs(11) = Val(Text1.Text)
rs(12) = Val(Text3.Text)
rs.Update

If rs.State = 1 Then rs.Close


rs.Open "select * from TBL_ROOM where ROOM_NO=" & Val(Text4.Text), con,
adOpenKeyset, adLockOptimistic, adCmdText
rs(5) = "FREE"
rs.Update

Dim i As Integer
Dim ch As String
i = Val(Text4.Text)
ch = Combo1.Text
CLEARALLTEXT Me
Text4.Text = i
Combo1.Text = ch
MsgBox "Record saved.", vbInformation
'Adodc1.RecordSource = "select * from tbl_sales where order_no=" & Val(Text4.Text)
Adodc1.Refresh
Form_Load
End Sub

Private Sub Form_Load()

DTPicker2.Value = Date
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Combo3.Text = ""
'Combo4.Text = ""
Combo1.Text = ""

If rs.State = 1 Then rs.Close


rs.Open "select * from TBL_BOOKING", con, adOpenKeyset, adLockOptimistic,
adCmdText
Combo3.Clear
While Not rs.EOF
Combo3.AddItem rs(0)
rs.MoveNext
Wend

If rs.State = 1 Then rs.Close

End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If Not IsNumeric(Chr(KeyAscii)) Then
KeyAscii = 0
MsgBox "plz enter only no", vbInformation
Exit Sub
End If
End Sub

Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)

Text3.Text = Val(Text1.Text) * Val(Text2.Text)


End Sub

Private Sub Timer1_Timer()


Text5.Text = Time
End Sub

TBL BILL FORM

Private Sub Command1_Click()


If rs.State = 1 Then rs.Close
rs.Open "select * from TBL_TABLE WHERE TABLENO=" & Val(Combo1.Text), con,
adOpenKeyset, adLockOptimistic, adCmdText

rs(2) = "FREE"
rs(3) = Null
rs(4) = ""
rs.Update
MsgBox "record saved", vbInformation
Adodc1.Refresh
Form_Load
Text1.Text = ""

End Sub

Private Sub Command2_Click()


Unload Me
End Sub
Private Sub Form_Load()

If rs.State = 1 Then rs.Close


rs.Open "select * from TBL_TABLE WHERE STATUS='BOOKED'", con, adOpenKeyset,
adLockOptimistic, adCmdText
Combo1.Clear
While Not rs.EOF
Combo1.AddItem rs(0)
rs.MoveNext
Wend

End Sub

BOOKING REPORT

Private Sub Combo4_Click()


If rs.State = 1 Then rs.Close
rs.Open "select * from TBL_TABLE WHERE TABLETYPE='" & Combo4.Text & "' AND
STATUS='FREE'", con, adOpenKeyset, adLockOptimistic, adCmdText
Combo1.Clear
While Not rs.EOF
Combo1.AddItem rs(0)
rs.MoveNext
Wend
End Sub

Private Sub Command1_Click()

If rs.State = 1 Then rs.Close


rs.Open "select * from TBL_TABLE WHERE TABLENO=" & Val(Combo1.Text) & " AND
TABLETYPE='" & Combo4.Text & "'", con, adOpenKeyset, adLockOptimistic, adCmdText

rs(2) = "BOOKED"
rs(3) = DTPicker1.Value
rs(4) = Text1.Text
rs.Update
MsgBox "record saved", vbInformation
Adodc1.Refresh
Form_Load
Text1.Text = ""
End Sub

Private Sub Command2_Click()


Unload Me
End Sub

Private Sub Form_Load()

Combo1.Clear
DTPicker1.Value = Date
If rs.State = 1 Then rs.Close
rs.Open "select * from TBL_TABLE_TYPE", con, adOpenKeyset, adLockOptimistic,
adCmdText
Combo4.Clear
While Not rs.EOF
Combo4.AddItem rs(0)
rs.MoveNext
Wend
End Sub

SALE REPORT

Private Sub Command1_Click()


If DataEnvironment1.rsCommand2.State = 1 Then DataEnvironment1.rsCommand2.Close
DataEnvironment1.rsCommand2.Filter = "p_date>=#" & DTPicker1.Value & "# and
p_date<=#" & DTPicker2.Value & "#"
DataReport2.Show
End Sub

Private Sub Command2_Click()


Unload Me
End Sub

Private Sub Form_Load()

DTPicker1.Value = Date
DTPicker2.Value = Date
End Sub

12.OUTPUTS:-

LOGIN FORM

MDI FORM
ROOM TYPES FORM

ADD NEW ROOM FORM


ADD NEW TABLE TYPE FORM

CHECK IN FORM
CHECKOUT FORM

ROOM TYPE REPORT


ROOM STATUS REPORT

13.CONCLUSION:-

Now days computerizations of existing manual system is going on a large scale because of
the versatility, speed, accuracy and diligence it offers to its users. Computers provide
practical means to organize things systematically and economically in the organization the
use of computers for managing transactions; information processing and preparation of
reports can prove to be a blessing.
The project is discussion is an attempt to attain all the above said objectives.
Its development was mean to replace the manual system and to achieve the goal to maximum
accuracy and most efficiently. But like every other system might process faults to its credits
and has its own limitation. Neglecting these few negations, the project can be called a
stepping stone to automate processes in organizations.
14. BIBLIOGRAPHY:-

How to Visual Basic 6.0 (Eric Brierley, Anthony Prince & David Rinaldi)

Using VB 6.0 (Bob Reselman, Richard Peasley, Wayne Prvchniak)

Database Programming (Curtis smith & Michael Amundsen)


with VB 6.0 in 21 days

Programming with visual basic (P.K.Mcbride)

You might also like