Вы находитесь на странице: 1из 105

Index

Sr. no

Title
Introduction and Background.
1.1 Background.
1.2 Problem Definition.

Project Description.
2.1 Functions Performed.
2.1.1 Limitation & Restrictions
2 2.1.2 User Interface Design (Layouts).
2.1.3 System data Files (Database).

2.2 Design Specification.


2.2.1 DFD.
2.2.2 Hardware/Software Requirements.
2.2.3 Implementation Language.

2.3 Implementation Plan.


2.3.1 Deliverable item (Reports)
2.3.2 Future work.

3
4
5
6

Coding
Conclusion.
References.
Experts Opinions.

Page No

02
03
04
05
07
08
09
27
35
36
40
41
47
48
62
63
103
104
105

Introduction
&
Background

Background
This project gives information about the "AIRPORT MANAGAMENT". From
this project we can understand the real concept of 'Airport Management' & we can
also know that how to manage all the details of data through this project, the data are
stored in sophisticated form. The database gives information about flight timing,
passenger details etc.
The database is very easy to handle, user can insert the record, delete the record
update the record and search the record. All forms are connected with the database
tables but the user can not directly make changes in the structure of database and
cannot do some operation like update, delete and insert etc. The user can do this
operation using the front end application only.
Airport is an organization where the records of passengers are changing every
day. Sometimes it is difficult to maintain record of passengers details. There airport
management project is needed which helps manager/user to maintain computerized
records which fulfill all the details of airport. Previously all the records were kept
manually, all details were stored in register and it was very difficult to maintain each
passengers details in one register. In our project we have normalized and simplified
the records in one database using Visual Basic as front end and MS Access as back
end tool.

Problem Statement
In the current working system all the details are manually stored in register so
there are many chances of misuse or loss of information. The information is written
manually in registers which is very time consuming and if there is any mistake in
writing then the whole data is rewritten on a new page.
If a person wants even small information then he has to search in many registers
and there is no surety that the information will be available there.

Project
Description

Functional
Specification

Functions performed
The management of the project includes lot of positive changes in the existing
system. Apart from ease thatll be achieved in storing records and information, it also
helps in smooth management allowing flexibility in accessing and modifying the
previous records without hazels. It maintains records of passengers and flights. It also
helps to eliminate the errors in manual entries.
This project helps the airport manager and its user to save their precious time and
energy. It provides security for vital information of management. It provides standard
and uniform environment for the different procedures.
The problem of space is eliminated as it provides large amount of memory space
to store information. The daily reports maintain the record of passengers, flights etc. It
also saves money and papers.

Limitations & Restrictions


This project has some limitations and restrictions. Sometime it may create
trouble for the /user if there is problem in computer or project.
It has no shortcut keys to insert the record in passenger detail. Password of the
system is fixed by the programmer which can not be changed by the user.
This project can not show the complete status of customer means if passenger
changed the flight, then this software does not support. This project can only support
the cash payment system, it does not support the payment system like credit card and
debit card.

USER
INTERFACE
DESIGN

LOGIN

10

HOME PAGE

11

FLIGHT SEARCH

12

FLIGHT FOUND

13

AIRLINES RESERVAION

14

TICKET

15

AIRPORT CHECK IN

16

BOARDING PASS

17

AIR TRAFIC CONTROL

18

CHECK OUT

19

PASSENGER DETAIL

20

AIRPORT SERVICES

21

HOTEL RESERVATION

22

SHOPPING BILL

23

FOREIGN EXCHANGE

MEALS AND RERRESHMENTS

24

FLIGHT MAINTENANCE

25

RUNWAY MANTENANCE

26

SYSTEM
DATABASE
FILES

27

1. FLIGHT SEARCH:Sr No

Field Name

Data Type

Description

One Way

Yes / No

To select ticket option one way

Round Trip

Yes / No

To select ticket option two way

Date

Date / Time

To select date

Departure

Text

To select departure

Destination

Text

To select destination

2.

FLIGHT FOUND:-

Sr No

Field Name

Data Type

Description

Flight No

Text

To enter flight no

Airline

Text

To enter airlines

Departure

Text

To enter departure city

Departure Time

Text

To enter departure time

Arrival

Text

To enter arrival city

Arrival Time

Text

To enter arrival time

Seats Available

Text

To search seats

Fare

Text

To give detail about fare

3. RESERVATION:28

Sr No
1
2
3
4
5
6
7
8
9
10
11
12
13

Field Name
Name Of Passenger
One Way
Round Trip
Select Airline
From
To
Departure
Return
Gender
Age
Class
Adult
Children

Data Type
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text

Description
To enter name of passenger
To enter ticket option one way
To enter ticket option round trip
To enter airlines
To enter departure city
To enter destination city
To enter departure date
To enter return date
To enter gender
To enter age
To enter seat class
To enter no of adults
To enter no of children's

4. TICKET:Sr No
1
2
3
4
5
6
7
8
9
10

Field Name
Passport Number
Passenger Name
Departure Date
Destination City
Time
Departure City
Flight No
Ticket Option
Seat Number
Seat Class

Data Type
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text

Description
To enter passport number
To enter passenger name
To enter departure date
To enter destination city
To enter departure time
To enter departure city
To enter flight no
To enter ticket option
To enter seat number
To enter seat class

29

5. CHECK IN:Sr No

Field Name

Data
Type
Text

Passenger Identification
Registration(passport)

Passenger Identification Registration


(ticket)

Text

Baggage Registration(security check)

Text

Baggage Registration(weight limit)

Text

Seating Registration

Text

Special Service Request

Text

Passenger Name

Text

Flight No

Text

Passport No

Text

10

From

Text

11

To

Text

Description
To enter passenger
identification
registration
To enter passenger
identification
registration
To enter baggage
registration
To enter baggage
registration
To enter seating
registration
To enter special
service request
To enter passenger
name
To enter flight no l
To enter passport
no
To enter departure
city
To enter destination
city

6.BORDING PASS:Sr No
1
2
3
4
5
6
7
8
9

Field Name
Name
Seat No
Flight No
Date
From
To
Boarding Time
Am / Pm
Gate No

Data Type
Text
Text
Text
Date / Time
Text
Text
Text
Text
Text

Description
To enter passenger name
To enter seat no
To enter flight no
To enter date
To enter departure city
To enter destination city
To enter boarding time
To enter am or pm
To enter gate no

7. AIR TRAFIC CONTROL.:30

Sr No
1

Field Name
Destination City

