Академический Документы
Профессиональный Документы
Культура Документы
SYSTEM (ARS)
A SEMINAR PRESENTED
BY
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 Fulfillment for the award of Bachelor of
I did this seminar work and it has not been submitted elsewhere for the award of a Certificate,
Diploma or Degree.
____________________________ ________________________
DICK PERE ILAYE Date
(Student)
___________________________ ________________________
Mrs. EZEKWE CHINWE Date
(Supervisor)
__________________________ ________________________
Mr. ATABONG TIMOTHY A. Date
(Head of Department)
DEDICATION
I thank God Almighty for his infinite love and mercy. I also sieve this opportunity to thank my
supervisor Mrs. Ezekwe C. for her immense contribution academically in approving this thesis
and also being there to correct, suggest 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 here; I appreciate all
of you. God Bless you all.
ABSTRACT
Airline Reservation Systems (ARS) used to be standalone systems. Each airline had its own
system, disconnected from other airlines or ticket agents, and usable only by a designated
number of airline employees. Travel agents in the 1970s pushed for access to the airlines'
systems. Today, air travel information is linked, stored, and retrieved by a network of Computer
Reservations Systems (CRS), accessible by multiple airlines and travel agents. The global
distribution system (GDS) makes for an even larger web of airline information, not only merging
the buying and selling of tickets for multiple airlines, but also making the systems accessible to
consumers directly. GDS portals and gateways on the Web allow consumers to purchase tickets
directly, select seats, and even book hotels and rental cars. Airline Reservation System (ARS) in
conjunction with Global Distribution System (GDS) has led to ease of airline ticketing, flight
scheduling and also provided a means for customers to access and book flights from their homes.
It has also increased the speed with which information about customers are retrieved and handled
Page
CERTIFICATION i
DEDICATION ii
ACKNOWLEDGEMENT iii
ABSTRACT iv
2.1 Introduction
1.1 Summary
1.2 Conclusion
1.3 Recommendation
REFERENCE
APPENDIX I
CHAPTER ONE
INTRODUCTION
science and technology, the desire for improvement is a constant subject which triggers
advancements. This is visible in every ramification and the airline industry is not an exemption.
Airline Reservation Systems (ARS) used to be standalone systems. Each airline had its own
system, disconnected from other airlines or ticket agents, and usable only by a designated
number of airline employees. Travel agents in the 1970s pushed for access to the airlines'
systems. Today, air travel information is linked, stored, and retrieved by a network of Computer
Reservations Systems (CRS), accessible by multiple airlines and travel agents. The global
distribution system (GDS) makes for an even larger web of airline information, not only merging
buying and selling of tickets for multiple airlines, but also making the systems accessible to
onsumers directly. GDS portals and gateways on the Web allow consumers to purchase tickets
directly, select seats, and even book hotels and rental cars. (Winston, Clifford 1995)
The outcome of this study will provide a basis for developing the appropriate approach to the
problems associated with air traveling operations in relation to Airline Reservation Systems
(ARSs).
This thesis is aimed at exposing the relevance and importance of a real-time system for Airline
Reservation Systems (ARS). It is elevated towards enhancing the relationship between customers
and airline agencies through the use of ARSs, thereby easing the flight ticketing and selling
process.
This research work will be beneficial to all those who make use of Airline Reservation 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
This thesis is not only restricted to Airline Reservation Systems (ARSes), but also other systems
dedicated to the optimal performance in the airline industry; airline agencies and their customers
inclusive.
CHAPTER TWO
LITERATURE REVIEW
2.1 INTRODUCTION
In the early days of American commercial aviation, passengers were relatively few, and each
airline's routes and fares were tightly regulated by the Civil Aeronautics Board. These were
published in a volume entitled The Official Airline Guide, from which travel agents or consumers
could construct an itinerary, then call or telex airline staff, which would mark the reservation on
a card and file it. This manual system is still used by relatively few travel agents who do not use
ARS. As demand for air travel increased and schedules grew more complex, this process became
impractical, hence, giving rise to the need of an automated reservation system called Airline
Airline Reservations System (ARS) is a computerized system used to store and retrieve
information and conduct transactions related to air travel. The systems was originally designed
and operated by airlines, but were later extended for the use of travel agencies. Major ARS
operations that book and sell tickets for multiple airlines are known as Global Distribution
Systems (GDS). Airlines have divested most of their direct holdings to dedicated GDS
companies, who make their systems accessible to consumers through Internet gateways. Modern
GDSes typically allow users to book hotel rooms and rental cars as well as airline tickets.
Global Distribution Systems (GDS) are subsystems connected to Airline Reservation Systems
(ARS) which allows users access to information on flight scheduling and reservation stored in
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 appealing aim in the industry,
and drew the attention of other airlines worldwide. The system endured years of development
terminals that eventually took over operations in 1953. The same year, American Airlines
worked closely with IBM to develop an improved system, and the Airline Reservation System
(ARS) and the Semi-Automatic Business Research System (SABRE) launched thereafter in
1960. The network completed set-up in 1964, and it was recognized as the largest data
processing system in existence. Later, other airlines invested more in research and development
to launch improved systems, and through the late 1960s and early 1970s, airlines established
their own systems. United Airlines developed the Apollo Reservation System, and shortly after
allowed travel agents access. The Apollo system was the foundation for many further
developments, which spread from just US airlines to European airlines as well. The research and
development of Airline Reservation System became a significant aspect of the industry and all its
air carrier companies, and partnerships between airlines and technology gurus emerged.
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 Programmed Airline Reservation System (PARS),
respectively. Soon, travel agents began pushing for a system that could automate their side of the
process by accessing the various ARSes directly to make reservations. Fearful this would place
too much power in the hands of agents, American Airlines executive Robert Crandall proposed
travel; other airlines demurred, citing fear of antitrust prosecution. (Wikipedia, 2010)
Airline deregulation occurred in 1978, magnifying the importance of computerized airline
reservation systems and their accessibility. During the early 1970s, as travel agents pushed for
access to reservation systems, and certain airline executives made investments for the sake of
accessing the systems of other airlines, antitrust laws came into focus. The purpose of the 1978
Airline Deregulation Act in the U.S. was to eliminate government control over commercial
aviation, and ensure competitive behavior and fair business practices in the airline industry.
Passengers could gain knowledge of market forces and new market entry in the industry.
Information on specific airlines and the industry as a whole became more widely and readily
accessible, evolving the airline reservation systems from "standalone" operations toward GDS.
Of the major types of airline reservation systems, most are linked to GDS to provide information
to travel agents, employees of other airlines, and the passengers or potential customers, directly.
The major systems include SABRE, Worldspan, Galileo, Patheo, and Abacus. American Airlines
now uses SABRE, also used by Expedia, Lastminute.com, and Travelocity. Abacus is used by
over 450 individual airlines, over 80,000 hotels, and over 25 countries in Asia. Companies like
Expedia share their system accessibility directly with consumers.Today, about six major airline
Airline Industry (Air Transport Industry): This is an area of commerce that uses aircraft to
transport people, cargo, and mail. The air transport industry encompasses flights of
services to the public) and general aviation (private aircraft used for recreation or
System: This is any collection of component elements that work together to perform a
task.
hardware system consisting of a microprocessor and allied chips and circuitry, plus an
input device (keyboard, mouse, disk drive), an output device (monitor, disk drive), and
any peripheral devices (printer, modem). Within this hardware system is an operating
system, often called system software, which is an essential set of programs that manage
hardware and data files and work with application programs. External to the computer,
system also refers to any collection or combination of programs, procedures, data, and
Deregulation: The act of freeing from regulation (especially from governmental regulations).
Network: In computer science network is a system used to link two or more computers.
Network users are able to share files, printers, and other resources; send electronic
messages; and run programs on other computers. (Microsoft Encarta 2009, Microsoft
Corporation)
WordNet Database)
Real-Time: Real-time system in computer means updating information at the same rate of
receiving information.
PNR: Acronym for Passenger Number, a unique number generated automatically to exclusively
identify passengers.
Flight Code: A unique number given to individual flight (airplane) to exclusively identify the
airplane.
Concession: The act of yielding. In air travel, concession refers to other special attachment, such
as baggage and any other special case (disability or preference), during conveyance of
Research methodology is the method of collection of data and information as a research tool.
There are two main methods of data collection. They are Primary and Secondary Data Collection
This includes information and data from existing documents such as journals, articles,
periodicals, etc. They are fixed and sometimes outdated or generally updated periodically at
intervals.
This type of data collection is more specific. It involves gathering information on the current
status of the problem in discussion. It includes oral/personal interviews, observation and use of
questionnaires to collect and gather information and data on a particular subject. The information
The methodologies employed in this thesis were drawn from both secondary and primary data
collection methods these involve articles and periodicals collected from Internet and observation
and personal interview. Visits were made to some air travel agencies and personal interviews
were conducted with top management staff of these agencies. Agencies visited include, Aero
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 weaknesses or problem area with
cognizance to improve the systems performance and/or develop a new better system”.
The existing 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 unstructured. Below is a
START
BOOKING DEPARTMENT
Ticket Reservation
STOP
The need for the new system arose from evaluation of deficiencies of the existing manual
b. Inaccuracy
c. Unreliability
d. Uninformative
The new system is expected to address the aforementioned issues and also increase manpower in
the organization by cutting cost of implementation and maintenance – since cost of managing a
computerized system is cost-effective than managing human resources – and also encourage
aimed at achieving optimum speed, accuracy, reliability, informative and also make room for
ticket and flight reservation and cancellation from anywhere to any place. Flowchart of the new
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 the different steps involved in the development of the system and how
constituent controls are designed and implemented with reference to the design of the database.
Here, the various input on forms used in the development and design of the new system 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 following are the different forms’ input
Calendar
ImageBox3
Command1 Command2
(cmdFlightReservation) (cmdTicketReservation)
TextBox2
Command3 Command4
(cmdEnquiry) (cmdCancelReservation)
Calendar
TextBox27
TextBox28
LabelBox2 Command4
Frame4
TextBox5 ComboBox1 TextBox6
ComboBox7
ComboBox2 TextBox7 TextBox8 TextBox9
TxtBox21 TxtBox22
LabelBox3
LabelBox4 TxtBox26
TxtBox25
TextBox27 Calendar
TextBox28
Frame4
LabelBox2 Command7
Command5
LabelBox3
LabelBox4
Command2 Command3
TextBox27 Calendar
TextBox28
Frame4
LabelBox2 Command5
Command7
LabelBox3
LabelBox4
TextBox27 Calendar
TextBox28
Frame4
LabelBox2 Command4
LabelBox3
LabelBox4
Command2 Command3
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
Calendar
Command1 DataGrid1
(cmdTicket)
Command2
(cmdFlight)
Command3 (cmdHome)
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, Random Filing system, etc.). In this thesis, the
type of database used is the Microsoft Access 2007 relational database. It is used to hold records
concerning flight schedule and reservation and ticket reservation. Below is list of the tables
System implementation and documentation consist of the choice of programming language used,
the input specification, output specification, system requirement and necessary documentation
The programming language used in the development of the system is Visual Basic, a component
of the Visual Studio 6.0 application package. This choice is due to the object-oriented
capabilities of the programming language, meaning it supports coding in module and allow
reusability of software. The programming language is also easy to use and understand, and
Input specification stresses the various medium used to enter information/data into the system.
Here the basic input devices used are the keyboard and mouse. The input as earlier emphasized is
achieved by either clicking with the mouse or typing with the keyboard.
The output devices required in the implementation of the new system are the Visual Display Unit
(VDU) and printer. The VDU displays the current process and the printer is used to print out
reports or tickets.
5.2.1 SAMPLE INPUT/OUTPUT
The system requirement given below covers the minimum system specification required to run
e. CD ROM Drive
f. Keyboard
h. Mice
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, during coding and testing, errors
were debugged. These errors range from wrong data type declaration, invalid variable names,
value range overflow, etc. After which, the program is made executable by selecting File menu
form the VB 6.0 application window menu bar, and selecting make ProjectName.exe (in this
In order to internationalize a new system, the system must be packaged. After making the new
system executable as mentioned above, the next step is packaging. Packaging means making the
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 following commands in the packaging
tools wizard. And finally, the packaged application is saved into flash disks or written to CDs for
Before installing the application into any system, the system must have either a CDROM Drive
7. Run the application from the Startup Menu after successful installation.
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 implementation of the new system –
covering any errors encountered and how to troubleshoot the new system.
CHAPTER SIX
7.1 SUMMARY
This thesis proves beyond reasonable doubt, the impact of computerized airline reservation
system on the growth of the aviation industry in terms of accurate record keeping, speed in
cost effectiveness.
7.2 CONCLUSION
Airline Reservation System (ARS) has led to ease of airline ticketing, flight scheduling and also
provided a means for customers to access and book flights with ease and in time. It has also
increased the speed with which information about customers are retrieved and handled and flight
scheduling is tasked.
7.3 RECOMMENDATION
Owing to the ease and comfort of Airline Reservation Systems, local flights which are not on the
system should be encouraged to compensate the system. Secondly, the system should be made
3. “Aviation and Space”. Retrieved on December 18, 2009 from Microsoft Encarta Premium
2009 Encyclopedia.
8. M. J. Smith (2002): “The Airline Encyclopedia, 1909 – 2000”. Scarecrow Press, New York.
9. Microsoft Encarta Premium 2009.
10. P. N. Seth, S. S. Bhat (2002): “An Introduction to Travel and Tourism”, Prentice Hall,
London.
11. R. E. G. Davies (1964): “A History of the World’s Airlines”. Oxford University Press,
London.
12. R. Doganis, C. Routledge (2001): “The Airline Business in the 21st Century.” McGraw-Hill,
New York.
13. R. Doganis, C. Routledge (2002): “Flying Off Course: The Economics of International
Airlines,” 3rd Edition. McGraw-Hill, New York.
End Sub
'Name: frmHome
'Description: Welcome form of iReservation System
'_____________________________________________________________________________
Option Explicit
Dim mintTimeCheck As Integer
imgGlobe.Left = 9900
lblMessage.Left = 10300
imgPlane.Top = -1000
imgPlane.Left = 5440
'set the calendar to present day
Calendar1.Day = Format(Now, "DD")
Calendar1.Month = Format(Now, "M")
Calendar1.Year = Format(Now, "YYYY")
Call frmTicketReservation.InitializeFormProperty
Call frmFlightReservation.Form_Load
End Sub
'minimize form
Me.WindowState = 1
End Sub
End Sub
End Sub
frmHome.Height = frmHome.Height - 50
frmHome.Width = frmHome.Width - 100
If frmHome.Height <= 200 Or frmHome.Width <= 550 Then
frmHome.Height = 8145
frmHome.Width = 13305
tmrMin.Enabled = False
'Exit Sub
End If
End Sub
Private Sub tmrIDisplay_Timer()
'tmrPlane control to perform scrolling marquee action on form for airplane image
imgPlane.Top = imgPlane.Top + 100
imgPlane.Left = imgPlane.Left + 50
If imgPlane.Top = 0 Then
imgPlane.Left = 6240
tmrPlane.Enabled = False
tmrPlane3.Enabled = False
tmrPlane4.Enabled = False
tmrPlane2.Enabled = True
mintTimeCheck = 0
Call tmrPlane2_Timer
End If
End Sub
'tmrPlane control to perform scrolling marquee action on form for airplane image
imgPlane.Top = 0
imgPlane.Left = 6240
mintTimeCheck = mintTimeCheck + 1
If mintTimeCheck = 10 Then
tmrPlane2.Enabled = False
tmrPlane.Enabled = False
tmrPlane4.Enabled = False
tmrPlane3.Enabled = True
Call tmrPlane3_Timer
End If
End Sub
'tmrPlane control to perform scrolling marquee action on form for airplane image
imgPlane.Top = imgPlane.Top
imgPlane.Left = 5440
mintTimeCheck = mintTimeCheck + 1
If mintTimeCheck = 10 Then
tmrPlane4.Enabled = False
tmrPlane3.Enabled = False
tmrPlane2.Enabled = False
imgPlane.Top = -1500
imgPlane.Left = 5440
tmrPlane.Enabled = True
Call tmrPlane_Timer
End If
End Sub
'Name: frmTicketReservation
'Detail: This form contains all ticket reservation information and coding
'_____________________________________________________________________________
End Sub
'set flight code and route automatically according to flight name selected
If cboFlightName.Text = "IC1" Then
txtFlightCode.Text = "871"
txtTotalSeat.Text = "89"
cboFrom.Text = "ABUJA"
cboTo.Text = "LAGOS"
txtFCode.Text = "871"
End If
strDepTime = cboDHour.Text & ":" & cboDMins.Text & " " & cboDTime.Text
strDepDay = cboDepDay.Text & "/" & cboDepMonth.Text & "/" & cboDepYear.Text
strArrTime = cboAHour.Text & ":" & cboAMins.Text & " " & cboATime.Text
strArrDay = cboArrDay.Text & "/" & cboArrMonth.Text & "/" & cboArrYear.Text
.Recordset.Fields(1).Value = txtTicketNumber.Text
.Recordset.Fields(2).Value = txtPIN
.Recordset.Fields(3).Value = strPassengerName
.Recordset.Fields(4).Value = txtDOBirth.Text
.Recordset.Fields(5).Value = cboGender.Text
.Recordset.Fields(6).Value = txtAddress.Text
.Recordset.Fields(7).Value = cboOccupation.Text
.Recordset.Fields(8).Value = txtPhone.Text
.Recordset.Fields(9).Value = txtEmail.Text
.Recordset.Fields(10).Value = cboFlightName.Text
.Recordset.Fields(11).Value = txtFlightCode.Text
.Recordset.Fields(12).Value = cboClassName.Text
.Recordset.Fields(13).Value = txtClassCode.Text
.Recordset.Fields(14).Value = cboFrom.Text
.Recordset.Fields(15).Value = cboTo.Text
.Recordset.Fields(16).Value = strDepTime & " " & strDepDay
.Recordset.Fields(17).Value = strArrTime & " " & strArrDay
If txtCFare.Text <> "" Then
.Recordset.Fields(18).Value = txtCFare.Text
Else
.Recordset.Fields(18).Value = txtFare.Text
End If
'set default value of concessions
If fmeConcession.Enabled = False Then
.Recordset.Fields(19).Value = "Nil"
.Recordset.Fields(20).Value = "Nil"
.Recordset.Fields(21).Value = "Nil"
.Recordset.Fields(22).Value = "Nil"
.Recordset.Fields(23).Value = "Nil"
.Recordset.Fields(24).Value = "Nil"
.Recordset.Fields(25).Value = "Nil"
.Recordset.Fields(26).Value = "Nil"
.Recordset.Update
Else
.Recordset.Fields(19).Value = cboCategory.Text
.Recordset.Fields(20).Value = txtCCode.Text
.Recordset.Fields(21).Value = txtCClass.Text
.Recordset.Fields(22).Value = txtCDiscount.Text
.Recordset.Fields(23).Value = txtCValidity.Text
.Recordset.Fields(24).Value = txtCBaggage.Text
.Recordset.Fields(25).Value = txtCFare.Text
.Recordset.Fields(26).Value = txtSeat.Text
.Recordset.Update
End If
End With
imgGlobe.Left = 4100
imgGlobe.Top = 330
tmrGlobe.Enabled = True
lblMessage.Left = 4500
lblMessage.Top = 400
End Sub
'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 subroutine
lblMessage.ForeColor = vbBlack
imgGlobe.Left = imgGlobe.Left + 100
lblMessage.Left = lblMessage.Left + 100
If lblMessage.Left = 4500 Then
tmrGlobe1.Enabled = False
tmrGlobe.Enabled = True
Call tmrGlobe_Timer
Exit Sub
End If
End Sub
End Sub
End Sub
For intIndex1 = 1 To 12
cboArrMonth.AddItem (intIndex1)
Next intIndex1
For intIndex3 = 1 To 31
cboDepDay.AddItem (intIndex3)
Next intIndex3
For intIndex4 = 1 To 12
cboDepMonth.AddItem (intIndex4)
Next intIndex4
For intHourIndex1 = 1 To 12
cboDHour.AddItem (intHourIndex1)
Next intHourIndex1
For intMinIndex1 = 0 To 59
cboDMins.AddItem Format(intMinIndex1, "00")
Next intMinIndex1
cboDTime.AddItem "AM"
cboDTime.AddItem "PM"
For intHourIndex2 = 1 To 12
cboAHour.AddItem (intHourIndex2)
Next intHourIndex2
For intMinIndex2 = 0 To 59
cboAMins.AddItem Format(intMinIndex2, "00")
Next intMinIndex2
cboATime.AddItem "AM"
cboATime.AddItem "PM"
cboGender.AddItem "FEMALE"
cboGender.AddItem "MALE"
cboClassName.AddItem "ECONOMY"
cboClassName.AddItem "BUSINESS CLASS"
cboClassName.AddItem "PREMIUM CLASS"
cboClassName.AddItem "UPPER CLASS"
cboClassName.AddItem "PRESIDENTIAL"
cboFlightName.AddItem "IC1"
cboFlightName.AddItem "IC2"
cboFlightName.AddItem "CD1"
cboFlightName.AddItem "CD2"
cboFlightName.AddItem "CD3"
End Sub
End Sub
If adoIC1.Recordset.EOF Then
If adoIC1.Recordset.BOF Then
'do nothing
Else
adoIC1.Recordset.MoveFirst
End If
End If
adoIC1.Recordset.Find "SeatNo = '" & strSearchCriteria & "'", 0, adSearchForward
If adoIC1.Recordset.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.SetFocus
Exit Sub
End If
End If
If adoIC2.Recordset.BOF Then
If adoIC2.Recordset.EOF Then
'do nothing
Else
adoIC2.Recordset.MoveFirst
End If
End If
adoIC2.Recordset.Find "SeatNo = '" & strSearchCriteria & "'", 0, adSearchForward
If adoIC2.Recordset.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.SetFocus
Exit Sub
End If
End If
If adoCD1.Recordset.BOF Then
If adoCD1.Recordset.EOF Then
'do nothing
Else
adoCD1.Recordset.MoveFirst
End If
End If
adoCD1.Recordset.Find "SeatNo = '" & strSearchCriteria & "'", 0, adSearchForward
If adoCD1.Recordset.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.SetFocus
Exit Sub
End If
End If
If adoCD2.Recordset.EOF Then
If adoCD2.Recordset.BOF Then
'do nothing
Else
adoCD1.Recordset.MoveFirst
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", vbExclamation + vbOKOnly, "SEAT NOT AVAILABLE"
txtSeat.SetFocus
Exit Sub
End If
End If
If adoCD3.Recordset.EOF Then
If adoCD3.Recordset.BOF Then
'do nothing
Else
adoCD3.Recordset.MoveFirst
End If
End If
adoCD3.Recordset.Find "SeatNo = '" & strSearchCriteria & "'", 0, adSearchForward
If adoCD3.Recordset.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.SetFocus
Exit Sub
End If
End If
End Sub
'Name: frmFlightReservation
'Description: Allows rescheduling/updating of ticket and flight reservation in database
'_____________________________________________________________________________
Private Sub cmdAdd_Click()
End Sub
txtTicketNumber.Text = adoFlightReservation.Recordset.Fields(1)
Text1.Text = adoFlightReservation.Recordset.Fields(3)
Text2.Text = adoFlightReservation.Recordset.Fields(4)
Text3.Text = adoFlightReservation.Recordset.Fields(5)
Text4.Text = adoFlightReservation.Recordset.Fields(6)
Text5.Text = adoFlightReservation.Recordset.Fields(7)
Text6.Text = adoFlightReservation.Recordset.Fields(8)
Text7.Text = adoFlightReservation.Recordset.Fields(9)
cboFlightName.Text = adoFlightReservation.Recordset.Fields(10)
Text9.Text = adoFlightReservation.Recordset.Fields(11)
cboClassName.Text = adoFlightReservation.Recordset.Fields(12)
Text11.Text = adoFlightReservation.Recordset.Fields(13)
Text12.Text = adoFlightReservation.Recordset.Fields(26)
Text13(0).Text = adoFlightReservation.Recordset.Fields(14)
Text13(1).Text = adoFlightReservation.Recordset.Fields(15)
Text14.Text = adoFlightReservation.Recordset.Fields(16)
Text15.Text = adoFlightReservation.Recordset.Fields(17)
Text16.Text = adoFlightReservation.Recordset.Fields(11)
Text17.Text = adoFlightReservation.Recordset.Fields(13)
Text18.Text = adoFlightReservation.Recordset.Fields(18)
txtTicketNumber.Visible = True
Label2.Visible = True
'make frame1 visible
Frame1.Visible = True
End Sub
With adoIC1.Recordset
.Fields(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).Value = Text13(1).Text
.Fields(9).Value = Text18.Text
.Fields(10).Value = Format(Now, "DD/MM/YYYY")
.Update
End With
adoIC1.Refresh
End If
With adoIC2.Recordset
.Fields(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).Value = Text13(1).Text
.Fields(9).Value = Text18.Text
.Fields(10).Value = Format(Now, "DD/MM/YYYY")
.Update
End With
adoIC2.Refresh
End If
With adoCD1.Recordset
.Fields(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).Value = Text13(1).Text
.Fields(9).Value = Text18.Text
.Fields(10).Value = Format(Now, "DD/MM/YYYY")
.Update
End With
adoCD1.Refresh
End If
With adoCD2.Recordset
.Fields(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).Value = Text13(1).Text
.Fields(9).Value = Text18.Text
.Fields(10).Value = Format(Now, "DD/MM/YYYY")
.Update
End With
adoCD2.Refresh
End If
With adoCD3.Recordset
.Fields(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).Value = Text13(1).Text
.Fields(9).Value = Text18.Text
.Fields(10).Value = Format(Now, "DD/MM/YYYY")
.Update
End With
adoCD3.Refresh
End If
With adoTicketReservation.Recordset
.Fields(1).Value = txtTicketNumber.Text
.Fields(2).Value = txtPIN
.Fields(3).Value = Text1.Text
.Fields(4).Value = Text4.Text
.Fields(5).Value = Text2.Text
.Fields(6).Value = Text3.Text
.Fields(7).Value = Text7.Text
.Fields(8).Value = Text5.Text
.Fields(9).Value = Text6.Text
.Fields(12).Value = cboFlightName.Text
.Fields(13).Value = Text9.Text
.Fields(14).Value = cboClassName.TabIndex
.Fields(15).Value = Text11.Text
.Fields(16).Value = Text12.Text
.Fields(18).Value = txtCFare.Text
.Update
End With
Exit Sub
End Sub
cboFlightName.AddItem "IC1"
cboFlightName.AddItem "IC2"
cboFlightName.AddItem "CD1"
cboFlightName.AddItem "CD2"
cboFlightName.AddItem "CD3"
'refresh database
adoFlightReservation.Refresh
adoFlightReservation.Recordset.AddNew
End Sub
'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 subroutine
lblMessage.ForeColor = vbBlack
imgGlobe.Left = imgGlobe.Left + 100
lblMessage.Left = lblMessage.Left + 100
If lblMessage.Left = 4500 Then
tmrGlobe1.Enabled = False
tmrGlobe.Enabled = True
Call tmrGlobe_Timer
Exit Sub
End If
End Sub
'Name: frmEnquiry
'Description: Enables checking of existing flight and ticket reservation
'_____________________________________________________________________________
txtTicketNumber.Visible = True
Label3.Visible = True
End Sub
Call Timer1_Timer
tmrGlobe.Enabled = True
lblMessage.Left = 5500
lblMessage.Top = 400
Call tmrGlobe_Timer
Call Timer1_Timer
End Sub
'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 subroutine
lblMessage.ForeColor = vbBlack
imgGlobe.Left = imgGlobe.Left + 100
lblMessage.Left = lblMessage.Left + 100
If lblMessage.Left = 5500 Then
tmrGlobe1.Enabled = False
tmrGlobe.Enabled = True
Call tmrGlobe_Timer
Exit Sub
End If
End Sub
'Name: frmCancelReservation
'Description: Enables cancelation of ticket/flight reservation
'_____________________________________________________________________________
End If
adoSearch.Recordset.Delete adAffectAllChapters
txtTicketNumber.Visible = True
Label3.Visible = True