Professional Documents
Culture Documents
Airline Reservation System ARS Project
Airline Reservation System ARS Project
A SEMINAR PRESENTED
BY
DICK PERE ILAYE
CS/06/076
SUBMITTED TO THE DEPARTMENT OF COMPUTER SCIENCE, FACULTY OF NATURAL SCIENCE, MAD
ONNA UNIVERSITY, ELELE CAMPUS
IN PARTIAL FULLFILMENT OF THE REQUIRMENTS FOR THE AWARD OF BACHELOR OF SCIENCE (
B.Sc) DEGREE IN COMPUTER SCIENCE
SUPERVISOR:
EZEKWE, C. (MRS)
JANUARY, 2010
CERTIFICATION This is to certify that I, DICK PERE ILAYE, CS/06/076 carried out
this seminar work on the topic Computerized Reservation System, in Partial Fulfill
ment for the award of Bachelor of Science in Computer Science. I did this semina
r work and it has not been submitted elsewhere for the award of a Certificate, D
iploma or Degree.
____________________________ DICK PERE ILAYE (Student)
________________________ Date
___________________________ Mrs. EZEKWE CHINWE (Supervisor)
________________________ Date
__________________________ Mr. ATABONG TIMOTHY A. (Head of Department)
________________________ Date
ACKNOWLEDGEMENTS I thank God Almighty for his infinite love and mercy. I also si
eve this opportunity to thank my supervisor Mrs. Ezekwe C. for her immense contr
ibution academically in approving this thesis and also being there to correct, s
uggest and support my ideas throughout the period of compilation. Furthermore, I
thank my parents Cmdr. and Mrs. Pere Dick for their contributions spiritually,
morally and financially. My entire family and friends are also not forgotten her
e; I appreciate all of you. God Bless you all.
and airline agencies through the use of ARSs, thereby easing the flight ticketin
g and selling process. 1.4 SIGNIFICANCE AND LIMITATION OF THE STUDY
This research work will be beneficial to all those who make use of Airline Reser
vation Systems (ARSs), flight operators, air traveling operators, travel agents
and airline agencies. In addition, it will assist all those in computer-related
disciplines who may want to appreciate the system and also those doing research
on similar topic. 1.5 SCOPE OF THE STUDY
This thesis is not only restricted to Airline Reservation Systems (ARSes), but a
lso other systems dedicated to the optimal performance in the airline industry;
airline agencies and their customers inclusive.
2.4
HISTORY OF AIRLINE RESERVATION SYSTEM (ARS)
American Airlines was the first to establish an automated booking system in 1946
. Using a system to track information and improve efficiency was a highly appeal
ing aim in the industry, and drew the attention of other airlines worldwide. The
system endured years of development and alterations. Trans-Canada Airlines deve
loped a computer-based system with remote terminals that eventually took over op
erations in 1953. The same year, American Airlines worked closely with IBM to de
velop an improved system, and the Airline Reservation System (ARS) and the SemiAutomatic Business Research System (SABRE) launched thereafter in 1960. The netw
ork completed set-up in 1964, and it was recognized as the largest data processi
ng system in existence. Later, other airlines invested more in research and deve
lopment to launch improved systems, and through the late 1960s and early 1970s,
airlines established their own systems. United Airlines developed the Apollo Res
ervation System, and shortly after allowed travel agents access. The Apollo syst
em was the foundation for many further developments, which spread from just US a
irlines to European airlines as well. The research and development of Airline Re
servation System became a significant aspect of the industry and all its air car
rier companies, and partnerships between airlines and technology gurus emerged.
(Morrison, Winston 1995)
Other airlines soon established their own systems. Delta Air Lines launched the
Delta Automated Travel Account System (DATAS) in 1968. United Airlines and Trans
World Airlines followed in 1971 with the Apollo Reservation System and Programm
ed Airline Reservation System (PARS), respectively. Soon, travel agents began pu
shing for a system that could automate their side of the process by accessing th
e various ARSes directly to make reservations. Fearful this would place too much
power in the hands of agents, American Airlines executive Robert Crandall propo
sed creating an industry-wide Computer Reservation System to be a central cleari
nghouse for U.S. travel; other airlines demurred, citing fear of antitrust prose
cution. (Wikipedia, 2010)
CHAPTER THREE RESEARCH METHODOLOGY AND SYSTEMS ANALYSIS 3.1 RESEARCH METHODOLOGY
Research methodology is the method of collection of data and information as a re
search tool. There are two main methods of data collection. They are Primary and
Secondary Data Collection Methods. (Atabong, T. A., 2009) 3.1.1 Primary Data Co
llection Method
This includes information and data from existing documents such as journals, art
icles, periodicals, etc. They are fixed and sometimes outdated or generally upda
ted periodically at intervals. 3.1.2 Secondary Data Collection Method This type
of data collection is more specific. It involves gathering information on the cu
rrent status of the problem in discussion. It includes oral/personal interviews,
observation and use of questionnaires to collect and gather information and dat
a on a particular subject. The information and data gathered are usually up-to-d
ate and precise. The methodologies employed in this thesis were drawn from both
secondary and primary data collection methods these involve articles and periodi
cals collected from Internet and observation and personal interview. Visits were
made to some air travel agencies and personal interviews were conducted with to
p management staff of these agencies. Agencies visited include, Aero Contractors
, NimiAir Nigeria and TarilaTravels Nigeria Limited.
3.2
SYSTEMS ANALYSIS
Atabong, T. A. (2009) posits that, Systems analysis is the careful evaluation of
the individual components of an existing system with the intent of finding its w
eaknesses or problem area with cognizance to improve the systems performance and
/or develop a new better system. 3.2.1 Analysis of the Existing System The existi
ng system is a manual system. This system is very time consuming and lazy. It is
also more prone to errors and sometimes the approach to problems is unstructure
d. Below is a flowchart of the existing manual system.
START
BOOKING DEPARTMENT
Reservation system?
Flight Reservation
Ticket Reservation RESERVE TICKET
RESERVE FLIGHT
TICKET RECORD
FLIGHT RECORD
STOP
Fig. 3.1: Flowchart of Existing System
3.3
NEED FOR NEW SYSTEM
The need for the new system arose from evaluation of deficiencies of the existin
g manual system. These maladies include:
CHAPTER FOUR SYSTEM DESIGN This chapter deals with the way data and information
are analyzed and processed in design of the Airline Reservation System. It also
covers the harmonic cooperation of the input and output and thus, encompasses th
e different steps involved in the development of the system and how constituent
controls are designed and implemented with reference to the design of the databa
se. 4.1 INPUT DESIGN
Here, the various input on forms used in the development and design of the new s
ystem are specified. The input is basically done by clicking a Command button on
the form, typing into TextBoxes or changing the value of Comboboxes. The follow
ing are the different forms input design of the new system. 4.1.1 Home Form Input
Design (frmHome)
ImageBox1
LabelBox1
ImageBox2
LabelBox12
Calendar
ImageBox3
Command1 (cmdFlightReservation)
Command2 (cmdTicketReservation)
TextBox2 Command3 (cmdEnquiry) Command4 (cmdCancelReservation)
Command5 (cmdExit)
Command6 (cmdAdmin)
Fig 4.1: Diagram of Home Form Input Design
LabelBox3
ComboBox3
TextBox12
TextBox13
Command6
LabelBox4 Frame1
ComboBox5 ComboBox6
Frame2 TxtBox1 TxtBox1
Frame3
TxtBox17 TxtBox19
Command2
Command3
Fig 4.3: Diagram of Flight Reservation Form Input Design
Command2
Command3
Fig 4.3: Diagram of Cancel Reservation Form Input Design
4.2
OUTPUT DESIGN
The output of the system deals with the way information/data are being retrieved
from the database. It is designed in such a way to ensure close connection and
easy communication between input forms, output forms and the database engine. Ad
ministrator Form Input Design (frmAdmin)
LabelBox1
ImageBox2
LabelBox12
Calendar
Command1 (cmdTicket) Command2 (cmdFlight)
DataGrid1
Command3 (cmdHome)
Fig 4.3: Diagram of Administrator Form Input Design
4.3
DATABASE DESIGN
4.3.1 Database A database is a collection of related records. There are various
types of database in use today (Relational Database, Sequential Filing System, R
andom Filing system, etc.). In this thesis, the type of database used is the Mic
rosoft Access 2007 relational database. It is used to hold records
concerning flight schedule and reservation and ticket reservation. Below is list
of the tables designed in the database.
FIELDS DESCRIPTION ID Automatic numbering of records in the table TicketNumber P
assenger Ticket Number PNR Passenger Number PassengerName Name of Passenger DOBi
rth Date of birth of passenger Gender Gender of passenger Address Address of pas
senger Profession Profession of passenger Phone Mobile or telephone number of pa
ssenger Email Email address of passenger FlightName Flight name FlightCode Code
of flight ClassName Name of flight class ClassCode Code of flight class From Sou
rce of travel To Destination DepTiime Time of departure from source ArrTime Time
of arrival at destination Fare Amount paid as flying fee ConCategory Concession
Category ConCode Concession Code ConClass Concession Class ConDiscount Concessi
on Discount amount ConValidity Concession Validity period ConBaggage Concession
Baggage allowed ConFare Concession Fare (Basic Fare) Table 4.1: ARSystem Databas
e (FlightReservation Table) FIELDS DESCRIPTION ID Automatic numbering of records
in the table TicketNumber Passenger Ticket Number PNR Passenger Number Passenge
rName Name of Passenger DOBirth Date of birth of passenger Gender Gender of pass
enger Address Address of passenger Profession Profession of passenger Phone Mobi
le or telephone number of passenger Email Email address of passenger KinName Nam
e of next of kin of passenger KinPhone Mobile number of next of kin of passenger
FlightName Flight name FlightCode Code of flight ClassName Name of flight class
ClassCode Code of flight class SeatNo Passenger seat number BasicFare Basic amo
unt paid as fee for flying Table 4.1: ARSystem Database (FlightReservation Table
) DATATYPE Autonumber Number(6) Number(4) Text(30) Date(10) Text(8) Text(100) Te
xt(15) Number(14) Text(30) Alphanumeric(10) Alphanumeric(6) Text(15) Alphanumeri
c(8) Text(20) Text(20) Text(12) Text(12) Currency(9) Text(15) Text(2) Text(20) N
umber(9) Date(15) Number(5) Alphanumeric(9)
DATATYPE Autonumber Number(6) Number(4) Text(30) Date(10) Text(8) Text(100) Text
(15) Number(14) Text(30) Alphanumeric(10) Alphanumeric(6) Text(15) Alphanumeric(
8) Autonumber Number(6) Number(4) Alphanumeric(9)
5.4
SYSTEM REQUIREMENT
The system requirement given below covers the minimum system specification requi
red to run the new system. a. Pentium III processor or higher b. 1.5 Gigahertz P
rocessor Speed or Higher c. 256 Megabyte of memory (RAM) d. 10 Gigabyte Hard Dis
k (Storage) e. CD ROM Drive f. Keyboard g. Visual Display Unit h. Mice 5.5 SYSTE
M TESTING
Before any system or software is deemed correct, it must be tested for bugs and
made error free. This system is not exceptional. Since humans are imperfect, dur
ing coding and testing, errors were debugged. These errors range from wrong data
type declaration, invalid variable names, value range overflow, etc. After whic
h, the program is made executable by selecting File menu form the VB 6.0 applica
tion window menu bar, and selecting make ProjectName.exe (in this case, make ARS
ystem.exe). 5.6 SYSTEM PACKAGING
In order to internationalize a new system, the system must be packaged. After ma
king the new system executable as mentioned above, the next step is packaging. P
ackaging means making the new system compatible on different platforms/machines.
Furthermore, packaging in VB 6.0 requires using another component of the Visual
Studio 6.0 application called Package and
Deployment Wizard in the Visual Studio 6.0 Tools application folder which can be
found on the Start menu of any computer system. This is easily done by followin
g commands in the packaging tools wizard. And finally, the packaged application
is saved into flash disks or written to CDs for easy transfer from one system to
another. 5.7 SYSTEM INSTALLATION
Before installing the application into any system, the system must have either a
CDROM Drive to allow installation from CD. 5.7.2 Installation from CDROM Drive
2. Insert the CD containing the application into CDROM Drive 3. Allow the CD to
autorun 4. Open the folder containing the application (ARSystem folder) 5. Run t
he ARSystem.exe executable file 6. Follow the instructions on the installation w
izard 7. Run the application from the Startup Menu after successful installation
. 5.8 SYSTEM DOCUMENTATION
System documentation is a record of the processes involved in developing the new
system from the analysis of any existing system to the design and implementatio
n of the new system covering any errors encountered and how to troubleshoot the
new system.
APPENDIX I
tmrPlane control to perform scrolling marquee action on form for airplane image
imgPlane.Top = imgPlane.Top - 100 imgPlane.Left = imgPlane.Left + 50 If imgPlan
e.Top = -1500 Then imgPlane.Left = 5440 tmrPlane3.Enabled = False tmrPlane.Enabl
ed = False tmrPlane2.Enabled = False tmrPlane4.Enabled = True mintTimeCheck = 0
Call tmrPlane4_Timer End If End Sub Private Sub tmrPlane4_Timer() tmrPlane cont
rol to perform scrolling marquee action on form for airplane image imgPlane.Top
= imgPlane.Top imgPlane.Left = 5440 mintTimeCheck = mintTimeCheck + 1 If mintTim
eCheck = 10 Then tmrPlane4.Enabled = False tmrPlane3.Enabled = False tmrPlane2.E
nabled = False imgPlane.Top = -1500 imgPlane.Left = 5440 tmrPlane.Enabled = True
Call tmrPlane_Timer End If End Sub
in an interval of 150 if the right end of imgGlobe on the form is 3950, trans
fer control to tmrGlobe to repeat the entire process, else continue subroutine l
blMessage.ForeColor = vbBlack imgGlobe.Left = imgGlobe.Left + 100 lblMessage.Lef
t = lblMessage.Left + 100 If lblMessage.Left = 4500 Then tmrGlobe1.Enabled = Fal
se tmrGlobe.Enabled = True Call tmrGlobe_Timer Exit Sub End If End Sub Private S
ub txtFirstName_Change() Dim intTicketNumber As Integer Dim intIndexTNumber As I
nteger Dim intNameCode1 As Integer automatically generate ticket numbers using
ASCII random numbers with reference to letters of name of passenger intNameCode
1 = 0 For intIndexTNumber = 1 To Len(txtFirstName.Text) intNameCode1 = Asc(Len(t
xtFirstName.Text)) intTicketNumber = (10000 * Rnd) + (intNameCode1 * 100) txtTic
ketNumber.Text = Str(Val(intTicketNumber)) Next intIndexTNumber End Sub Private
Sub txtLastName_Lostfocus() Dim intTicketNumber As Integer Dim intRndNumber As I
nteger Dim intRndNumber2 As Integer Dim strNameCode As String Dim strAlpha As St
ring if the last value of ticketnumber is alphabet then do nothing, else conca
tenate ticketnumber with random alphabet from passengers last name If Not IsNum
eric(Right(txtTicketNumber.Text, 1)) Then Exit Sub End If display a messag box
if lastname field is empty it also uses lastname string to determine last two c
haracters in ticketnumber alphanumeric field If txtLastName.Text = "" Then MsgB
ox "Please enter Last Name", vbOKOnly + vbInformation, "INVALID INPUT" Exit Sub
Else automatically add two characters to the end of txtTicketNumber two charac
ters are generated randomly from characters in the last name field intRndNumber
= (10 * Asc(Rnd)) / 10 intRndNumber = Right(Str(intRndNumber), 1) If intRndNumb
er > Len(txtLastName.Text) Then intRndNumber = intRndNumber - Len(txtLastName.Te
xt) Else do nothing intRndNumber = intRndNumber End If truncate the lastname f
ield to get two characters which are used as the last two values in the ticket
number field strNameCode = Mid((txtLastName.Text), intRndNumber, 1) strAlpha = U
Case(strNameCode) strNameCode = strNameCode & Left(txtLastName.Text, 1) strAlpha
= UCase(strNameCode) txtTicketNumber.Text = txtTicketNumber.Text & strAlpha End
If End Sub Public Sub InitializeFormProperty() Dim strTickNumber As String Dim
intIndex As Integer Dim intIndex1 As Integer Dim intIndex2 As Integer Dim intInd
ex3 As Integer Dim intIndex4 As Integer Dim intIndex5 As Integer Dim intHourInde
x1 As Integer Dim intHourIndex2 As Integer Dim intMinIndex1 As Integer Dim intMi
nIndex2 As Integer retain value of modula integer mintRndNumber = mintRndNumber
mintNameCode1 = mintNameCode1 reset values of all fields on form txtTicketNumb
er.Text = "" txtPIN.Text = "" txtFirstName.Text = "" txtLastName.Text = "" txtMi
dName.Text = "" txtAddress.Text = "" txtDOBirth.Text = "" txtEmail.Text = "" txt
Phone.Text = ""
End With End Sub Private Sub txtSeat_lostfocus() Dim strSearchCriteria As String
if flight name field is empty, don t search If cboFlightName.Text = "" Then d
o nothing Exit Sub End If search in flight database for availability of seat If
cboFlightName.Text = "IC1" Then strSearchCriteria = txtSeat.Text adoIC1.Refresh
If adoIC1.Recordset.EOF Then If adoIC1.Recordset.BOF Then do nothing Else adoI
C1.Recordset.MoveFirst End If End If adoIC1.Recordset.Find "SeatNo = " & strSea
rchCriteria & " ", 0, adSearchForward If adoIC1.Recordset.EOF Then do nothing E
xit Sub Else MsgBox "Seat Number has already been sold out!" & vbCrLf & "Please
book another seat", vbExclamation + vbOKOnly, "SEAT NOT AVAILABLE" txtSeat.SetFo
cus Exit Sub End If End If If cboFlightName.Text = "IC2" Then strSearchCriteria
= txtSeat.Text adoIC2.Refresh If adoIC2.Recordset.BOF Then If adoIC2.Recordset.E
OF Then do nothing Else adoIC2.Recordset.MoveFirst End If End If adoIC2.Records
et.Find "SeatNo = " & strSearchCriteria & " ", 0, adSearchForward If adoIC2.Rec
ordset.EOF Then do nothing
Exit Sub Else MsgBox "Seat Number has already been sold out!" & vbCrLf & "Please
book another seat", vbExclamation + vbOKOnly, "SEAT NOT AVAILABLE" txtSeat.SetF
ocus Exit Sub End If End If If cboFlightName.Text = "CD1" Then strSearchCriteria
= txtSeat.Text adoCD1.Refresh If adoCD1.Recordset.BOF Then If adoCD1.Recordset.
EOF Then do nothing Else adoCD1.Recordset.MoveFirst End If End If adoCD1.Record
set.Find "SeatNo = " & strSearchCriteria & " ", 0, adSearchForward If adoCD1.Re
cordset.EOF Then do nothing Exit Sub Else MsgBox "Seat Number has already been
sold out!" & vbCrLf & "Please book another seat", vbExclamation + vbOKOnly, "SEA
T NOT AVAILABLE" txtSeat.SetFocus Exit Sub End If End If If cboFlightName.Text =
"CD2" Then strSearchCriteria = txtSeat.Text adoCD2.Refresh If adoCD2.Recordset.
EOF Then If adoCD2.Recordset.BOF Then do nothing Else adoCD1.Recordset.MoveFirs
t End If End If adoCD2.Recordset.Find "SeatNo = " & strSearchCriteria & " ", 0,
adSearchForward If adoCD2.Recordset.EOF Then do nothing Exit Sub Else MsgBox "
Seat Number has already been sold out!" & vbCrLf & "Please book another seat", v
bExclamation + vbOKOnly, "SEAT NOT AVAILABLE" txtSeat.SetFocus
End If adoCD2.Recordset.Find "PNR = " & strSearchCriteria & " ", 0, adSearchFor
ward If adoIC1.Recordset.EOF Then do nothing End If With adoCD2.Recordset .Fiel
ds(1).Value = Text1.Text .Fields(2).Value = cboFlightName.Text .Fields(3).Value
= Text9.Text .Fields(4).Value = cboClassName.Text .Fields(5).Value = Text11.Text
.Fields(6).Value = Text12.Text .Fields(7).Value = Text13(0).Text .Fields(8).Val
ue = Text13(1).Text .Fields(9).Value = Text18.Text .Fields(10).Value = Format(No
w, "DD/MM/YYYY") .Update End With adoCD2.Refresh End If If cboFlightName.Text =
"CD3" Then strSearchCriteria = txtPIN.Text adoCD3.Refresh If adoCD3.Recordset.BO
F Then If adoCD3.Recordset.EOF Then do nothing Else adoCD3.Recordset.MoveFirst
End If End If adoCD3.Recordset.Find "PNR = " & strSearchCriteria & " ", 0, adSe
archForward If adoIC1.Recordset.EOF Then do nothing End If With adoCD3.Recordse
t .Fields(1).Value = Text1.Text .Fields(2).Value = cboFlightName.Text .Fields(3)
.Value = Text9.Text .Fields(4).Value = cboClassName.Text .Fields(5).Value = Text
11.Text .Fields(6).Value = Text12.Text .Fields(7).Value = Text13(0).Text .Fields
(8).Value = Text13(1).Text .Fields(9).Value = Text18.Text .Fields(10).Value = Fo
rmat(Now, "DD/MM/YYYY") .Update End With adoCD3.Refresh
End Sub Private Sub lblCancelReservation_Click() close current form and display
cancelreservation form frmCancelReservation.Show Unload Me End Sub Private Sub
lblEnquiry_Click() close current form and show enquiry form frmEnquiry.Show Unl
oad Me End Sub Private Sub lblTicketReservation_Click() close current form and
show frmTicketReservation frmTicketReservation.Show Unload Me End Sub Private Su
b lblclose_Click() close current form Load frmHome frmHome.Show Me.Hide End Sub
Private Sub Timer1_Timer() Dim strTime As String set value of variable strTime
to current time set lblTime caption property to variable strTime to enable it
display current time strTime = Format(Now, "HH:MM:SS ampm") lblTime.Caption = st
rTime End Sub Private Sub tmrGlobe_Timer() move the position of imgGlobe toward
s to left end by 100 twips in an interval of 150 if the left end of imgGlobe o
n the form is 150, transfer control to tmrGlobe1, else continue subroutine lblM
essage.ForeColor = vbRed imgGlobe.Left = imgGlobe.Left - 100 lblMessage.Left = l
blMessage.Left - 100 If lblMessage.Left = 200 Then tmrGlobe.Enabled = False
tmrGlobe1.Enabled = True Call tmrGlobe1_Timer Exit Sub End If End Sub Private Su
b tmrGlobe1_Timer() move the position of imgGlobe towards the right end by 100
twips in an interval of 150 if the right end of imgGlobe on the form is 3950,
transfer control to tmrGlobe to repeat the entire process, else continue subrou
tine lblMessage.ForeColor = vbBlack imgGlobe.Left = imgGlobe.Left + 100 lblMessa
ge.Left = lblMessage.Left + 100 If lblMessage.Left = 4500 Then tmrGlobe1.Enabled
= False tmrGlobe.Enabled = True Call tmrGlobe_Timer Exit Sub End If End Sub
Private Sub Timer1_Timer() Dim strTime As String set lbltime to display current
time and update every second strTime = Format(Now, "HH:MM:SS ampm") lblTime.Cap
tion = strTime End Sub Private Sub tmrGlobe_Timer() move the position of imgGlo
be towards to left end by 100 twips in an interval of 150 if the left end of i
mgGlobe on the form is 150, transfer control to tmrGlobe1, else continue subrou
tine lblMessage.ForeColor = vbRed imgGlobe.Left = imgGlobe.Left - 100 lblMessage
.Left = lblMessage.Left - 100 If lblMessage.Left = 200 Then tmrGlobe.Enabled = F
alse tmrGlobe1.Enabled = True Call tmrGlobe1_Timer Exit Sub End If End Sub Priva
te Sub tmrGlobe1_Timer() move the position of imgGlobe towards the right end by
100 twips in an interval of 150 if the right end of imgGlobe on the form is 3
950, transfer control to tmrGlobe to repeat the entire process, else continue s
ubroutine lblMessage.ForeColor = vbBlack imgGlobe.Left = imgGlobe.Left + 100 lbl
Message.Left = lblMessage.Left + 100 If lblMessage.Left = 5500 Then tmrGlobe1.En
abled = False tmrGlobe.Enabled = True Call tmrGlobe_Timer Exit Sub End If End Su
b
If intResponse Is vbNo Then Exit Sub Exit Sub Else Else: If intResponse Is vbY
es Then perform deletion adoTicketReservation.Refresh adoTicketReservation.Recor
dset.MoveFirst adoTicketReservation.Recordset.Find "TicketNumber = " & txtTicke
tNumber.Text & " ", 0, adSearchForward adoTicketReservation.Recordset.Delete adA
ffectAllChapters If Text8.Text = "IC1" Then adoIC1.Refresh adoIC1.Recordset.Move
First adoIC1.Recordset.Find "PassengerName = " & Text1.Text & " ", 0, adSearchF
orward adoIC1.Recordset.Delete adAffectAllChapters ElseIf Text8.Text = "IC2" The
n adoIC2.Refresh adoIC2.Recordset.MoveFirst adoIC2.Recordset.Find "PassengerName
= " & Text1.Text & " ", 0, adSearchForward adoIC2.Recordset.Delete adAffectAll
Chapters ElseIf Text8.Text = "CD1" Then adoCD1.Refresh adoCD1.Recordset.MoveFirs
t adoCD1.Recordset.Find "PassengerName = " & Text1.Text & " ", 0, adSearchForwa
rd adoCD1.Recordset.Delete adAffectAllChapters ElseIf Text8.Text = "CD2" Then ad
oCD2.Refresh adoCD2.Recordset.MoveFirst adoCD2.Recordset.Find "PassengerName =
" & Text1.Text & " ", 0, adSearchForward adoCD2.Recordset.Delete adAffectAllChap
ters ElseIf Text8.Text = "CD3" Then adoCD3.Refresh adoCD3.Recordset.MoveFirst ad
oCD3.Recordset.Find "PassengerName = " & Text1.Text & " ", 0, adSearchForward a
doCD3.Recordset.Delete adAffectAllChapters End If adoSearch.Recordset.Delete adA
ffectAllChapters reset all fields on form to Null
make frame1 invisible and call Timer1_Timer to display current time Frame1.Visi
ble = False Call Timer1_Timer End Sub Private Sub lblclose_Click() close curren
t form and open home form frmHome.Show Unload Me End Sub Private Sub Timer1_Time
r() Dim strTime As String set value of variable strTime to current time set lb
lTime caption property to variable strTime to enable it display current time str
Time = Format(Now, "HH:MM:SS ampm") lblTime.Caption = strTime End Sub
Private Sub cmdHome_Click() close current form and open Home form frmHome.Show
Unload Me End Sub Private Sub cmdIC1_Click() set view to flight IC1 database dg
Flight.Visible = False dgTicket.Visible = False dgIC1.Visible = True dgIC2.Visib
le = False dgCD1.Visible = False dgCD2.Visible = False dgCD3.Visible = False End
Sub Private Sub cmdIC2_Click() set view to flight IC2 database dgFlight.Visibl
e = False dgTicket.Visible = False dgIC1.Visible = False dgIC2.Visible = True dg
CD1.Visible = False dgCD2.Visible = False dgCD3.Visible = False End Sub Private
Sub cmdTicket_Click() set view to Ticket Reservation database dgFlight.Visible
= False dgTicket.Visible = True dgIC1.Visible = False dgIC2.Visible = False dgCD
1.Visible = False dgCD2.Visible = False dgCD3.Visible = False End Sub Private Su
b Form_Load() set default database view dgFlight.Visible = True dgTicket.Visibl
e = False dgIC1.Visible = False dgIC2.Visible = False