Data Type
Text

Whether Maximum

Text

Whether Minimum

Text

Air Traffic Control


Frequency

Text

Radar System Information

Text

Description
To give detail about
destination
To give whether
information
To give whether
information
To give information air
traffic control
frequency
To give information
radar

8. CHECK OUT:Sr No
1
2
3
4
5
6
7

Field Name
Name Of Passenger
Passenger
Identification
Registration (passport)
Passenger
identification
Registration (ticket)
Baggage Registration
(security)
Baggage Registration
(weight limit)
Special Service
Request
Car Rental

Data Type
Text
Text

Description
To enter name of passenger
To enter passenger
identification registration

Text

To enter passenger
identification

Text

To enter baggage registration

Text

To enter baggage registration

Text

To enter special service request

Text

To enquiry about car rental

9. PASSENGER DETAIL:-

31

Sr No
1
2
3
4
5
6
7
8
9
10
11

Field Name
Name
Airlines
Flight No
Departure date
Departure Time
Arrival Date
Arrival Time
Departure City
Destination City
Ticket Option
Seat Class

Data Type
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text

Description
To enter name of passenger
To enter name of airlines
To enter flight no
To enter departure date
To enter departure time
To enter arrival date
To enter arrival time
To enter departure city
To enter destination city
To enter ticket option
To enter seat class

10. HOTEL RESERVATION:Sr No

Field Name

Data Type

Description

Sr no

Text

To generate serial no

Customer Name

Text

Address

Text

To enter customer
name
To enter address

Phone No

Text

To enter phone no

Mobile No

Text

To enter mobile no

Reservation No

Text

Period Of Reservation

Text

Room Type

Text

To enter reservation
no
To enter period of
reservation
To enter room type

11. SHOPPING BILL:32

Sr No

Field Name

Data Type

Description

Sr No

Text

To generate serial no

Date

Text

To enter date

Payment

Text

Select Product

Text

To pay payment by
customer choice
To select product

Quantity

Text

To enter quantity

Rate

Text

To enter rate

Total

Text

To enter total

33

12. MEALS AND REFRESHMENT:Sr no

Field name

Data Type

Description

Order No

Text

To enter order no

Cold Drink

Text

Soup

Text

To enter choice of cold


drink
To enter choice of soup

Ice Cream

Text

Snaks

Text

Hot Drinks

Text

Total

Number

To enter choice of cold


drink
To enter total

Payment

Text

To pay payment

To enter choice of ice


cream
To enter choice of snaks

13. FLIGHT MAINTENANCE:Sr No

Field Type

Data Type

Description

Flight No

Text

To enter flight no

Airline Type

Text

To enter airline type

Airframe Structure

Text

To check airframe structure

Electrical System

Text

To check Electrical

Automatic Pilot System

Text

Text

Radio Communication
System
Engine System

Text

To check automatic pilot


system
To check radio
communications
To check engine system

Radar System

Text

To check radar system

34

DESIGN
SPECIFICATION

35

DATA FLOW DIAGRAM (DFD)

Flight fond

Flight Search

Check out

Airline Reservation
Check In

AirPort
Management

Ticket

Air Traffic Control

Passenger detail

Airport Services

Boarding pass

Flight Maintains

Flight Information

Runway Maintains
Reports

1 LEVEL

36

Ticker Option

Flight No.

Via

Departure

Airlines

Flight
Search

Departure

Arrival
Destination
Fare

1.1 LEVEL

Passenger Personal
Detail

Boarding pass

Flight Number

Check In

Check Out

Emigration

1.2 LEVEL

Report

37

Report

Passenger Personal
Detail

Airline

Airline
Reservation

Ticker Option

Ticket

1.3 LEVEL

Hotel
Foreign Exchange

Passenger
Needs

Meals and
Refreshment

Airport Services
Shopping
Report

1.4 LEVEL

38

Destination Route Map

Destination

Air Traffic
Control

Whether Information

Radar Information
Report

1.5 LEVEL
Airframe Structure
Flight Number
Electrical System

Flight
Maintenanc
e

Automatic pilot system


Engine System

Flight Type

Radar system

1.6 LEVEL

39

System Requirement for Project


Implementation:
Software Requirement:1.
2.
3.
4.

Window 98, Window 2000, window XP, window VISTA.


Microsoft word_2003.
Microsoft access.[Back end]
Visual Basic 6.0 [Front end]

Hardware Requirement:1. Pentium IV to Pentium Dual-Core.


2. RAM 512 MB to onward.
3. CPU 1.60 GHz to 2.0 GHz.
4. Hard disk: Minimum 80GB.
5. Keyboard.
6. Optical mouse.
7. Printer: Ink-jet, dot Matrix, Laser printer.

40

IMPLEMENTATION
LANGUAGES

41

MICROSOFT VISUAL BASIC 6.0


Visual basic is powerful programming system for developing sophisticated,
graphical application for Microsoft Windows environment.

Its productivity

enhanced by addition of complete set of tool to simplify rapid application


development and internet tacking.
Visual Basic is accomplished visually that is, the run time appearance of your
program can be viewed during design time itself. This is the great advance over other
programming language because your design until you are satisfied with colors, sizes
and images that are included in your program.
With the release of visual basic 6.0 it is possible to work with ActiveX Data
Object [ADO], which features a simpler object model than DAO or RDO. Data
environment is new ActiveX designer that enables the user to visually manage
database connection and commends. A substantial amount of work to enhance internet
capabilities has been done in this version.
Visual Basic lets you add menus, textboxes, command buttons, option buttons,
checkboxes, list boxes, scrollbars & file and directory boxes to blank windows. You
can grids to handle tabular data.
You can communicate with other window applications, and perhaps most
importantly, you will have an easy method to let users control and access database.
42

You can have multiple windows on screen. These windows have full access to
the clipboard and you the information in most other windows application running at
the same time.
You can use Visual Basic to communicate with other application running same
windows, using the most modern version of Microsofts COM/OLE technology. The
front-end application use in the project is Microsoft Visual Basic 6.0.
Visual refers to method used to create Graphical User

Interface [GUI] that

uses illustration rather than writing numerous lines of code to describe the appearance,
function and location of interface elements. Basic refer to the basic programming
language. Widely preferred language by many programmers for its simplicity Visual
Basic evolved from the original basic language and now contains several hundred
statements, function and keywords many of which relate directly to the window GUI.
Visual Basic is most popular language in the world today. Visual Basic is an
easy yet powerful tool for developing windows application. In basic it has added some
long desired language feature Visual Basic is another structured language.
The most notable enhancement includes dynamic HTML support DHTML
application is Visual Basic application that combines VB code with DHTML to create
a browser on the whole Visual Basic is generally on target in predicting the future of
software development.
Perhaps even more important than the look of Microsoft windows application
is the feel that the applications developed for window have windows interface. This
means that user can spend more time mastering the application and less worrying
about which keystrokes do what within means and dialogue boxes.

43

VISUAL BASIC FEATURES


Visual basic represents the next step in object oriented programming
1. Visual Basic is powerful programming language for the Microsoft
Windows environment with compilers and interpreter in it.
2. In visual basic after you run the program you can see the action
Performed by the object. The check boxes, option button and the
entire standards windows object would look like the object they represent.
3. Visual basic is more then a programming language. It is environment for
developing windows application. This environment includes the programs to
create and modify the code you write an interpreter execute the application into
stand alone code.
4. In most programming language it makes hundreds of lines of code
simply to open a windows and operation to be defined on it, but visual basic
simplifies the task by the click of the mouse button.

44

INTRODUCTION TO MS-ACCESS
MS-ACCESS

allows you to manage all your information from a single

database file. Within this you can spilt your data and store name in table.
The database in the file table can be viewed reports. You can find and retrieve data
that meets criteria using a query.
MS-Access is the RELATIONAL DATABASE MANAGEMENT SYSTEM or
RDBMS. It is set of two dimensional tables in which the data is represented in rows
& columns. A relationship between the tables can be built. When a report has to be
generated a relationship can be built in table. Also the find from different tables can
combines together to from reports. In this manner only the database which contain
the data forms, queries and reports. These objects are used to manage the data in the
database.

A database is a collection of related and ordered information, organized in such


a way that information can be accessed quickly and easily. A database can consist of
one or more tables of information that are related in some way.

A Database

Management System (DBMS) is a computer based system to manage a database, or a


collection of databases or files.
Microsoft Access 2000 is a DBMS package from Microsoft. It is one of the
products in the Microsoft Office 2000 suite. MS-ACCESS supports RDBMS features
like setting Primary key, relations between more than one table, designing queries,
reports.

45

A primary key is to be set to a table, which uniquely identifies each record.


A query that displays specified columns and data from a table(s).
MS-ACCESS supports SQL Structured Query Language which is used to
manipulate data, retrieve data from more than one tables or for query designing.

The three basic data functions provided by SQL are:


Data Definition Language (DDL): Consists of commands to create the objects such
as tables, views, indexes etc.
Data Manipulation Language (DML): Uses for query, insertion , deletion and
updating of data stored in the database.
Data Control Language (DCL): this is used for controlling data and their access to
the database.
A database is a collection of information thats related to a particular subject or
purpose, such as tracking customer orders or maintaining a music collection. If your
database isnt stored on a computer, or only parts of it are, you may be tracking
information from a variety of sources that youre having to coordinate and organize
yourself.
For example, suppose the serial number of a patient is in three places that is
patient information, admit of patient, discharge time that time, and we have to do
some updates then data base access is used.

46

IMPLEMENTATION
PLAN

47

DELIEVERABLE
ITEMS

48

Flight Search Report

49

Airline Reservation Report

50

Ticket Report

51

Airport Check In Report

52

Boarding Pass Report

53

Air Traffic Control Report

54

Airport Check-Out Report

55

Flight Information Report

Passenger Detail Report


56

Flight Maintenance Report


57

Hotel Reservation Report


58

Shopping Bill Report


59

Meals And Refreshment Report

60

61

FUTURE PLAN
This project is small software which helps to user to maintain the records about hotel
but it does not fulfill all the requirements of people. In future we will try to make this
software more reliable and user friendly for use. We will add the login form as per
user define (user can change user name and password as they like). We will try to
overcome the limitations in next version.

62

CODING
Login
Dim a As Integer
Private Sub Command3_Click()
If Text1.Text = "naim" And Text2.Text = "rahim" Then
frmmain.Show
Unload Me
Else
MsgBox "You have enter wrong password or user name plase enter right
passwor and user name and try again."
End If
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Form_Load()
End Sub

MDI Form
Private Sub AbUs_Click()
frmAboutUs.Show
End Sub
Private Sub aci_Click()
Rptacin.Show
End Sub
Private Sub aircheck_Click()
frmAC.Show
End Sub
Private Sub airres_Click()
frmTRes.Show

63

End Sub
Private Sub airsercives_Click()
frmAS.Show
End Sub
Private Sub arr_Click()
rptair_res.Show
End Sub
Private Sub atc_Click()
rptATC.Show
End Sub
Private Sub borpass_Click()
frmBP.Show
End Sub
Private Sub bp_Click()
rptBordingPass.Show
End Sub
Private Sub chout_Click()
frmCO.Show
End Sub
Private Sub co_Click()
rptCheckOut.Show
End Sub
Private Sub exi_Click()
Unload Me
End Sub
Private Sub exit_Click()
End
End Sub
Private Sub fd_Click()
frmflfo.Show
End Sub
64

Private Sub fi_Click()


rptFlightInfo.Show
End Sub
Private Sub fli_Click()
frmFI.Show
End Sub
Private Sub flimaintain_Click()
Frmfm.Show
End Sub
Private Sub fliser_Click()
frmFS.Show
End Sub
Private Sub fmm_Click()
rptFlightmaintain.Show
End Sub
Private Sub fs_Click()
rptFlightsearch.Show
End Sub
Private Sub hr_Click()
rpthotel_Reser.Show
End Sub
Private Sub mar_Click()
rptmeals.Show
End Sub
Private Sub pd_Click()
frmPD.Show
End Sub
Private Sub pdd_Click()
rptPass_detail.Show
End Sub
Private Sub runwaymaintain_Click()
65

frmRM.Show
End Sub
Private Sub sb_Click()
rptShop.Show
End Sub
Private Sub tc_Click()
rptTicket.Show
End Sub
Private Sub tic_Click()
frmTP.Show
End Sub
Private Sub tracon_Click()
frmATC.Show
End Sub

FLIGHT SEARCH
Private Sub cmdcan_Click()
Unload Me
End Sub
Private Sub cmdclr_Click()
Call clrTxt(frmFS)
End Sub
Private Sub cmdsub_Click()
frmflfo.Show
End Sub
Private Sub comdep_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Then
Else
KeyAscii = 0
End If
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Then
KeyAscii = 0
End If
End Sub

66

Private Sub Form_Load()


comdep.AddItem "Select"
comdep.AddItem "Cairo"
comdep.AddItem "Dubai"
comdep.AddItem "Karachi"
comdep.AddItem "Melbourne"
comdep.AddItem "Mumbai"
comdep.AddItem "New York"
comdep.ListIndex = 0
comdes.AddItem "Select"
comdes.AddItem "Cairo"
comdes.AddItem "Dubai"
comdes.AddItem "Karachi"
comdes.AddItem "Melbourne"
comdes.AddItem "Mumbai"
comdes.AddItem "New York"
comdes.ListIndex = 0
End Sub

FLIGHT FOUND
Private Sub Command1_Click()
End Sub
Private Sub cmdext_Click()
Unload Me
End Sub
Private Sub Form_Load()
Fg.FormatString = "FlightNo|
Airline
Time | Arrival | Arrival Time |
Fare
"
i=1
With Adodc1.Recordset
.MoveFirst
While .EOF = False
Fg.TextMatrix(i, 0) = .Fields(0)
Fg.TextMatrix(i, 1) = .Fields(1)
Fg.TextMatrix(i, 2) = .Fields(2)
Fg.TextMatrix(i, 3) = .Fields(3)

| Depature | Depature
| Seats Aviable | Via

67

Fg.TextMatrix(i, 4) = .Fields(4)
Fg.TextMatrix(i, 5) = .Fields(5)
Fg.TextMatrix(i, 6) = .Fields(6)
Fg.TextMatrix(i, 7) = .Fields(7)
Fg.TextMatrix(i, 8) = .Fields(8)
i=i+1
Fg.Rows = Fg.Rows + 1
.MoveNext
Wend
End With
End Sub

AIRLINE RESERVATION
Private Sub cmdcan_Click()
Unload Me
End Sub
Private Sub cmdclr_Click()
Call clrTxt(frmTRes)
End Sub
Private Sub cmdDel_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Passenger Name to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from air_res", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("n_of_p") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
68

End With
End Sub
Private Sub cmdsav_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from air_res", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("n_of_p") = txtn_of_p.Text
.Fields("o_w") = opto_w.Value
.Fields("r_w") = optr_w.Value
.Fields("s_a") = Coms_a.Text
.Fields("f") = comf.Text
.Fields("t") = Comt.Text
.Fields("dep") = DTPicker1.Value
.Fields("ret") = DTPicker2.Value
.Fields("gen") = Comret.Text
.Fields("age") = Comage.Text
.Fields("cla") = Comcla.Text
.Fields("adu") = Comadu.Text
.Fields("chil") = Comchil.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub cmdupd_Click()
'n_of_p
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
69

.Open "Select * from air_res where n_of_p='" & txtn_of_p.Text & "'", con,
adOpenDynamic, adLockOptimistic
.AddNew
.Fields("n_of_p") = txtn_of_p.Text
.Fields("o_w") = opto_w.Value
.Fields("r_w") = optr_w.Value
.Fields("s_a") = Coms_a.Text
.Fields("f") = comf.Text
.Fields("t") = Comt.Text
.Fields("dep") = DTPicker1.Value
.Fields("ret") = DTPicker2.Value
.Fields("gen") = Comret.Text
.Fields("age") = Comage.Text
.Fields("cla") = Comcla.Text
.Fields("adu") = Comadu.Text
.Fields("chil") = Comchil.Text
.Update
.Close
MsgBox "Record Updated..."
End With
End Sub
Private Sub Form_Load()
loadCboData ("frmTRes")
End Sub
Private Sub Label3_Click()
End Sub
Private Sub opto_w_Click()
If opto_w.Value = True Then
Frame2.Visible = False
Else
Frame2.Visible = True
End If
End Sub
Private Sub optr_w_Click()
If optr_w.Value = True Then
Frame2.Visible = True
Else
Frame2.Visible = False
70

End If
End Sub
Private Sub txtn_of_p_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Or KeyAscii = vbKeyBack
Then
KeyAscii = 0
End If
End Sub

TICKET
Private Sub cmdcan_Click()
Unload Me
End Sub
Private Sub cmdpri_Click()
rptTicket.Show
End Sub
Private Sub Form_Load()
loadCboData ("frmTP")
End Sub

MODULES (mdlCboData)
Public Sub loadCboData(frm As String)
Dim a As Integer
Select Case frm
Case "frmTRes"
With frmTRes
.Comret.AddItem "Select"
.Comret.AddItem "Male"
.Comret.AddItem "Female"
.Comret.ListIndex = 0
.Comcla.AddItem "Select"
.Comcla.AddItem "Business"
.Comcla.AddItem "Ecomoic"
.Comcla.ListIndex = 0
.comf.AddItem "Select"
.comf.AddItem "Cairo"
.comf.AddItem "Dubai"

71

.comf.AddItem "Karachi"
.comf.AddItem "Melbourne"
.comf.AddItem "Mumbai"
.comf.AddItem "New York"
.comf.ListIndex = 0
.Coms_a.AddItem "Select"
.Coms_a.AddItem "AIR AMERICA"
.Coms_a.AddItem "AIR INDIA"
.Coms_a.AddItem "AUSTRALIAN AIRLINES"
.Coms_a.AddItem "AIR EMRITES"
.Coms_a.AddItem "AIR EGYPT"
.Coms_a.AddItem "PAKISTAN AIRLINES"
.Coms_a.ListIndex = 0
.Comt.AddItem "Select"
.Comt.AddItem "Cairo"
.Comt.AddItem "Dubai"
.Comt.AddItem "Karachi"
.Comt.AddItem "Melbourne"
.Comt.AddItem "Mumbai"
.Comt.AddItem "New York"
.Comt.ListIndex = 0
.Comage.AddItem "Select"
For a = 1 To 95
.Comage.AddItem a
Next a
.Comage.ListIndex = 0
.Comchil.AddItem "Select"
For a = 1 To 5
.Comchil.AddItem a
Next a
.Comchil.ListIndex = 0
.Comadu.AddItem "Select"
For a = 1 To 5
.Comadu.AddItem a
Next a
.Comadu.ListIndex = 0

72

End With
Case "frmTP"
With frmTP
.Comfli.AddItem "Select"
.Comfli.AddItem "AIR AMERICA"
.Comfli.AddItem "AIR INDIA"
.Comfli.AddItem "AUSTRALIAN AIRLINES"
.Comfli.AddItem "AIR EMRITES"
.Comfli.AddItem "AIR EGYPT"
.Comfli.AddItem "PAKISTAN AIRLINES"
.Comfli.ListIndex = 0
.Comdes_c.AddItem "Select"
.Comdes_c.AddItem "Cairo"
.Comdes_c.AddItem "Dubai"
.Comdes_c.AddItem "Karachi"
.Comdes_c.AddItem "Melbourne"
.Comdes_c.AddItem "Mumbai"
.Comdes_c.AddItem "New York"
.Comdes_c.ListIndex = 0
.Comdep_c.AddItem "Select"
.Comdep_c.AddItem "Cairo"
.Comdep_c.AddItem "Dubai"
.Comdep_c.AddItem "Karachi"
.Comdep_c.AddItem "Melbourne"
.Comdep_c.AddItem "Mumbai"
.Comdep_c.AddItem "New York"
.Comdep_c.ListIndex = 0
.Coms_c.AddItem "Select"
.Coms_c.AddItem "Economy"
.Coms_c.AddItem "Busniss"
.Coms_c.ListIndex = 0
End With
Case "frmRM"
With frmRM
.comr_no.AddItem "Select"
.comr_no.AddItem "1"
.comr_no.AddItem "2"
.comr_no.ListIndex = 0

73

.Comsur.AddItem "Select"
.Comsur.AddItem "Asphalt"
.Comsur.AddItem "Concrete"
.Comsur.ListIndex = 0
End With
End Select
End Sub
Private Sub Cmdde_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Passenger Name to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from air_c_in", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("p_n") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub

CHECK IN
Private Sub Com1_KeyPress(KeyAscii As Integer)
If KeyAscii >= 0 And KeyAscii <= 9 Then
Else
KeyAscii = 0
End If
End Sub

74

Private Sub Com2_KeyPress(KeyAscii As Integer)


If KeyAscii >= 0 And KeyAscii <= 9 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Com3_KeyPress(KeyAscii As Integer)
If KeyAscii >= 0 And KeyAscii <= 9 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub com4_KeyPress(KeyAscii As Integer)
If KeyAscii >= 0 And KeyAscii <= 9 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Command1_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from air_c_in", con, adOpenDynamic, adLockOptimistic
.AddNew
If chkPass.Value = vbChecked Then
.Fields("p_i_r_Pass") = chkPass.Caption
End If
If chkTicket.Value = vbChecked Then
.Fields("p_i_r_Ticket") = chkTicket.Caption
End If
If chkSecChk.Value = vbChecked Then
.Fields("b_r_SecChk") = chkSecChk.Caption
75

End If
If chkWLmt.Value = vbChecked Then
.Fields("b_r_Whgt_Lmt") = chkWLmt.Caption
End If
.Fields("s_r") = com4.Text
.Fields("s_s_r") = Com3.Text
.Fields("p_n") = Text5.Text
.Fields("f_n") = Text8.Text
.Fields("p_no") = Text7.Text
.Fields("f") = CoM1.Text
.Fields("t") = Com2.Text
.Fields("f_n") = Text8.Text
.Fields("f_n") = Text8.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Call clrTxt(frmAC)
End Sub
Private Sub Form_Load()
CoM1.AddItem "Select"
CoM1.AddItem "Cairo"
CoM1.AddItem "Dubai"
CoM1.AddItem "Karachi"
CoM1.AddItem "Melbourne"
CoM1.AddItem "Mumbai"
CoM1.AddItem "New York"
CoM1.ListIndex = 0
Com2.AddItem "Select"
Com2.AddItem "Cairo"
Com2.AddItem "Dubai"
Com2.AddItem "Karachi"
Com2.AddItem "Melbourne"
Com2.AddItem "Mumbai"
76

Com2.AddItem "New York"


Com2.ListIndex = 0
com4.AddItem "Select"
com4.AddItem "Window"
com4.AddItem "Aisle"
com4.ListIndex = 0
Com3.AddItem "Select"
Com3.AddItem "Wheel Chair"
Com3.AddItem "Baby Cradle"
Com3.AddItem "No"
Com3.ListIndex = 0
End Sub
Private Sub Text5_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Or KeyAscii = vbKeyBack
Then
KeyAscii = 0
End If
End Sub
Private Sub Text7_KeyPress(KeyAscii As Integer)
If kyas >= vbKey0 And kyas <= vbKey9 Or kyas = vbKeyBack Then
KeyAscii = 0
End If
End Sub

BORDING PASS
Private Sub Cmdde_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Name to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from bor_pass", con, adOpenDynamic, adLockOptimistic
77

.MoveFirst
While .EOF = False
If strName = .Fields("n") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub cmdsav_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from bor_pass", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("n") = txtn.Text
.Fields("s_n") = txts_n.Text
.Fields("f_n") = txtf_n.Text
.Fields("f") = comf.Text
.Fields("t") = Comt.Text
.Fields("b_t") = Txtb_t.Text
.Fields("b_tt") = Comb_tt.Text
.Fields("g_n") = Comg_n.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub cmdcan_Click()
Unload Me
End Sub
Private Sub cmdclr_Click()
Call clrTxt(frmBP)
End Sub
78

Private Sub comf_KeyPress(KeyAscii As Integer)


If KeyAscii >= 0 And KeyAscii <= 9 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub comt_KeyPress(KeyAscii As Integer)
If KeyAscii >= 0 And KeyAscii <= 9 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Comb_tt_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Comg_n_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
comf.AddItem "Select"
comf.AddItem "Cairo"
comf.AddItem "Dubai"
comf.AddItem "Karachi"
comf.AddItem "Melbourne"
comf.AddItem "Mumbai"
comf.AddItem "New York"
comf.ListIndex = 0
79

Comt.AddItem "Select"
Comt.AddItem "Cairo"
Comt.AddItem "Dubai"
Comt.AddItem "Karachi"
Comt.AddItem "Melbourne"
Comt.AddItem "Mumbai"
Comt.AddItem "New York"
Comt.ListIndex = 0
Comg_n.AddItem "Select"
Comg_n.AddItem "1"
Comg_n.AddItem "1A"
Comg_n.AddItem "1B"
Comg_n.AddItem "2"
Comg_n.AddItem "2A"
Comg_n.AddItem "2B"
Comg_n.ListIndex = 0
Comb_tt.AddItem "Select"
Comb_tt.AddItem "AM"
Comb_tt.AddItem "PM"
Comb_tt.ListIndex = 0
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Or KeyAscii = vbKeyBack
Then
KeyAscii = 0
End If
End Sub
Private Sub Txtb_t_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Or KeyAscii = vbKeyBack
Then
Else
KeyAscii = 0
End If
End Sub
Private Sub txts_n_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Or KeyAscii = vbKeyBack
Then
80

Else
KeyAscii = 0
End If
End Sub

AIR TRAFFIC CONTROL


Private Sub Cmdd_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Destinaion city Name to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from air_t_c", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("d_r_m") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub Com1_Click()
If CoM1.Text = "Select" Then
picMap.Cls
Text3.Visible = False
Else
Text3.Visible = True
picMap.Picture = LoadPicture(App.Path & "\maps\" & CoM1.Text &
".jpg")
End If
If CoM1.ListIndex = 1 Then
81

Text1.Text = 42
Text2.Text = 30
Text3.Text = 76
End If
If CoM1.ListIndex = 2 Then
Text1.Text = 45
Text2.Text = 32
Text3.Text = 78
End If
If CoM1.ListIndex = 3 Then
Text1.Text = 42
Text2.Text = 30
Text3.Text = 79
End If
If CoM1.ListIndex = 4 Then
Text1.Text = 39
Text2.Text = 20
Text3.Text = 78
End If
If CoM1.ListIndex = 5 Then
Text1.Text = 45
Text2.Text = 25
Text3.Text = 79
End If
If CoM1.ListIndex = 6 Then
Text1.Text = 15
Text2.Text = 5
Text3.Text = 80
End If
If CoM1.ListIndex = 0 Then
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End If
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
82

con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from air_t_c", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("d_r_m") = CoM1.Text
.Fields("w_m") = Text1.Text
.Fields("w_n") = Text2.Text
.Fields("a_t_c") = Text3.Text
.Fields("r_s_i") = Text4.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub Form_Load()
CoM1.AddItem "Select"
CoM1.AddItem "Cairo"
CoM1.AddItem "Dubai"
CoM1.AddItem "Karachi"
CoM1.AddItem "Melbourne"
CoM1.AddItem "Mumbai"
CoM1.AddItem "New york"
CoM1.ListIndex = 0
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
KeyAscii = KeyNum(KeyAscii)
End Sub
Private Sub Text4_KeyPress(KeyAscii As Integer)
KeyAscii = KeyNum(KeyAscii)
End Sub

CHECK OUT
Private Sub cmdclr_Click()
Call clrTxt(frmCO)
End Sub

Private Sub cmdext_Click()


83

Unload Me
End Sub
Private Sub Cmdl_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Passenger Name to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from c_out", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("n_p") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub cmdsave_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from c_out", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("n_p") = txtn_p.Text
.Fields("p_i_r_t") = chkp_i_r_t.Value
.Fields("p_i_r_p") = chkp_i_r_p.Value
.Fields("b_r_s") = Chkb_r_s.Value
84

.Fields("b_r_w") = chkb_r_w.Value
.Fields("s_s_r") = Coms_s_r.Text
.Fields("c_r") = Comc_r.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub Form_Load()
Coms_s_r.AddItem "Select"
Coms_s_r.AddItem "Wheel Chair"
Coms_s_r.AddItem "Baby Cradle"
Coms_s_r.AddItem "No"
Coms_s_r.ListIndex = 0
Comc_r.AddItem "Select"
Comc_r.AddItem "No"
Comc_r.AddItem "Estem"
Comc_r.AddItem "maruti"
Comc_r.AddItem "Indica"
Comc_r.ListIndex = 0
End Sub
Private Sub txtn_p_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Or KeyAscii = vbKeyBack
Then
KeyAscii = 0
End If
End Sub

PASSENGER DETAIL
Private Sub cmdclr_Click()
Call clrTxt(frmPD)
End Sub
Private Sub cmdei_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
85

strName = InputBox("Enter Passenger Name to Delete...")


con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from pas_det", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("nam") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub cmdsave_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from pas_det", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("nam") = txtname.Text
.Fields("air") = txtname.Text
.Fields("f_n") = txtf_n.Text
.Fields("d_d") = DTPicker1.Value
.Fields("d_t") = txtd_t.Text
.Fields("a_d") = DTPicker2.Value
.Fields("a_t") = txta_d.Text
.Fields("dep_c") = Comdep_c.Text
.Fields("des_c") = Comdes_c.Text
.Fields("t_o") = Comt_o.Text
.Fields("s_c") = Coms_c.Text
.Update
86

.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub cmdupd_Click()
'nam
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from pas_det where nam='" & txtname.Text & "'", con,
adOpenDynamic, adLockOptimistic
.AddNew
.Fields("nam") = txtname.Text
.Fields("air") = txtname.Text
.Fields("f_n") = txtf_n.Text
.Fields("d_d") = DTPicker1.Value
.Fields("d_t") = txtd_t.Text
.Fields("a_d") = DTPicker2.Value
.Fields("a_t") = txta_d.Text
.Fields("dep_c") = Comdep_c.Text
.Fields("des_c") = Comdes_c.Text
.Fields("t_o") = Comt_o.Text
.Fields("s_c") = Coms_c.Text
.Update
.Close
MsgBox "Record Updated..."
End With
End Sub
Private Sub Form_Load()
Comair.AddItem "Select"
Comair.AddItem "AIR AMERICA"
Comair.AddItem "AIR INDIA"
Comair.AddItem "AUSTRALIAN AIRLINES"
Comair.AddItem "AIR EMRITES"
Comair.AddItem "AIR EGYPT"
87

Comair.AddItem "PAKISTAN AIRLINES"


Comair.ListIndex = 0
Comdes_c.AddItem "Select"
Comdes_c.AddItem "Cairo"
Comdes_c.AddItem "Dubai"
Comdes_c.AddItem "Karachi"
Comdes_c.AddItem "Melbourne"
Comdes_c.AddItem "Mumbai"
Comdes_c.AddItem "New York"
Comdes_c.ListIndex = 0
Comdep_c.AddItem "Select"
Comdep_c.AddItem "Cairo"
Comdep_c.AddItem "Dubai"
Comdep_c.AddItem "Karachi"
Comdep_c.AddItem "Melbourne"
Comdep_c.AddItem "Mumbai"
Comdep_c.AddItem "New York"
Comdep_c.ListIndex = 0
Comdes_c.AddItem "Select"
Comdes_c.AddItem "One way"
Comdes_c.AddItem "Round trip"
Comdes_c.ListIndex = 0
Coms_c.AddItem "Select"
Coms_c.AddItem "Business class"
Coms_c.AddItem "Economic class"
Coms_c.ListIndex = 0
Comt_o.AddItem "Select"
Comt_o.AddItem "One Way"
Comt_o.AddItem "Round Trip"
Comt_o.ListIndex = 0
End Sub

AIRPORT SERVICES
Dim s As Variant

88

Private Sub cmdext_Click()


Unload Me
End Sub
Private Sub cmdForExc_Click()
frmEX.Show
End Sub
Private Sub Command1_Click()
frmhot.Show
End Sub
Private Sub Command2_Click()
frmsho.Show
End Sub
Private Sub Command4_Click()
frmeres.Show
End Sub
Private Sub Command6_Click()
s = MsgBox("Are You really want to Exit", vbYesNo)
If s = vbYes Then
Unload Me
End If
End Sub
Private Sub Form_Load()
End Sub

1) HOTEL
Private Sub cmdcan_Click()
Unload Me
End Sub
Private Sub cmdcle_Click()
Call clrTxt(frmhot)
End Sub
Private Sub cmder_Click()

89

Dim con As ADODB.Connection


Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Serial no to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from hot_res", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("sr_no") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub cmdsave_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from hot_res", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("sr_no") = txtsr_no.Text
.Fields("c_name") = txtc_name.Text
.Fields("add") = txtadd.Text
.Fields("p_no") = txtp_no.Text
.Fields("m_no") = txtm_no.Text
.Fields("res_no") = txtres_no.Text
.Fields("p_of_r") = txtp_of_r.Text
.Fields("r_t") = comr_t.Text
90

.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub Form_Load()
comr_t.AddItem "Select"
comr_t.AddItem "Ac"
comr_t.AddItem "Non Ac"
comr_t.ListIndex = 0
End Sub

2) SHOPPING
Dim i As Integer
Private Sub cmdAdd_Click()
With fgShopBill
.Rows = .Rows + 1
.TextMatrix(i, 0) = cboProduct.Text
.TextMatrix(i, 1) = txtQty.Text
.TextMatrix(i, 2) = txtRate.Text
.TextMatrix(i, 3) = txtTotal.Text
i=i+1
End With
End Sub
Private Sub cmdsave_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from shop", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("sr_no") = txtsr.Text
.Fields("date") = DTPicker1.Value
91

.Fields("pay") = CoM1.Text
.Fields("s_p") = cboProduct.Text
.Fields("q") = txtQty.Text
.Fields("r") = txtRate.Text
.Fields("t") = txtTotal.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub Cmdt_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Serial no to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from shop", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("sr_no") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Load()
i=1
92

fgShopBill.FormatString = "Product Name |Quntity|Rate|Total"


cboProduct.AddItem "Select"
cboProduct.AddItem "Jeans"
cboProduct.AddItem "Tshirts"
cboProduct.AddItem "Watch "
cboProduct.AddItem "Cell Phone"
cboProduct.AddItem "pens"
cboProduct.AddItem "camera"
cboProduct.ListIndex = 0
CoM1.AddItem "Select"
CoM1.AddItem "Cash"
CoM1.AddItem "Credit card"
CoM1.AddItem "Debit Card"
CoM1.ListIndex = 0
End Sub
Private Sub print_Click()
Call clrTxt(frmsho)
End Sub
Private Sub save_Click()
rptShop.Show
End Sub
Private Sub txtRate_LostFocus()
txtTotal.Text = Val(txtQty.Text) * Val(txtRate.Text)
End Sub

3) FOREING EXCHANGE
Private Sub cmdclr_Click()
Call clrTxt(Me)
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub cmdConvt_Click()
If cboFrom.Text = "Dollar(us)" And cboTo.Text = "Rupee(ind)" Then
txtTo.Text = Val(txtFrom.Text) * 48
End If
93

If cboFrom.Text = "Dollar(aus)" And cboTo.Text = "Rupee(ind)" Then


txtTo.Text = Val(txtFrom.Text) * 32
End If
If cboFrom.Text = "Dirham" And cboTo.Text = "Rupee(ind)" Then
txtTo.Text = Val(txtFrom.Text) * 11.6
End If
If cboFrom.Text = "Rupee(pak)" And cboTo.Text = "Rupee(ind)" Then
txtTo.Text = Val(txtFrom.Text) * 0.6
End If
If cboFrom.Text = "Pound" And cboTo.Text = "Rupee(ind)" Then
txtTo.Text = Val(txtFrom.Text) * 35
End If
End Sub
Private Sub cmdext_Click()
Unload Me
End Sub
Private Sub Form_Load()
cboFrom.AddItem "Select"
cboFrom.AddItem "Dollar(us)"
cboFrom.AddItem "Rupee(ind)"
cboFrom.AddItem "Pound"
cboFrom.AddItem "Dirham"
cboFrom.AddItem "Rupee(pak)"
cboFrom.AddItem "Dollar(aus)"
cboTo.AddItem "Select"
cboTo.AddItem "Dollar(us)"
cboTo.AddItem "Rupee(ind)"
cboTo.AddItem "Pound"
cboTo.AddItem "Dirham"
cboTo.AddItem "Rupee(pak)"
cboTo.AddItem "Dollar(aus)"
cboFrom.ListIndex = 0
cboTo.ListIndex = 0
End Sub
Private Sub txtFrom_KeyPress(KeyAscii As Integer)
KeyAscii = KeyNum(KeyAscii)
End Sub
Private Sub txtTo_KeyPress(KeyAscii As Integer)
KeyAscii = KeyNum(KeyAscii)
94

End Sub

4) MEALS AND REFRESHMANT


Private Sub cancel_Click()
Unload Me
End Sub
Private Sub Ccomd_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Order no to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from meals_ref", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("o_no") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub clear_Click()
Call clrTxt(frmeres)
End Sub

Private Sub Comc_dr_Click()


If Comc_dr.Text = "Sprit" Then
txtcd.Text = "15"
ElseIf Comc_dr.Text = "Coca cola" Then
95

txtcd.Text = "15"
ElseIf Comc_dr.Text = "Pepsi" Then
txtcd.Text = "15"
ElseIf Comc_dr.Text = "Fanta" Then
txtcd.Text = "15"
ElseIf Comc_dr.Text = "limca" Then
txtcd.Text = "15"
Else
txtcd.Text = "0"
End If
End Sub
Private Sub Comh_d_Click()
If Comh_d.Text = "Coffee" Then
txthd.Text = "20"
ElseIf Comh_d.Text = "Tea" Then
txthd.Text = "10"
Else
txthd.Text = "0"
End If
End Sub
Private Sub Comi_c_Click()
If Comi_c.Text = "Vanila" Then
txtic.Text = "20"
ElseIf Comi_c.Text = "Chocodip" Then
txtic.Text = "25"
ElseIf Comi_c.Text = "Strawbery" Then
txtic.Text = "30"
ElseIf Comi_c.Text = "chacobar" Then
txtic.Text = "15"
ElseIf Comi_c.Text = "mango" Then
txtic.Text = "30"
Else
txtic.Text = "0"
End If
txttot.Text = Val(txtSoup.Text) + Val(txtsn.Text) + Val(txthd.Text) +
Val(txtcd.Text) + Val(txtic.Text)
End Sub
Private Sub Comsn_Click()
If Comsn.Text = "Samosa" Then
96

txtsn.Text = "10"
ElseIf Comsn.Text = "Burger" Then
txtsn.Text = "12"
ElseIf Comsn.Text = "Sandwhich" Then
txtsn.Text = "15"
ElseIf Comsn.Text = "Piza" Then
txtsn.Text = "50"
Else
txtsn.Text = "0"
End If
End Sub
Private Sub Comso_Click()
If Comso.Text = "Tomato Soup" Then
txtSoup.Text = "15"
ElseIf Comso.Text = "Chiken Soup" Then
txtSoup.Text = "25"
Else
txtSoup.Text = "0"
End If
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Comso.AddItem "Select"
Comso.AddItem "Tomato Soup"
Comso.AddItem "Chiken Soup"
Comso.ListIndex = 0
Comc_dr.AddItem "Select"
Comc_dr.AddItem "Sprit"
Comc_dr.AddItem "Coca cola"
Comc_dr.AddItem "Pepsi"
Comc_dr.AddItem "Fanta"
Comc_dr.AddItem "limca"
Comc_dr.ListIndex = 0
Comi_c.AddItem "Select"
Comi_c.AddItem "Vanila"
97

Comi_c.AddItem "Chocodip"
Comi_c.AddItem "Strawbery"
Comi_c.AddItem "chacobar"
Comi_c.AddItem "mango"
Comi_c.ListIndex = 0
Comsn.AddItem "Select"
Comsn.AddItem "Samosa"
Comsn.AddItem "Burger"
Comsn.AddItem "Sandwhich"
Comsn.AddItem "Piza"
Comsn.ListIndex = 0
Compay.AddItem "Select"
Compay.AddItem "Cash"
Compay.AddItem "Debit card"
Compay.AddItem "Credit card"
Compay.ListIndex = 0
Comh_d.AddItem "Select"
Comh_d.AddItem "Tea"
Comh_d.AddItem "Coffee"
Comh_d.ListIndex = 0
End Sub
Private Sub save_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from meals_ref", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("o_no") = txto_n.Text
.Fields("c_dr") = Comc_dr.Text
.Fields("so") = Comso.Text
.Fields("i_c") = Comi_c.Text
.Fields("sn") = Comsn.Text
98

.Fields("tot") = txttot.Text
.Fields("h_d") = Comh_d.Text
.Fields("pay") = Compay.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub

FLIGHT MAINTENANCE
Private Sub exit_Click()
Unload Me
End Sub
Private Sub cmdclr_Click()
Call clrTxt(Frmfm)
End Sub
Private Sub Cmdel_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Flight no to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from fli_man", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("f_no") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
99

Private Sub cmdext_Click()


Unload Me
End Sub
Private Sub cmdsave_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from fli_man", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("f_no") = txtf_no.Text
.Fields("f_t") = Comf_t.Text
.Fields("a_f_s") = chka_f_s.Value
.Fields("e_s") = chke_s.Value
.Fields("a_p_s") = chka_p_s.Value
.Fields("r_c_s") = chkr_c_s.Value
.Fields("e_sy") = chke_sy.Value
.Fields("r_s") = chkr_s.Value
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub Form_Load()
Comf_t.AddItem "Select"
Comf_t.AddItem "Passenger Flight"
Comf_t.AddItem "Charted"
Comf_t.AddItem "Cargo"
Comf_t.ListIndex = 0
End Sub

RUNWAY MAINTENANCE
100

Private Sub cmdclo_Click()


Unload Me
End Sub
Private Sub Form_Load()
loadCboData ("frmRM")
End Sub

MODULES (mdlfun1)
Public Sub loadcbo(cbo As ComboBox)
cbo.AddItem "--Select--"
Select Case cbo.Name
Case "cboFrom"
cbo.AddItem "India"
cbo.AddItem "United state of Amarica"
End Select
cbo.ListIndex = 0
End Sub
Public Function KeyNum(kyas As Integer) As Integer
If kyas >= vbKey0 And kyas <= vbKey9 Or kyas = vbKeyBack Then
KeyNum = kyas
Else
KeyNum = 0
End If
End Function
Public Sub clrTxt(frm As Form)
Dim ctrl As Control
For Each ctrl In frm
If TypeOf ctrl Is TextBox Then
ctrl.Text = ""
End If
If TypeOf ctrl Is ComboBox Then
ctrl.Text = "Select"
End If
If TypeOf ctrl Is CheckBox Then
ctrl.Value = vbUnchecked
End If
101

Next ctrl
End Sub

CONCLUSION
GIVE YOUR BEST THEN BEST WILL COME TO
YOU.
At the beginning phase implementation of the system was difficult and the users
were unknown about the new systems, but when they came to know the miracles of
the systems, they became more interested in it. The reason for this is illiteracy of the
computer. Giving training and teaching about computer fundamentals to the user can
solve this problem.
When any system is implemented, the users satisfaction should be given first
priority for the system adapter. The Programmer gets satisfaction when the user gives
satisfied reports. We tried our level best in this project to reduce physical efforts of the
user and satisfy them. Now a days the projects are prepared so carefully that even the
wrong information is immediately detected and only correct entries are accepted.

102

References

1. MS-ACCESS
Author - IRON BAY ROSS
2. DATA SYSTEM CONCEPT
Author HENRY KORTH
3. VISUL BASIC 6.0
Author- GERG PERRY

103

104

EXPERTS OPINION

SIGNATURE
105

Вам также может понравиться