Vous êtes sur la page 1sur 133

A

ON
Submitted in partial fulfillment of the requirement for the award of Degree of
BACHELOR OF COMPUTER APPLICATION (BCA)
SUBMITTED TO
Department of Computer Science
SUBMITTED TO SUBMITTED BY
MR. PRAMOD KUMAR SONU BHARTEE
Lecturer: SUMIT KUMAR
Dept. Of Computer Application DALESHWA R PRASHAD
SHARMA

SUBMITTED AT
SHRI RAM COLLEGE, MUZAFFARNAGAR

We would like to take this opportunity to express our gratitude towards all the people who hae in
arious ways! helped in the successful completion of our pro"ect.
We must coney our gratitude to Mr. PRAMOD SHARMA for giing us the constant source of
inspiration and help in preparing the pro"ect! personally correcting our work and proiding encouragement
throughout the pro"ect.
We also thank all my faculty members for steering us through the tough as well as easy phases of
the pro"ect in a result oriented manner with concern attention.
SONU BHARTEE
SUMIT KUMAR
DALESHWAR PRASHAD
SHARMA
We are the student of BCA 6
TH
SEM SHRI RAM COLLEGE MUZAFFARNAGAR
(AFFILATED TO C.C.S UNIVERSITY MEERUT). #ere by declare that the pro"ect report on
A$%WA&S RESERVATION SYSTEM is our original work.
We also declare that hae done our work self accurately een then if oer mistake or error had
kept in. We request to our faculties to points out these error and guide our to remoe these error for our
future. We are also thankful for our faculties.
SHRI PAL
SUNDER SINGH
'his is to certify that the (ro"ect %eport titled Gas Agency Management System is the bona
fide pro"ect work carried out by )r. students of *CA, SHRI RAM COLLEGE! Muzaffarnagar during
the year +,,-! in partial fulfillment of the requirements for the award of the Degree of *achelor of
Computer Application and that the pro"ect report has not formed the basic for the award preiously of any
degree! diploma or any other similar title.
(lace. )/0A11A%2A3A%
Date. ,45,65+,,- Signature of the 3uide
'itle 7coer page8
'itle of the (ro"ect
Acknowledgement
Certificate
Contents
2ame of (ro"ect
Ob"ectie of the (ro"ect
#ardware and software requirements
#ospital management system
Data flow diagram
9:r diagram
)odules
(atient module
Staff module
(atient admission module
%oom module
%eport modules
Software deelopment life cycle
1easibility study
%equirements analysis ; specifications
Software design
Coding
'esting
)aintenance
1ront end and back end
Coding
Screen shots
*$*<O3%A(#&
'his (ro"ect is built to model the GAS AGENCY MANAGEMENT SYSTEM as closely as possible.
Some features are.
=
>Separate profiles for users! containing all their personal data.
>(ossibility of multiple bookings per profile.
>1inding the stock and gas deliery according to the stock and as well as the user status.
>A such a management system by which you can search employee and his data and aailable of
total number of cylinder.
>Separate profile type for officials.
>Appropriate error checking.
All these and other transactions and features hae been described in detail in the following section.
=.= 'he 3AS A392C& )A2A39)92' S&S'9) 73)S8 is a software application to assist a gas
deliery with transactions related to making book entry! which includes blocking! resering! and
rescheduling gas cylinder.
=.+ 1rom the iewpoint of the gas agency :
=.+.= )inimi?e repetitie work done by the system administrator and booking clerks.
=.+.+ )aintain consistency among different access modes! e.g. by phone! at the information desk and
across different physical locations. 'he users should be basically taken through the same steps by
the system as they go through in conentional desk:reseration systems.
=.+.@ )aintain customer information in case of mistake! e.g. gas booking due to inclement weather. 'he
profile can also be used by the gas agency to track user preferences
=.+.A )aximi?e the reenue of the airline company by arious means.
=.+.A.= $ncrease awareness among many gas agency about arious special offers by which they can sae
more much time.
=.+.A.+ )inimi?e the number of gas booking and maximi?e gas deliery utili?ation.
=.+.A.@ )aintain the capability to adopt a flexible pricing policy. 'he price of the gas should be
dynamically determined based on how early! before the date of departure! the customer buys the
gas.
=.@ A surey conducted by gas companies shows that users of an existing deliery system would
respond faorably to an '3S that satisfied or helped them satisfy the following ob"ecties.
=.@.= %educe effort and frustration for delieries in scheduling cylinders! especially by reducing the
search effort for the cylinders they need to take.
=.@.+ Show all possible combinations and itineraries aailable for a pair of origin:destination cities.
=.@.@ %educe redundancy in the information required from the customers in order for them to take
cylinder! create user accounts etc.
=.@.A Check the alidity of input data and gie a feedback to the user in case of errors or inconsistency.
=.@.6 (roide flexible access modes to users B internet! telephone! (DA.
=.@.C (rotect customersD priacy concerns.
=.@.4 )ake it easy for deliery to check the cylinder status or make changes to their deliery.

'he definition of our problem lies in manual system and a fully automated system.
Manual system:
'he system is ery time consuming and la?y. 'his system is more prone to errors and sometimes the
approach to arious problems is unstructured.
Technical system:
With the adent of latest technology if we do not update our system then our business result in losses
gradually with time. 'he technical systems contains the tools of latest trend i.e. computers printers! fax!
$nternet etc. 'he systems with this technology are ery fast! accurate! user:friendly and reliable..
Need of gas management system
A few factors that direct us to deelop a new system are gien below :.
=8 1aster System
+8 Accuracy
@8 %eliability
A8 $nformatie
68 Deliery and updating of the employee and customer.

*ooking
3as Agency )anagement
Deliery
/pdation
FEASIBILITY STUDY:-
1easibility study before deelopment or customi?ation of software we think following of the ma"or
points! which includes following. :

a) Economical
b) Technical
c) Duration
Economical:-
'his study about the software basically gie the suggestion like if we deelop software for our
organi?ation than how much it will forfeitable! workable as well as economical. $f we deeloping a
software which ery economical but not profitable there it is also wrong decision. Still we hae
economical study about the system table following of the point.
#ow much costing of the softwareE
What is the output of the customi?ationE
What are the adantages in compression manual we check
Whether it is time or notE
Whether it is use friendly or notE
$t is mountable for long term.
/nderstanding about the software
Correctie of software.
Technical:-
We also consider some technical points about deelopment of software.
We see whether the software is reliable or not.
Whether it is work time for long time or not.
What are the languages as well as OS is used for deelopment of software.
$t proides security or not.
Software is reusable or not.
Software is updated or not.
Software is flexible or not whether software can maintain.
Duration:-
$t is also a ma"or point when we deelop software. We also consider about time! how much time software
place to complete because for a big organi?ation time factor is money for full successful of the software
also 'ax some times so we hae consider from starting to last that means beginning to software.



*ooking customer list

Data Storage Data Access gas
(assenger <ist!
Deliery 1leet info
/pdating! %equest
1or enquiry deliery information
1are details

$n deeloping cost estimates for a system! we need to consider serable cost elements. Among them
hardware! personnel! facility! operating! ; supply costs.
%9(O%'S
C/S'O)9%
Database
*OOF$23 D9(A%')92'
GAS
AGENCY
MANAGEME
NT SYSTEM
Hardware Cost:-
#ardware cost relate to the actual purchase or lease of the computer ; peripherals 9x. (rinter! disk!
floppy drie! the best way to control for this cost is to treat it as an operating cost.
Personnel Cost:-
'his includes staff salaries ; benefits 7health insurance! ocation time! sick pay etc.8 as well as pay for
those inoled in deeloping system. Costs incurred during the deelopment of a system are one time
costs ; are labeled deelopmental costs. Once the system is installed the costs of operating ;maintaining
the system become recurring costs.
Facility Costs:-
1acility costs are expenses incurred in the preparation of the physical site where the application or the
computer will be i operation. 'his includes wiring! flooring! acoustics! lighting ; air conditioning. 'hese
costs are treated as one time costs.
Operating Cost:-
Operating costs include all costs associated with the day to day operating system. 'he amount depends on
the number of sifts the nature of the application ; the caliber of the operating staff. 'here are arious
ways of coering operating costs to oerhead. Another approach is to change each authori?ed user for the
amount of processing they request from the system. 'he amount charged is based on the computer time!
staff time ; the olume of output produced.
Supply Cost:-
'hese costs are ariable costs that increase with increased use of paper! ribbon! disks ; the like they
should be estimated ; include in the oerall cost of the system.
Equipment Cost:-
9quipment costs include rental ; annual deprecation of any equipment such as typewriter! copies!
computer terminals ; microcomputers used in connection with the system. Other costs associated with
the equipment! such as insurance ; maintenance should also be included.

SYSTEM:-
A system can be defined as ~A set of arrangement of elements that are organized to
accomplish some method, procedure or control by processing information.
System Analysis stages down the broad frame work of strategy stage into its minute details. 'his
is the stage where intensie user interaction assumes a lot of importance.
SYSTEM DEVELOPMENT:-
Deelopment (hase! translates a set of requirements into an operational system that we call
Software. At early stages of hardware deelopment a hardware engineer does not reach for a soldering
iron! similarly the Software engineer should not reach the compiler. Design is accomplished first.
'he first phase of deelopment concentrates on design. 'he design phase for software with a
description of architecture and data design. 'hat is a modular structure is deeloped first! interfaces are
defined and data structure is established. Design criteria are used for the assessment of quality. 'his
preliminary design step is reiewed for completeness and tractability to software requirements.
(rocedural aspects of each modular component of the software design are considered next! and is
following by the COD$23 B the generation of program using an appropriate programming language or
CAS9 tool B occurs after the design is complete. Software engineering methodology iews coding as a
consequence of good design. Code is then reiewed for style and clarity! but should otherwise be directly
traceable to a detailed design description.
DETAILED ENTITY RELATIONSHIP DIAGRAM :-
$dentification of all the 9ntities of importance for which data need to be stored and defined their
relationship with each other was a ma"or task at this leel. All the identified entities were mapped on a E-
R-diagram. $t is of utmost importance to coer all the necessary entities and defined their relationship
with each other correctly because any errors at this stage would result in the reworking in the further
stages.
Unique Identification, UID:-
A unique identification is required to be identified and associated with each other at this stage.
Function Hierarchy:-
1unction hierarchy is used for grouping related functions under a parent function. 'he hierarchy is
balanced so that all elementary functions come in the same leel of hierarchy. A good hierarchy drawn at
this stage helped in menu generation at a later stage.
The Basic Objective:-
'he basic ob"ectie of the system design was the system being deeloped should be able to fit into
the existing system! that is it become a part of the system and it should not lead to any changes which can
adersely affect the existing system. 'he airways haing many actiities which affect one another so the
approach of airways reseration is generated for the simplification of data handling.
'he approach would bring in the following benefits.:

Standardi?ation of the methods and procedures.

Aailability of information centrally.

)inimi?ing future maintenance requirements.

%eduction in the learning process for new personal.


Packaged systems:-
'he systems would hae the following features.:

Completely menu drie interface with the proision of initiating een the batch "obs by the user
himself.

On B <ine help

Strong documentation

Galidation checks done by the system itself

)inimi?ation of input to the system to produce maximum output.


Designing is the most important part of the software deelopment. $t requires a careful planning
and logical thinking on the system designer. Designing a software means to plan how the arious parts of
the software are going to achiee the desired goal. $t should done with the utmost care because if this
phase contains any errors then that will be going to affect the performance of the system! as a result it may
take more processing time! more coding! extra work load etc.
As the software is to be designed in O%AC<9 %D*)S! the concept of the database is must for
quality designing. $t will be designing of the database! designing of forms! designing of reports.
Separate tables hae been created for each entity of the system. $n order to make the response time
negligible! all the tables hae been created in the )emory 1ile System. )oreoer indexes hae been
created on the tables in the number of records hae been made random.
'he design stages takes the final specification of the system from the analysis stages and finds the
best way of fulfilling them! gien the technical enironment and preious decision on required leel of
automation
'he system design is carried out in two phases.:
Architectural Design
Detailed Design
ARCHITECTURAL DESIGN:-
'he high leel design maps the business system described in the program requirement
specification to logical data structure! it inoles.
Identification of the entities that constitutes the system:-
All the entities related to the module were identified! checked and consolidated
Identifying the Relationships:-
'he relationships between the entities! within and outside the system were identified.
Attribute definition:-
'he pertaining of the entities was identified and their field characteristics were specified.
Normalization:-
'he entities were normali?ation! after first and the second normali?ation was achieed for all the
entities.
Interface:-
$nterface with the other systems were done and attributes related to external entities identified.
DETAILED DESIGN:-
'he low leel design maps the logical model of the system to a physical database design.
Table Mapping:-
'he 'able was created for the system using the design iew! which is the part of the O%AC<9. 'his
has proision to create the entities and attributes into the 'ables. 'he name of the entity is taken as the
table name.
Default Database Design:-
$n O%AC<9 we can create tables through the queries and some command. 'he tables diide into two
parts. 'hese names are as follow. :
%OWS
CO</)2S
The steps involved here were:-
=. 3eneration of table
+. Check Galidation %ule
@. Check Galidation 'ext
A. (rimary Feys
6. /nique Feys
C. 1oreign Feys
Relationship:-
O%AC<9 allows many types of relationship between the tables. 'hese relationship names are as
follow. :
One to One %elationship
)any to One %elationship
)any to )any %elationship
Program specifications:-
'he program specifications were written for the master! transactions! reports and queries. 'he
logic for each field! block and form were written so that anyone who does not know the system will be
able to code the logic. 1ield alidations and user:friendly error messages were written as part of the
program specification.
WINDOW 98 used as PLATFORM
Windows -H is latest ersion of windows and also 3/$. 'his is best then another Operating
system and easy.
Windows -H has come up with another bonan?a! that is! 2etwork Communication with other
users. 'he users can connect with other users to share data files and peripheral deices! like (rinters.
'he Communication tools of Windows -H include 9:)ail and connection to $nternet.
VISUAL BASIC used as FRONT END
Visual Basic uses front-end programming because VB use Back end as like MS-ACCESS
and any other Database.
$n G* we can use easy database connectiity and design the 1orm! %eport! and others )D$
applications with the help of Database.
G* facility the database controls which helps the changing! modifying! deleting and adding
facility in database with the help of command buttons and controls.
G* is used for see the Data in many modes such as with the help of )S1lex3rid Controls!
'extbox! Combo box! <ist box! $mage! (icture control and other.
Gisual *asic gies the different types of accessing the Database 7%DO! ADO and DAO8
Gisual *asic is complete programming language that supports programming constructs for
looping! decision making and efficient processing. 'hese constructs include
1orIIII.next
DoIIII.loop
SelectIIIcase
WithIIend with
$fI.thenII.else
Gisual *asic helps of creation )enus! )aster:Details 1orm.
ORACLE used as BACK END
ORACLE is a database and partially RDBMS. $n Access we can easily create Database design
and gie the alidations. Access allows the many types of relations between the tables.
Access used as *ackend with the Gisual *asic. Access allows creating the (rimary Fey! 1oreign
Fey and /nique Fey. $n Access we can store the data in to the table for using the wi?ard options.

During system testing! the system is used experimentally to ensure that the software does not fall!
i.e. it will run according to specification and in the way users expect. Special test data input for processing
and the result examination. A limited number of users may be allowed to use the system so that analysis
can see whether they use it in unforeseen ways. $t is preferable to discoer any surprises the organi?ation
implements the system and encounters them later on. 'his type of testing which allows only a few!
selected users to work on the system is known as *9'A '9S'$23. On the other hand the testing done by
the deeloper 7s8! themseles is known as A<(#A '9S'$23.
'esting is generally performed by persons other than those who the original programs to ensure
complete and unbiased testing and more reliable software.
'he norms followed during the testing phase were thoroughly tested by me! the deeloperJ $ was
required to release the programDs source code. 'he source code was copied into the area. $f some changes
were desired in the program! $ was suitably informed and was required to make the necessary
modifications.
1ollowing testing procedures were used
UNIT TESTING
Unit testing is the testing of a single program module in an isolated environment. 'he testing
of the processing procedure is the main focus. $n this regard! all the modules were separately tested first as
isolated and complete entities. 'his helped a lot in discoering problems related to a single module and
rectifying them in the contest of the module itself! rather than considering module:related problem in a
global context.
INTEGRATION TESTING
Integration testing is the process of testing the interfaces among system modules. Some
testing ensures that data moes between systems as intended. $n the regard of a particular module was
obtained in correct format! so that the next module could accept it appropriately. 'his could be done either
after the entire system was deeloped! or in stages than one module was deeloped.
SYSTEM TESTING
System testing is the testing of the system against its initial objectives. Such testing is done
either in a simulated enironment or in a lie enironment.
$n the case of the system which $ deeloped! the testing was done in a pseudo-real environment.
'he organi?ation has an area called the KDeelopment K! where all deelopment work is carried out!
whereas the KClientD is the area where all on:line work is undertaken. Since the kind of work which $ was
inoled dealt with insertion! updating and in tables! all the work was deeloped in the K DeelopmentD
area. $ call the enironment pseudo:real since all data which is being used for on:line transaction can be
copied into the tables of the KDeelopmentD and lie data can be worked on. 'hus whateer would be the
output on the KClient Kis reflected exactly on the KDeelopmentD alsoE 'hus! discoery of error became
simpler in that the errors which would occur in the real:time enironment were exactly duplicated in the
KDeelopment Kenironment.
All the aboe types of testing were carried out and arious extreme cases were also introduced to
check for whether the system responded as expected. 'he arious 1orms! database packages! procedures!
functionJ isual basic programs and functions were tested to discoer they behaed in the manner
expected of them and gae accurate results. #oweer! the factor! which helped most in the modification
and rectification of the system! was the user response. 'he user after using the system would inariably
come up with some idea to improe the system. Such ideas! if feasible! were incorporated into the system!
thus leading to an improement in the oerall efficiency of the system.
$mplementation! literally! means to put into effect or to carry out. 'he system implementation
phase of software engineering deals with all actiities that take place to conert from the old system to the
new. (roper implementation is essential to proide system to meet organi?ationDs requirements.
During the implementation phase debugging! documentation of the system was created out!
module in the pro"ect for
Accuracy of %esults!
)inimi?ation of response 'ime!
Clarity and Simplicity of the code!
)inimi?ation of #ard BCoding i.e. 7a generic approach was followed 8
)inimi?ation of amount of memory used.
Garious types of errors were discoered while debugging the modules. 'hese ranged from errors
to failure to account for arious processing cases. (roper documentation of each module was done by
embedding comments in the executable portion of the code. 'o enhance the readability! comments!
indentation! parenthesis! black spaces! blank lines and borders were around the blocks of comments. Care
was taken to use descriptie names for table! field! modules! forms etc.! 'he proper use of indentation!
parenthesis and blank lines was also ensured during coding.
'esting of the %eport 3eneration module was carried out to find out the response time of the
system for the generating reports. 'o make the response time negligible
)aintenance is a fact of life in the deelopment of information systems. #oweer the making of
changes ; ad"ustments donDt necessarily signal correction of error or the occurrence of problems.
Among the most frequent changes requested by end users is the addition of information to a report
format. $nformation requirements may be reised as the result of system usage or changing operational
needs. (erhaps oersights that occurred during the deelopment process need to be corrected.
Often! the need arises to capture additional data for storage in a database or perhaps when it is
necessary to add error detection features to preent system users from inadertently taking an unwanted
action.
'hese are the realities of application maintenance! when they occur! howeer they are an
indication that the system is being used ; that it is sering a useful function rather than being KDsheledDD
by the intended! such as .
)ore accurately defining the userDs requirements during system deelopment.
Assembling better systems documentation.
)aking better use of existing tools ; techniques.
$ncluding proper comments.
Documentation is the process of collecting, organizing, storing and maintaining on paper (or
some relatively permanently medium) a complete record of why application were developed, for
whom, what function they perform, and how these functions are carried out. 'hus it proides an
explanation of how a system operates ; what feature characteri?e models ; algorithms. (roducing
documentation is an important B but often neglected B actiity of programmers.
Documentation of the system always reduces maintenance costs and makes maintenance much
easier. Documentation can be broadly classified as.
1. INTERNAL DOCUMENTATION
2. EXTERNAL DOCUMENTATION
INTERNAL DOCUMENTATION
$nternal documentation in the code can be extremely useful in enhancing the understandability of
programs. $nternal documentation of programs is done by the use of comments. All the languages proide
means of writing comments in the programs. Comments are textual statements that are meant for the
reader and are not executed. Comments! if properly written! and if kept consistent with the code! can be
inaluable during maintenance.
'he purpose of comments is not to explain the internal logic of the program B the program itself is
the best documentation for the details of logic. 'he comments should explain what the code is done is
doing! and not how it is done it.
Comments should be proided for the block of code! particularly those parts of code which are
hard to follow.
(roiding comments for module is most useful as module form the unit testing! compiling!
erification and modification. Comments for a module are often called prologue for the module. $t is best
to standardi?e the structure of the prologue of the module. $t is desirable that prologue contains the
following information.
a8 )odule functionality or what the module is doing
b8 (arameters are their purpose
c8 Assumptions about the input! if any
d8 3lobal ariable accessed and or modified in the module
As explanation of parameters 7whether they are input only! output only or both input and output ! why
they are needed by the module and how the parameters are modified 8 can be quite useful during
maintenance.
$n addition to that gien aboe! often information can be included! depending on the local coding
standards. 9xample includes.
: 2ame of the author!
: Date of compilation
: <ast date of modification.
2ote that if the module is modified! then the prologue should also be modified! if necessary. A
prologue that is inconsistent with the internal logic of the module is prologue worse than haing no
prologue at all.
While coding programs for the Station Coding System special attention has been paid to the
internal documentation of the system! in addition to the external documentation. 9ach program5module
has.
(rogram5module name on top
Date of creation of the program
<ast modification date
'he S5W tool used to deeloped the program
Description of input to the program5module
Description of the output produced
#ow the module is related to other modules
(urpose of ariables5constants used
Apart from this comment lines hae been inserted whereer it was felt that they were necessary.
)oreoer meaningful ariable names5constants hae been assigned to different ariable5constants used in
the programs.


LOGIN
<ogin table used to store users information and type of user
FIELD CONSTRAINT DATATYPE SIZE DESCRIPTION
/S9%2A)9 GA%C#A%+ +, /sername
(ASSWO%D GA%C#A%+ +, (assword
/S9%'&(9 GA%C#A%+ = 'ype of user
whether
Administrator or
9mployees
CUSTOMER TABLE
FIELD CONSTRAINT DATA
TYPE
SIZE DESCRIPTION
$D (%$)A%& F9& GA%C#A%+ +, /nique $D of customer
2A)9 2O' 2/<< GA%C#A%+ +6 2ame of customer
12A)9 GA%C#A%+ +6 1ather name of customer
ADD%9SS GA%C#A%+ 6, Address of customer
CO2'AC' 2/)*9% =6 Contact no. of customer
($2COD9 2/)*9% =, (incode
CO2'&(9 2/)*9% + 'ype of connection
2OO1C&< 2/)*9% + 'otal cylinders
DOC DA'9 25A Date of connection
S'A'/S GA%C#A%+ +, Status whether
confirmed or in
consideration
EMPLOYEE TABLE
FIELD CONSTRAINT DATATYPE SIZE DESCRIPTION
$D (%$)A%& F9& GA%C#A%+ +, /nique $D of
9mployee
2A)9 2O' 2/<< GA%C#A%+ +6 2ame of the
9mployee
12A)9 GA%C#A%+ +6 1ather name of
the 9mployee
ADD%9SS GA%C#A%+ 6, Address of
9mployee
DO* DA'9 25A Date of birth
CO2'AC' 2/)*9% =6 Contact no.
D9S$3 GA%C#A%+ +, Designation
DOL DA'9 25A Date of Loining
BOOKING TABLE
FIELD CONSTRANT DATATYPE SIZE DESCRIPTION
C/S'$D 1O%9$32
F9&
GA%C#A%+ +, Customer $D
mapped to the $D
field in
Customer table
DO* 2O' 2/<< DA'9 25A Date Of *ooking
D1<A3 2O' 2/<< 2/)*9% = Deliered or not
DOD 2O' 2/<< DA'9 25A Date of Deliery
STOCK
FIELD CONSTRAINT DATATYPE SIZE DESCRIPTION
CO)S'OCF 2/)*9% A Commercial
Stock
DO)S'OCF 2/)*9% A Domestick Stock
DA)CO)S'OCF 2/)*9% A Damaged
commercial
stock
DA)DO)S'OCF 2/)*9% A Damaged
Domestic stock
CONFIG
Store configuration of system like maximum cylinder maximum number of users etc.
FIELD CONSTRAINT DATATYPE SIZE DESCRIPTION
)AMC&< 2/)*9% @ )aximum
Cylinders can be
allocated to a
customer
D91*OOF 2/)*9% @ Days difference
b5w two
consecutie
bookings
D91D9< 2/)*9% @ Days difference
b5w booking and
deliery
)AM/S9% 2/)*9% @ )aximum no of
user can exist for
this system


Single booking
*ooking date
Customer
COUNTER
ASSISTANT
Stock
detail
Customer
detail
Booking
detail
Updation
Stock detail
.

CONNECTION STATUS
CUSTOMER ID
UPDATAION
CUSTOMER
DETAI
SPALSH FORM
LOGIN FORM
This is login form. In this form we login to enter the new form. It has two attributes i.e. user name and
password and two option button OK and CANCLE through which we confirm or cancel the login form.
AIRWAYS RESERVATION FORM
This is the MDI (Multiple document interface) form . In this form we can open multiple forms one forms
after the other. In this form we have menu editor and the contents of menu editor are - counter assistant,
flight detail , cancellation , change password , help , about us and exit.
COUNTER ASSISTANT
This is the counter assistant form. In this form we enter the reservation details like reservation date, flight
no., and reservation sector, class of travel i.e. executive or economic and no. of seats. There are two option
command button to confirm or cancel the reservation details.
RESERVATION FORM
This is the reservation form. In this form we input the passenger details like passenger no. ,ticket no.
,passenger name, passenger address, passenger phone no. passenger age, reservation date, reservation sector,
class of travel either executive or economic, reservation status either confirmed or in waiting list. Then by
using two commands i.e. save record and print ticket we can save or take the printout of the ticket.
TICKET DETAIL FORM
This is the ticket detail form. In this form we can the ticket information like name of passenger, pnr no.,
ticket no. , no. of seats, total fare, sector, class, date, flight no. also we take the printout of ticket.
DATA REPORT OF
RESERVATION FORM
In this form we can see the reservation slip of passenger and take printout of ticket by applying print
command.
ADMIN PASSWORD FORM
This is the form of administrator password . By going through this form we can do manipulation in the flight
detail .In this form we have user id and password and two commands i.e. OK and CANCEL through which
we can confirm or cancel the admin password form.
FLIGHT DETAIL FORM
This is the flight detail form .In this form we can save , new, find, update and close the record. The attributes
are flight no. , reservation sector, departure time, class of travel , travelling fare, number of seats.
FIND FORM
This is the form of find. In this form we can find the flight detail by giving the flight number of the related
flight.
TICKET DETAIL FORM
This is the ticket detail form .In this form we can see the ticket detail like sector flight no. , date, class, ticket
no. , no. of seats, fare. If we want to cancel the reservation then we can cancel the reservation by clicking
YES/NO.
CHANGE ADMIN PASSWORD FORM
This is the change admin password form .In this form we can change the admin password by giving new user
name,old password, new password ,and confirm password.
CHANGE USER PASSWORD FORM
This is the change user password form .In this form we can change the user password by giving new user
name,old password, new password ,and confirm password
ABOUT US FORM
This is about us form. In this form we can give the information of students involve in this project.

SPLASH FORM
Option 9xplicit
(riate Sub 'imer=N'imer78
/nload S(<AS#
Oaboutus.Show
/S9%(WD.Show
9nd Sub
LOGIN FORM
Option 9xplicit
Dim C2 As 2ew Connection
Dim <%S As 2ew %ecordset
Dim )&(WD As String
(ublic <oginSucceeded As *oolean
(riate Sub 1ormNActiate78
txt(assword.Set1ocus
9nd Sub
(riate Sub 1ormN<oad78
C2.(roider P Q)$C%OSO1'.L9'.O<9D*.@.6=Q
C2.ConnectionString P QC.R(rogram filesR)icrosoft Gisual StudioRG*-HR%9S9%GA'$O2.mdbQ
C2.Open
<%S.Open Qpro"ectpasswordQ! C2! adOpenDynamic
9nd Sub
(riate Sub 1ormN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblok.1oreColor P <abel=.1oreColor
lblcancel.1oreColor P <abel=.1oreColor
9nd Sub
(riate Sub lblcancelNClick78
<oginSucceeded P 1alse
/nload /S9%(WD
9nd Sub
(riate Sub lblcancelN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblcancel.1oreColor P b&ellow
9nd Sub
(riate Sub lblokNClick78
)&(WD P <%S7Q(ASSWO%DQ8
$f txt(assword.'ext P )&(WD 'hen
<oginSucceeded P 'rue
/nload /S9%(WD
A$%WA&S%9S9%GA'$O2.Show
9lse
)sg*ox Q$nalid (assword! try againSQ! bSystem)odal T b9xclamation! Q/S9% (ASSWO%DQ
txt(assword.Set1ocus
SendFeys QU#omeVTU9ndVQ
9nd $f
9nd Sub
(riate Sub lblokN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblok.1oreColor P b&ellow
9nd Sub
(riate Sub txtusernameNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txt(assword.Set1ocus
9nd $f
9nd Sub
AIRWAYS RESERVATION
(riate Sub )2/A*O/'/SNClick78
aboutus.Show
9nd Sub
(riate Sub )2/AD)$2NClick78
AD)$2(WD.Show
9nd Sub
(riate Sub )2/CANClick78
CO/2'9%ASS$S'A2'.Show
9nd Sub
(riate Sub )2/CA2C9<NClick78
CA2C9<<A'$O2.Show
9nd Sub
(riate Sub )2/C#A239AD)$2NClick78
C#A239AD)$2.Show
9nd Sub
(riate Sub )2/C#A239/S9%NClick78
C#A239/S9%.Show
9nd Sub
(riate Sub )2/9M$'NClick78
9nd
9nd Sub
COUNTER ASSISTANT
Dim C2 As 2ew Connection
Dim rs= As 2ew %ecordset
Dim totalseats As $nteger
Dim %S As 2ew %ecordset
(riate Sub cmbflightnoNClick78
Set rs= P C2.9xecute7Qselect resNsector from flightdetails where flightNnoPQ ; Q OQ ; cmbflightno.'ext ;
QOQ8
'M'S9C'O%.'ext P rs=7QresNsectorQ8
rs=.Close
9nd Sub
(riate Sub cmbflightnoNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
C)*%9SC<ASS.Set1ocus
9nd $f
9nd Sub
(riate Sub C)*%9SC<ASSNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
'M'S9A'S.Set1ocus
9nd $f
9nd Sub
(riate Sub 1ormNActiate78
rs=.Cursor<ocation P ad/seClient
rs=.Open QflightdetailsQ! C2! adOpenDynamic
1or i P = 'o rs=.%ecordCount
cmbflightno.Add$tem rs=7QflightNnoQ8
rs=.)oe2ext
2ext
C)*%9SC<ASS.Add$tem Q9M9C/'$G9Q
C)*%9SC<ASS.Add$tem Q9CO2O)$CQ
rs=.Close
9nd Sub
(riate Sub 1ormN<oad78
On 9rror 3o'o *<A2F
C2.(roider P Q)icrosoft.Let.O<9D*.@.6=Q
C2.ConnectionString P QC.R(rogram 1ilesR)icrosoft Gisual StudioRG*-HR%9S9%GA'$O2.mdbQ
C2.Open
O('CA2C9<.Galue P 1alse
*<A2F.
$f 9rr.2umber P @,+= 'hen
)sg*ox Q'here is no record.Q! b$nformation T bSystem)odal! Q%9CO%D 2O' AGA$<A*<9Q
O('CA2C9<.Galue P 1alse
9nd $f
9nd Sub
(riate Sub 1ormN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
ok.1oreColor P <abel=.1oreColor
O('CA2C9<.1oreColor P <abel=.1oreColor
9nd Sub
(riate Sub okNClick78
Dim S'O%9 As $nteger
Dim mystore As $nteger
rs=.Open QflightdetailsQ! C2! adOpenDynamic
Set rs= P C2.9xecute7Qselect balNseats from flightdetails where flightNnoP Q ; Q OQ ; cmbflightno ; QO Q8
mystore P rs=7QbalNseatsQ8
S'O%9 P rs=7QbalNseatsQ8 : 'M'S9A'S.'ext
C2.9xecute 7Qupdate flightdetails set balNseatsP Q ; Q OQ ; S'O%9 ; QO where flightNnoPQ ; Q OQ ;
cmbflightno.'ext ; QO Q8
$f S'O%9 WP Gal7'M'S9A'S.'ext8 'hen
)sg*ox Q&our seats are confirmed.Q! bSystem)odal T b$nformation! QCO21$%)9D5WA$'$23
S9A'SQ
9lse$f S'O%9 X , And S'O%9 WP :=, 'hen
$f mystore W , 'hen
)sg*ox mystore ; Q Seats are confirmed.Q! bSystem)odal T b$nformation!
QCO21$%)9D5WA$'$23 S9A'SQ
)sg*ox S'O%9 ; Q Seats are in waiting.Q! bSystem)odal T b$nformation!
QCO21$%)9D5WA$'$23 S9A'SQ
9nd $f
$f mystore X , 'hen
)sg*ox Q&our seats are in waiting list.Q! bSystem)odal T b$nformation!
QCO21$%)9D5WA$'$23 S9A'SQ
9nd $f
9lse$f S'O%9 X :=, 'hen
)sg*ox QSorry! we canOt resere because of inaailability of seats.Q! bSystem)odal T b$nformation!
Q$2D$A2 A$%WA&SQ
9xit Sub
9nd $f
%9S9%GA'$O2.Show
CO/2'9%ASS$S'A2'.#ide
rs=.Close
9nd Sub
(riate Sub okN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
ok.1oreColor P b&ellow
9nd Sub
(riate Sub O('CA2C9<NClick78
/nload CO/2'9%ASS$S'A2'
9nd Sub
(riate Sub O('CA2C9<N)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
O('CA2C9<.1oreColor P b&ellow
9nd Sub
(riate Sub 'M'%9SDA'9NFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
cmbflightno.Set1ocus
9nd $f
9nd Sub
(riate Sub txtresdateN<ost1ocus78On 9rror 3o'o %AF
Dim S'% As Date
Dim S'%= As String
Dim S'O%9 As $nteger
S'O%9 P )onth7Date8
S'O%9 P S'O%9 T @
$f )onth7'M'%9SDA'9.'ext8 W S'O%9 'hen
)sg*ox Q9nter the date within three months.Q! bSystem)odal T b$nformation! QDA'9 9%%O%Q
'M'%9SDA'9.Set1ocus
9xit Sub
9nd $f
$f &ear7'M'%9SDA'9.'ext8 W &ear7Date8 'hen
)sg*ox Q9nter the date with current yearQ! bSystem)odal T b$nformation! QDate 9rrorQ
'M'%9SDA'9.Set1ocus
9xit Sub
9nd $f
S'% P 1ormat7'M'%9SDA'9! Qmm5dd5yyQ8
$f S'% X Date 'hen
)sg*ox Q9nter the current or coming date.Q! bSystem)odal T b$nformation! QDA'9 9%%O%Q
'M'%9SDA'9.Set1ocus
9lse$f S'% WP Date 'hen
<abelH.Gisible P 1alse
cmbflightno.Set1ocus
9nd $f
%AF.
$f 9rr.2umber P =@ 'hen
)sg*ox Q9nter in date format.Q! bSystem)odal T b$nformation! QDA'9 9%%O%Q
'M'%9SDA'9.Set1ocus
9nd $f
9nd Sub
(riate Sub 'M'S9A'SNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
Call 'M'S9A'SN<ost1ocus
ok.9nabled P 'rue
9nd $f
9nd Sub
(riate Sub 'M'S9A'SN<ost1ocus78
$f 'M'S9A'S.'ext P QQ 'hen
)sg*ox Q9nter the seats.Q! b$nformation T bSystem)odal! QCO21$%)A'$O2 S9A'SQ
'M'S9A'S.Set1ocus
9lse$f 'M'S9A'S.'ext W C 'hen
)sg*ox Q)ore than six seats are not allowed.Q! bSystem)odal T b$nformation!
QCO21$%)A'$O2 S9A'SQ
'M'S9A'S.Set1ocus
9lse$f 'M'S9A'S.'ext XP C And 'M'S9A'S.'ext W , 'hen
ok.9nabled P 'rue
9lse$f 'M'S9A'S.'ext P , 'hen
)sg*ox Q9nter seats greater than ,.Q! bSystem)odal T b$nformation! QCO21$%)A'$O2 S9A'SQ
ok.9nabled P 1alse
'M'S9A'S.Set1ocus
9nd $f
9nd Sub
(ublic 1unction *<A2F1$9<DS78
'M'%9SDA'9.'ext P QQ
'M'S9C'O%.'ext P QS9C'O%Q
'M'S9A'S.'ext P QQ
9nd 1unction
RESERVATION
Dim C2 As 2ew Connection
Dim %S As 2ew %ecordset
Dim flight%S As 2ew %ecordset
Dim ticketrs As 2ew %ecordset
Dim M As $nteger
(riate Sub 1ormNActiate78
)sg*ox Q9nter details of passengers.Q! b$nformation T bSystem)odal! QD9'A$< $21O%)A'$O2Q
D$S(1$9<DS
'M'2A)9.Set1ocus
'M'2A)9.<ocked P 1alse
txtage.<ocked P 1alse
txtphoneno.<ocked P 1alse
txtaddress.<ocked P 1alse
txtpnrno.'ext P QQ
txtticketno.'ext P QQ
*<A2F1$9<DS
9nd Sub
(riate Sub 1ormNDeactiate78
equalseats P ,
M P ,
9nd Sub
(riate Sub 1ormN<oad78
C2.(roider P Q)icroSoft.Let.O<9D*.@.6=Q
C2.ConnectionString P QC.R(rogram filesR)icrosoft Gisual StudioRG*-HR%9S9%GA'$O2.mdbQ
C2.Open
%S.Cursor<ocation P ad/seClient
9nd Sub
(ublic 1unction D$S(1$9<DS78
'M'%9SDA'9.'ext P CO/2'9%ASS$S'A2'.'M'%9SDA'9.'ext
txtressector.'ext P CO/2'9%ASS$S'A2'.'M'S9C'O%.'ext
'M'C<ASS.'ext P CO/2'9%ASS$S'A2'.C)*%9SC<ASS.'ext
9nd 1unction
(riate Sub 1ormN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
<*<(%$2'.1oreColor P <abel=.1oreColor
<*<SAG9.1oreColor P <abel=.1oreColor
9nd Sub
(riate Sub <*<D9<9'9N)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
<*<D9<9'9.1oreColor P b&ellow
9nd Sub
(riate Sub 1ormNYuery/nload7cancel As $nteger! /nload)ode As $nteger8
$f /nload)ode P , 'hen
)sg*ox Q(lease enter detailsQ! b$nformation T bSystem)odal! Q%eserationQ
cancel P =
%9S9%GA'$O2.Show
9nd $f
9nd Sub
(riate Sub <*<(%$2'NClick78
Dim L As $nteger
Dim M As $nteger
Dim & As $nteger
%S.Cursor<ocation P ad/seClient
Set ticketrs P C2.9xecute7Qselect noNofNseats!totalNfare!flightNno!ticketNno from ticketdetails where
ticketNnoPQ ; QOQ ; txtticketno.'ext ; QOQ8
With '$CF9'
.'M'1A%9.'ext P ticketrs7QtotalNfareQ8
.'M'1<$3#'2O.'ext P ticketrs7QflightNnoQ8
.'M'S9A'S.'ext P ticketrs7QnoNofNseatsQ8
.txtticketno.'ext P ticketrs7QticketNnoQ8
9nd With
'$CF9'.Show
L P ,
%S.Open 7Qselect resNclass!resNdate!resNsector!pnrNno!pasNname from reseration where '$CF9'N2OPQ
; QOQ ; txtticketno.'ext ; QOQ8
With '$CF9'
.'M'C<ASS.'ext P %S7QresNclassQ8
.'M'DA'9.'ext P %S7QresNdateQ8
.'M'S9C'O%.'ext P %S7QresNsectorQ8
9nd With
1or i P , 'o %S.%ecordCount : =
$f i WP CO/2'9%ASS$S'A2'.'M'S9A'S 'hen
9xit 1or
9lse
'$CF9'.txtpnrno7i8.Gisible P 'rue
'$CF9'.'M'2A)97i8.Gisible P 'rue
'$CF9'.txtpnrno7i8.'ext P %S7QpnrNnoQ8
'$CF9'.'M'2A)97i8.'ext P %S7QpasNnameQ8
<oad '$CF9'.txtpnrno7i T =8
<oad '$CF9'.'M'2A)97i T =8
& P & T C,,
'$CF9'.txtpnrno7i T =8.'op P '$CF9'.txtpnrno7i8.'op T &
'$CF9'.'M'2A)97i T =8.'op P '$CF9'.'M'2A)97i8.'op T &
%S.)oe2ext
9nd $f
2ext i
'$CF9'.Show
%9S9%GA'$O2.#ide
ticketrs.Close
%S.Close
9nd Sub
(riate Sub lblsaeNClick78
Dim L As $nteger
Dim A! count As $nteger
Dim i As $nteger
Dim 'AF9 As $nteger
Dim take= As $nteger
Dim S'% As String
Dim S'%= As String
Dim S'O%9 As $nteger
Dim check As $nteger
Dim myal As $nteger
Dim myphonenoZ
Static equalseats As $nteger
Dim totalfare As Single
%S.Open Q%9S9%GA'$O2Q! C2! adOpenDynamic! ad<ockOptimistic
flight%S.Open QflightdetailsQ! C2! adOpenDynamic
$f 'M'2A)9.'ext P QQ 'hen
)sg*ox Q9nter your name.Q! bSystem)odal T b$nformation! Q2A)9 9%%O%Q
'M'2A)9.Set1ocus
%S.Close
flight%S.Close
9xit Sub
9lse$f txtaddress.'ext P QQ 'hen
)sg*ox Q9nter your address.Q! bSystem)odal T b$nformation! QADD%9SS 9%%O%Q
txtaddress.Set1ocus
%S.Close
flight%S.Close
9xit Sub
9lse$f txtage.'ext P QQ 'hen
)sg*ox Q9nter your age.Q! bSystem)odal T b$nformation! QA39 9%%O%Q
txtage.Set1ocus
%S.Close
flight%S.Close
9xit Sub
9nd $f
S'O%9 P )sg*ox7QDo you want to sae the recordEQ! b&es2o T bSystem)odal T bYuestion T
bDefault*utton=! QCO21$%)A'$O2 SAG9Q8
$f S'O%9 P b2o 'hen
'M'%9SDA'9.'ext P QQ
txtressector.'ext P QQ
'M'C<ASS.'ext P QQ
9lse$f S'O%9 P b&es 'hen
$f %S.%ecordCount P , 'hen
S'%= P Q(,,,Q
9lse
%S.)oe<ast
S'%= P %S7QpnrNnoQ8
9nd $f
take= P Gal7%ight7S'%=! @88
take= P take= T =
$f take= WP = And take= X =, 'hen
txtpnrno.'ext P Q(,,Q ; take=
9lse$f take= WP =, And take= XP =,, 'hen
txtpnrno.'ext P Q(,Q ; take=
9nd $f
$f %S.%ecordCount P , 'hen
S'% P Q',,,Q
9lse
%S.)oe<ast
S'% P %S7Q'$CF9'N2OQ8
9nd $f
$f M P , 'hen
'AF9 P Gal7%ight7S'%! @88
'AF9 P 'AF9 T =
9nd $f
$f M P , 'hen
$f 'AF9 WP = Or 'AF9 X =, 'hen
txtticketno.'ext P Q',,Q ; 'AF9
9lse$f 'AF9 WP =, Or 'AF9 XP =,, 'hen
txtticketno.'ext P Q',Q ; 'AF9
9nd $f
9nd $f
$f M P , 'hen
Set flight%S P C2.9xecute7Qselect [ from flightdetails where flightNnoPQ ; Q OQ ;
CO/2'9%ASS$S'A2'.cmbflightno ; QO Q8
$f CO/2'9%ASS$S'A2'.C)*%9SC<ASS.'ext P Q9M9C/'$G9Q 'hen
totalfare P flight%S7Q'%AG9<<$23N1A%9=Q8 [ CO/2'9%ASS$S'A2'.'M'S9A'S.'ext
9lse$f CO/2'9%ASS$S'A2'.C)*%9SC<ASS.'ext P Q9CO2O)$CQ 'hen
totalfare P flight%S7Q'%AG9<<$23N1A%9+Q8 [ CO/2'9%ASS$S'A2'.'M'S9A'S.'ext
9nd $f
C2.9xecute 7Qinsert into
ticketdetails7flightNno!ticketNno!resNsector!noNofNseats!'O'A<N1A%9!%9SNC<ASS!%9SNDA'98alues
7Q ; Q OQ ; CO/2'9%ASS$S'A2'.cmbflightno.'ext ; QO!OQ ; txtticketno.'ext ; QO!OQ ;
txtressector.'ext ; QO!OQ ; CO/2'9%ASS$S'A2'.'M'S9A'S.'ext ; QO!OQ ; totalfare ; Q O!OQ ;
CO/2'9%ASS$S'A2'.C)*%9SC<ASS.'ext ; QO!OQ ; CO/2'9%ASS$S'A2'.'M'%9SDA'9.'ext
; QO8Q8
9nd $f
M P M T =
myphoneno P txtcode ; txtphoneno
C2.9xecute 7Q $2S9%' $2'O
%eseration7pnrNno!resNdate!%9SNS9C'O%!%9SNC<ASS!pasNname!pasNaddress!pasNphoneNno!pasNage
!ticketNno!resNstatus8 Galues7Q ; Q OQ ; txtpnrno ; QO!OQ ; 'M'%9SDA'9.'ext ; QO!OQ ;
txtressector.'ext ; QO!OQ ; 'M'C<ASS.'ext ; QO!OQ ; 'M'2A)9.'ext ; QO!OQ ; txtaddress.'ext ; QO!OQ
; myphoneno ; QO!OQ ; txtage.'ext ; QO!OQ ; txtticketno.'ext ; QO!OQ ; txtstatus.'ext ; QO8Q8
equalseats P equalseats T =
$f flight%S7QbalNseatsQ8 X , 'hen
txtstatus.'ext P QWaitingQ
9lse
txtstatus.'ext P QConfirmedQ
9nd $f
)sg*ox Q'he record has been saed.Q! bSystem)odal T b$nformation! QSAG9 $21O%)A'$O2Q
9nd $f
$f myal X CO/2'9%ASS$S'A2'.'M'S9A'S.'ext : = 'hen
*<A2F1$9<DS
'M'2A)9.Set1ocus
9nd $f
$f equalseats P CO/2'9%ASS$S'A2'.'M'S9A'S.'ext 'hen
<*<SAG9.9nabled P 1alse
'M'2A)9.<ocked P 'rue
txtaddress.<ocked P 'rue
txtage.<ocked P 'rue
txtphoneno.<ocked P 'rue
<*<(%$2'.9nabled P 'rue
equalseats P ,
9nd $f
%S.Close
flight%S.Close
9nd Sub
(riate Sub lblsaeN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
<*<SAG9.1oreColor P b&ellow
9nd Sub
(riate Sub txtaddressNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txtcode.Set1ocus
9nd $f
9nd Sub
(riate Sub txtaddressN<ost1ocus78
Dim M As String
Dim length As $nteger
Dim &
Dim S'% As String
Dim ? As String
S'% P txtaddress.'ext
? P 'rim7S'%8
length P <en7S'%8
1or L P = 'o length
M P )id7S'%! L! =8
& P Asc7M8
$f & X =@ Or & W =A And & X @+ 'hen
)sg*ox Q9nter correct address.Q! bSystem)odal T b$nformation! QADD%9SS 9%%O%Q
txtaddress.Set1ocus
9xit 1or
9lse$f & W @+ And & X AA Or & P AC 'hen
)sg*ox Q9nter correct address.Q! bSystem)odal T b$nformation! QADD%9SS 9%%O%Q
txtaddress.Set1ocus
9xit 1or
9lse$f & W 64 And & X C6 'hen
)sg*ox Q9nter correct address.Q! bSystem)odal T b$nformation! QADD%9SS 9%%O%Q
txtaddress.Set1ocus
9xit 1or
9lse$f & W -, And & X -4 'hen
)sg*ox Q9nter correct address.Q! bSystem)odal T b$nformation! QADD%9SS 9%%O%Q
txtaddress.Set1ocus
9xit 1or
9lse$f & W =++ 'hen
)sg*ox Q9nter correct address.Q! bSystem)odal T b$nformation! QADD%9SS 9%%O%Q
txtaddress.Set1ocus
9xit 1or
9lse$f $s2umeric7S'%8 'hen
)sg*ox Q9nter correct address.Q! bSystem)odal T b$nformation! QADD%9SS 9%%O%Q
txtaddress.Set1ocus
9xit 1or
9nd $f
2ext
txtaddress.'ext P ?
txtaddress.'ext P StrCon7txtaddress.'ext! b(roperCase8
9nd Sub
(riate Sub txtageNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
Call txtageN<ost1ocus
<*<SAG9.9nabled P 'rue
9nd $f
9nd Sub
(riate Sub txtageN<ost1ocus78
Dim M As String
Dim length As $nteger
Dim & As $nteger
Dim S'% As String
Dim i As $nteger
Dim ? As $nteger
S'% P txtage.'ext
length P <en7S'%8
1or i P = 'o length
M P )id7S'%! i! =8
& P Asc7M8
$f & X AH Or & W 64 'hen
)sg*ox Q9nter correct age.Q! bSystem)odal T b$nformation! QA39 9%%O%Q
txtage.Set1ocus
9xit Sub
9lse$f txtage.'ext P Q,,Q Or txtage.'ext P Q,Q 'hen
)sg*ox Q9nter correct age.Q! bSystem)odal T b$nformation! QA39 9%%O%Q
txtage.Set1ocus
9xit Sub
9lse$f txtage.'ext WP QH,Q 'hen
)sg*ox Q'his age group is not allowed.Q! bSystem)odal T b$nformation! QA39 9%%O%Q
txtage.Set1ocus
9xit Sub
9nd $f
$f length W + 'hen
)sg*ox Q9nter correct age within two characters.Q! bSystem)odal T b$nformation! QA39
9%%O%Q
txtage.Set1ocus
9xit Sub
9nd $f
2ext
9nd Sub
(riate Sub txtcodeNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txtphoneno.Set1ocus
9nd $f
9nd Sub
(riate Sub txtcodeN<ost1ocus78
On 9rror 3o'o %AF
Dim k As $nteger
Dim i As $nteger
Dim S'%+ As String
Dim &
Dim M As $nteger
Dim C<923'# As $nteger
S'%+ P txtcode.'ext
C<923'# P <en7S'%+8
1or k P = 'o C<923'#
M P )id7S'%+! k! =8
& P Asc7M8
$f & X AH Or & W 64 'hen
)sg*ox Q9nter correct code.Q! bSystem)odal T b$nformation! Q(#O29 2/)*9% 9%%O%Q
txtcode.Set1ocus
9xit Sub
9nd $f
$f C<923'# X @ 'hen
)sg*ox Q9nter correct code.Q! b$nformation T bSystem)odal! QCOD9 9%%O%Q
txtcode.Set1ocus
9xit Sub
9lse$f txtcode.'ext P Q,,,,,Q Or txtcode.'ext P Q,,,,Q Or txtcode.'ext P Q,,,Q Or txtcode.'ext
P Q,,,,,,Q 'hen
)sg*ox Q9nter correct code.Q! b$nformation T bSystem)odal! QCOD9 9%%O%Q
txtcode.Set1ocus
9xit Sub
9nd $f
2ext
%AF.
$f 9rr.2umber P =@ 'hen
)sg*ox Q9nter correct code.Q! bSystem)odal T b$nformation! QCOD9 9%%O%Q
txtcode.Set1ocus
9nd $f
9nd Sub
(ublic 1unction *<A2F1$9<DS78
'M'2A)9.'ext P QQ
txtage.'ext P QQ
txtaddress.'ext P QQ
txtphoneno.'ext P QQ
txtcode.'ext P QQ
9nd 1unction
(ublic 1unction S#OW1$9<DS78
With '$CF9'
.'M'C<ASS.'ext P %S7Q%9SNC<ASSQ8
.'M'DA'9.'ext P %S7Q%9SNDA'9Q8
.'M'S9C'O%.'ext P %S7QresNsectorQ8
.txtticketno.'ext P %S7QticketNnoQ8
9nd With
9nd 1unction
(riate Sub txtnameNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txtaddress.Set1ocus
9nd $f
9nd Sub
(riate Sub 'M'2A)9N<ost1ocus78
*<A2F
9nd Sub
(ublic 1unction *<A2F78
Dim M As String
Dim length As $nteger
Dim S'%= As String
Dim & As $nteger
Dim ? As String
Dim L As $nteger
S'%= P 'M'2A)9.'ext
? P 'rim7S'%=8
length P <en7?8
1or L P = 'o length
M P )id7?! L! =8
& P Asc7M8
$f & X @= Or & W @@ And & X C6 Or & W -, And & X -4 Or & W =++ 'hen
)sg*ox Q9nter correct name.Q! bSystem)odal T b$nformation! Q2A)9 9%%O%Q
'M'2A)9.Set1ocus
9xit 1unction
9nd $f
2ext
'M'2A)9 P ?
'M'2A)9 P StrCon7'M'2A)9! b(roperCase8
9nd 1unction
(riate Sub txtphonenoNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txtage.Set1ocus
9nd $f
9nd Sub
(riate Sub txtphonenoN<ost1ocus78
Dim M As String
Dim length As $nteger
Dim i As $nteger
Dim & As $nteger
Dim L As String
L P txtphoneno.'ext
length P <en7L8
1or i P = 'o length
M P )id7L! i! =8
& P Asc7M8
$f & X AH Or & W 64 'hen
)sg*ox Q9nter correct phone number.Q! bSystem)odal T b$nformation! Q(#O29 2/)*9%
9%%O%Q
txtphoneno.Set1ocus
9xit Sub
9nd $f
$f length X C 'hen
)sg*ox Q9nter the correct phone no. minimum upto A numbers and maximum upto 4.Q!
bSystem)odal T b$nformation! Q(#O29 2/)*9% 9%%O%Q
txtphoneno.Set1ocus
9xit Sub
9lse$f txtphoneno.'ext P Q,,,,,,Q Or txtphoneno.'ext P Q,,,,,,,Q Or txtphoneno.'ext P
Q,,,,,,,,Q 'hen
)sg*ox Q9nter correct phone number.Q! bSystem)odal T b$nformation! Q(#O29 2/)*9%
9%%O%Q
txtphoneno.Set1ocus
9xit Sub
9nd $f
2ext
9nd Sub
TICKET
Dim resrs As 2ew %ecordset
(ublic rescn As 2ew Connection
(riate Sub 1ormN<oad78
rescn.(roider P Q)icrosoft.Let.O<9D*.@.6=Q
rescn.ConnectionString P QC.R(rogram 1ilesR)icrosoft Gisual
StudioRG*-HR%9S9%GA'$O2.mdbQ
rescn.Open
9nd Sub
(riate Sub 1ormN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
<*<(%$2'.1oreColor P <abel=.1oreColor
9nd Sub
(riate Sub <*<(%$2'NClick78
Set resrs P rescn.9xecute7Qselect [ from '$CF9'D9'A$<S where '$CF9'N2OP Q ; Q OQ ;
txtticketno ; QO Q8
Set Data%eport=.DataSource P resrs
Data%eport=.Data)ember P QQ
With Data%eport=.Sections7Qsection=Q8.Controls
.$tem7++8.Data1ield P Q1<$3#'N2OQ
.$tem7=48.Data1ield P Q'$CF9'N2OQ
.$tem7=H8.Data1ield P Q2ONO1NS9A'SQ
.$tem7+,8.Data1ield P Q%9SNS9C'O%Q
.$tem7=-8.Data1ield P Q%9SNC<ASSQ
.$tem7+=8.Data1ield P Q%9SNDA'9Q
.$tem7+@8.Data1ield P Q'O'A<N1A%9Q
1or i P , 'o '$CF9'.txtpnrno.count : +
.$tem7i T =8.Caption P '$CF9'.txtpnrno7i8.'ext
.$tem7i T =8.Gisible P 'rue
.$tem7i T 48.Caption P '$CF9'.'M'2A)97i8
.$tem7i T 48.Gisible P 'rue
2ext i
9nd With
Data%eport=.Show
/nload '$CF9'
9nd Sub
(riate Sub <*<(%$2'N)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
<*<(%$2'.1oreColor P b3reen
9nd Sub
DATA REPORT 1
(riate Sub Data%eportN'erminate78
'$CF9'.rescn.Close
CO/2'9%ASS$S'A2'.Show
9nd Sub
ADMINISTRATOR PASSWORD
Option 9xplicit
Dim C2 As 2ew Connection
Dim A%S As 2ew %ecordset
Dim )&(WD As String
(ublic <oginSucceeded As *oolean
(riate Sub 1ormNActiate78
txt(assword.Set1ocus
9nd Sub
(riate Sub 1ormN<oad78
C2.(roider P Q)$C%OSO1'.L9'.O<9D*.@.6=Q
C2.ConnectionString P QC.R(%O3%A) 1$<9SR)$C%OSO1' G$S/A<
S'/D$ORG*-HR%9S9%GA'$O2.mdbQ
C2.Open
A%S.Open QAD)$2(ASSWO%DQ! C2! adOpenDynamic
9nd Sub
(riate Sub 1ormN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblok.1oreColor P <abel=.1oreColor
lblcancel.1oreColor P <abel=.1oreColor
9nd Sub
(riate Sub 1ormNYuery/nload7cancel As $nteger! /nload)ode As $nteger8
C2.Close
9nd Sub
(riate Sub lblcancelNClick78
<oginSucceeded P 1alse
/nload )e
9nd Sub
(riate Sub lblcancelN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblcancel.1oreColor P bWhite
9nd Sub
(riate Sub lblokNClick78
)&(WD P A%SS(ASSWO%D
$f txt(assword P )&(WD 'hen
<oginSucceeded P 'rue
/nload )e
1<$3#'.Show
9lse
)sg*ox Q$nalid (assword! try againSQ! b9xclamation T bSystem)odal! QAD)$2$S'%A'O%
(ASSWO%DQ
txt(assword.Set1ocus
SendFeys QU#omeVTU9ndVQ
9nd $f
9nd Sub
(riate Sub lblokN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblok.1oreColor P bWhite
9nd Sub
(riate Sub txtusernameNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txt(assword.Set1ocus
9nd $f
9nd Sub
FLIGHT DETAIL
Dim C2 As 2ew Connection
Dim %S As 2ew %ecordset
(riate Sub cmbflightnoNClick78
Set %S P C2.9xecute7Qselect [ from flightdetails where flightNnoPQ ; Q OQ ; cmbflightno.'ext ; QO Q8
D$S(1$9<DS
lblupdate.9nabled P 'rue
%S.Close
9nd Sub
(riate Sub 1ormN<oad78
C2.(roider P Q)icrosoft.Let.O<9D*.@.6=Q
C2.ConnectionString P QC.R(rogram 1ilesR)icrosoft Gisual StudioRG*-HR%9S9%GA'$O2.mdbQ
C2.Open
%S.Cursor<ocation P ad/seClient
9nd Sub
(riate Sub 1ormN/nload7cancel As $nteger8
C2.Close
9nd Sub
(riate Sub 1rameAN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblfind.1oreColor P <abel=.1oreColor
lblmodify.1oreColor P <abel=.1oreColor
lblsae.1oreColor P <abel=.1oreColor
lblupdate.1oreColor P <abel=.1oreColor
lblcancel.1oreColor P <abel=.1oreColor
lblclose.1oreColor P <abel=.1oreColor
9nd Sub
(riate Sub $mage=N)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblfind.1oreColor P <abel=.1oreColor
lblmodify.1oreColor P <abel=.1oreColor
lblsae.1oreColor P <abel=.1oreColor
lblupdate.1oreColor P <abel=.1oreColor
lblcancel.1oreColor P <abel=.1oreColor
lblclose.1oreColor P <abel=.1oreColor
9nd Sub
(riate Sub lblcancelNClick78
lblnew.Gisible P 'rue
lblsae.Gisible P 'rue
lblfind.Gisible P 'rue
lblcancel.Gisible P 1alse
lblupdate.Gisible P 1alse
lblmodify.Gisible P 'rue
*<A2F1$9<DS
cmbflightno.Gisible P 1alse
txtflightno.Gisible P 'rue
txtfare=.<ocked P 'rue
txtfare+.<ocked P 'rue
'M'D9(''$)9.<ocked P 'rue
txtseats=.<ocked P 'rue
txtseats+.<ocked P 'rue
lblclose.Gisible P 'rue
9nd Sub
(riate Sub lblcancelN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblcancel.1oreColor P b3reen
9nd Sub
(riate Sub lblcloseNClick78
$f lblclose.Caption P QCancelQ 'hen
lblfind.9nabled P 'rue
lblmodify.9nabled P 'rue
lblclose.Caption P QCloseQ
lblsae.9nabled P 1alse
lblnew.1oreColor P <abel=.1oreColor
9xit Sub
9nd $f
$f lblclose.Caption P QCloseQ 'hen
/nload 1<$3#'
A$%WA&S%9S9%GA'$O2.Show
9nd $f
9nd Sub
(riate Sub lblcloseN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblclose.1oreColor P b3reen
9nd Sub
(riate Sub lblfindNClick78
1<$3#'.#ide
1$2D.Show
9nd Sub
(riate Sub lblfindN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblfind.1oreColor P b3reen
9nd Sub
(riate Sub lblmodifyNClick78
Dim i As $nteger
%S.Open QflightdetailsQ! C2! adOpenDynamic
cmbflightno.Gisible P 'rue
txtflightno.Gisible P 1alse
cmbflightno.Set1ocus
1or i P = 'o %S.%ecordCount
cmbflightno.Add$tem %S7QflightNnoQ8
%S.)oe2ext
2ext i
lblnew.Gisible P 1alse
lblsae.Gisible P 1alse
lblfind.Gisible P 1alse
lblupdate.Gisible P 'rue
lblupdate.9nabled P 1alse
lblcancel.Gisible P 'rue
lblmodify.Gisible P 1alse
'M'D9(''$)9.<ocked P 1alse
txtfare=.<ocked P 1alse
txtfare+.<ocked P 1alse
txtseats=.<ocked P 1alse
txtseats+.<ocked P 1alse
lblclose.Gisible P 1alse
%S.Close
9nd Sub
(riate Sub lblmodifyN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblmodify.1oreColor P b3reen
9nd Sub
(riate Sub lblnewNClick78
*<A2F1$9<DS
cmbflightno.Gisible P 1alse
txtflightno.Gisible P 'rue
'M'D9(''$)9.<ocked P 1alse
txtsector.<ocked P 1alse
txtfare=.<ocked P 1alse
txtfare+.<ocked P 1alse
txtseats=.<ocked P 1alse
txtseats+.<ocked P 1alse
txtsector.Set1ocus
lblsae.9nabled P 'rue
lblclose.Caption P QCancelQ
lblfind.9nabled P 1alse
lblmodify.9nabled P 1alse
lblclose.9nabled P 'rue
9nd Sub
(riate Sub lblnewN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblnew.1oreColor P b3reen
9nd Sub
(riate Sub lblsaeNClick78
Dim i! k As $nteger
Dim length As $nteger
Dim S'O%9 As $nteger
Dim 'AF9 As $nteger
Dim S'% As String
Dim S'%= As String
Dim myflight As String
Dim seats As $nteger
$f txtsector.'ext P QQ 'hen
)sg*ox Q9nter the sector.Q! bSystem)odal T b$nformation! QS9C'O% 9%%O%Q
txtsector.Set1ocus
9xit Sub
9lse$f 'M'D9(''$)9.'ext P QQ 'hen
)sg*ox Q9nter the departure time.Q! bSystem)odal T b$nformation! QD9(A%'/%9 '$)9
9%%O%Q
'M'D9(''$)9.Set1ocus
9xit Sub
9lse$f txtfare=.'ext P QQ 'hen
)sg*ox Q9nter the fare.Q! bSystem)odal T b$nformation! Q1A%9 9%%O%Q
txtfare=.Set1ocus
9xit Sub
9lse$f txtfare+.'ext P QQ 'hen
)sg*ox Q9nter the fare.Q! bSystem)odal T b$nformation! Q1A%9 9%%O%Q
txtfare+.Set1ocus
9xit Sub
9lse$f txtseats=.'ext P QQ 'hen
)sg*ox Q9nter the seats.Q! bSystem)odal T b$nformation! QS9A'S 9%%O%Q
txtseats=.Set1ocus
9xit Sub
9lse$f txtseats+.'ext P QQ 'hen
)sg*ox Q9nter the seats.Q! bSystem)odal T b$nformation! QS9A'S 9%%O%Q
txtseats+.Set1ocus
9xit Sub
9nd $f
S'O%9 P )sg*ox7QDo you want to sae the recordEQ! bYuestion T b&es2o T bSystem)odal T
bDefault*utton=! QCO21$%)A'$O2 SAG9Q8
$f S'O%9 P b2o 'hen
*<A2F1$9<DS
txtsector.Set1ocus
txtsector.<ocked P 'rue
'M'D9(''$)9.<ocked P 'rue
txtfare=.<ocked P 'rue
txtfare+.<ocked P 'rue
txtseats=.<ocked P 'rue
txtseats+.<ocked P 'rue
lblclose.Caption P QCloseQ
lblfind.9nabled P 'rue
lblmodify.9nabled P 'rue
lblsae.9nabled P 1alse
9xit Sub
9lse$f S'O%9 P b&es 'hen
length P <en7txtsector.'ext8
S'% P )id7txtsector.'ext! =! =8
1or i P = 'o length
$f 7)id7txtsector.'ext! i! =8 P Chr7@+88 'hen
S'% P /Case7S'% T )id7txtsector.'ext! i T =! =88
9nd $f
2ext i
%S.Open Q1<$3#'D9'A$<SQ! C2! adOpenDynamic! ad<ockOptimistic
1or k P = 'o %S.%ecordCount
$f S'% P )id7%S7QflightNnoQ8! =! @8 'hen
myflight P %S7QflightNnoQ8
9nd $f
%S.)oe2ext
2ext
$f myflight P QQ 'hen
S'%= P S'% T Q,,,Q
9lse
S'%= P myflight
9nd $f
'AF9 P Gal7%ight7S'%=! @88
'AF9 P 'AF9 T =
$f 'AF9 WP = And 'AF9 X =, 'hen
S'%= P S'% ; Q,,Q ; 'AF9
9lse$f 'AF9 WP =, And 'AF9 X =,, 'hen
S'%= P S'% ; Q,Q ; 'AF9
9nd $f
txtflightno.'ext P S'%=
seats P Gal7txtseats=8 T Gal7txtseats+8
C2.9xecute 7Q$2S9%' $2'O
1<$3#'D9'A$<S71<$3#'N2O!%9SNS9C'O%!%9SNC<ASS=!%9SNC<ASS+!D9('N'$)9!'%AG9<
<$23N1A%9=!'%AG9<<$23N1A%9+!2ONO1NS9A'S=!2ONO1NS9A'S+!balNseats8GA</9S7Q ; QOQ
; txtflightno.'ext ; QO!OQ ; txtsector.'ext ; QO!OQ ; txtfirst.'ext ; QO!OQ ; txtsecond.'ext ; QO!OQ ;
'M'D9(''$)9.'ext ; QO!OQ ; txtfare=.'ext ; QO!OQ ; txtfare+.'ext ; QO!OQ ; txtseats=.'ext ; QO!OQ ;
txtseats+.'ext ; QO! OQ ; seats ; QO8Q8
)sg*ox Q'he record has been saed.Q! bSystem)odal T b$nformation! Q%9CO%D SAG9DQ
lblnew.1oreColor P <abel=.1oreColor
lblsae.9nabled P 1alse
lblclose.Caption P QCloseQ
lblfind.9nabled P 'rue
lblmodify.9nabled P 'rue
9nd $f
%S.Close
9nd Sub
(riate Sub lblsaeN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblsae.1oreColor P b3reen
9nd Sub
(ublic 1unction *<A2F1$9<DS78
txtseats=.'ext P QQ
txtseats+.'ext P QQ
txtflightno.'ext P QQ
'M'D9(''$)9.'ext P QQ
txtsector.'ext P QQ
txtfare=.'ext P QQ
txtfare+.'ext P QQ
9nd 1unction
(ublic 1unction D$S(1$9<DS78
txtsector.'ext P %S7QresNsectorQ8
'M'D9(''$)9.'ext P %S7QD9('N'$)9Q8
txtfare=.'ext P %S7Q'%AG9<<$23N1A%9=Q8
txtfare+.'ext P %S7Q'%AG9<<$23N1A%9+Q8
txtseats=.'ext P %S7Q2ONO1NS9A'S=Q8
txtseats+.'ext P %S7Q2ONO1NS9A'S+Q8
9nd 1unction
(riate Sub lblupdateNClick78
C2.9xecute 7Qupdate flightdetails set traellingNfare=PQ ; Q OQ ; txtfare=.'ext ; QO!traellingNfare+POQ ;
txtfare+.'ext ; QO!deptNtimePOQ ; 'M'D9(''$)9.'ext ; QO!noNofNseats=POQ ; txtseats=.'ext ;
QO!noNofNseats+POQ ; txtseats+.'ext ; QO where flightNnoPQ ; Q OQ ; txtflightno.'ext ; QO Q8
)sg*ox Q'he record has been updated.Q! bSystem)odal T b$nformation! Q/(DA'$O2
CO21$%)9DQ
lblnew.Gisible P 'rue
lblsae.Gisible P 'rue
lblfind.Gisible P 'rue
lblcancel.Gisible P 1alse
lblupdate.Gisible P 1alse
lblmodify.Gisible P 'rue
lblclose.Gisible P 'rue
txtfare=.<ocked P 'rue
txtfare+.<ocked P 'rue
'M'D9(''$)9.<ocked P 'rue
txtseats=.<ocked P 'rue
txtseats+.<ocked P 'rue
lblclose.Gisible P '
9nd Sub
(riate Sub lblupdateN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblupdate.1oreColor P b3reen
9nd Sub
(riate Sub 'M'D9(''$)9NFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txtfare=.Set1ocus
9nd $f
9nd Sub
(riate Sub 'M'D9(''$)9N<ost1ocus78
Dim ' As $nteger
Dim L As $nteger
Dim S'% As String
Dim i As $nteger
Dim M As String
Dim & As $nteger
Dim ) As $nteger
Dim length As $nteger
S'% P 1ormat7'M'D9(''$)9.'ext! Q##.))Q8
$f 'M'D9(''$)9.'ext XW S'% 'hen
'M'D9(''$)9.Set1ocus
)sg*ox Q9nter the correct time Q! b$nformation T bSystem)odal! Q'$)9 9%%O%Q
9xit Sub
9nd $f
length P <en7S'%8
1or L P = 'o length
M P )id7S'%! L! =8
& P Asc7M8
$f & P 6H 'hen
' P <eft7S'%! +8
) P %ight7S'%! +8
$f ' W +A 'hen
)sg*ox Q9nter hours less than or equal to +A.Q! bSystem)odal T b$nformation! Q#O/%
9%%O%Q
'M'D9(''$)9.Set1ocus
9nd $f
$f ) WP C, 'hen
)sg*ox Q9nter minutes less than C,.Q! bSystem)odal T b$nformation! Q)$2/'9
9%%O%Q
'M'D9(''$)9.Set1ocus
9nd $f
9nd $f
2ext
1or i P = 'o length
M P )id7S'%! i! =8
& P Asc7M8
$f & X AH Or & W 6H 'hen
)sg*ox Q9nter the correct time.Q! bSystem)odal T b$nformation! Q'$)9 9%%O%Q
'M'D9(''$)9.Set1ocus
9xit 1or
9nd $f
2ext
9nd Sub
(riate Sub txtfare=NFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txtfare+.Set1ocus
9nd $f
9nd Sub
(riate Sub txtfare=N<ost1ocus78
Dim i As $nteger
Dim length As $nteger
Dim S'% As String
Dim M
Dim & As $nteger
S'% P txtfare=.'ext
length P <en7S'%8
1or i P = 'o length
M P )id7S'%! i! =8
& P Asc7M8
$f & X AH Or & W 64 'hen
)sg*ox Q9nter number in fare.Q! bSystem)odal T b$nformation! Q1A%9 9%%O%Q
txtfare=.Set1ocus
9xit 1or
9nd $f
$f length X @ 'hen
)sg*ox Q9nter fare not less than @ digits.Q! bSystem)odal T b$nformation! Q1A%9 9%%O%Q
txtfare=.Set1ocus
9xit 1or
9nd $f
$f Gal7S'%8 W =,,,, 'hen
)sg*ox Q9nter fare between =,, and =,,,,.Q! bSystem)odal T b$nformation! Q1A%9
9%%O%Q
txtfare=.Set1ocus
9xit 1or
9nd $f
2ext
9nd Sub
(riate Sub txtfare+NFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txtseats=.Set1ocus
9nd $f
9nd Sub
(riate Sub txtfare+N<ost1ocus78
Dim i As $nteger
Dim length As $nteger
Dim S'%= As String
Dim M As String
Dim & As $nteger
S'%= P txtfare+.'ext
length P <en7S'%=8
1or i P = 'o length
M P )id7S'%=! i! =8
& P Asc7M8
$f & X AH Or & W 64 'hen
)sg*ox Q9nter numbers in fare.Q! bSystem)odal T b$nformation! Q1A%9 9%%O%Q
txtfare+.Set1ocus
9xit 1or
9nd $f
$f length X @ 'hen
)sg*ox Q9nter fare not less than @ digits.Q! bSystem)odal T b$nformation! Q1A%9 9%%O%Q
txtfare+.Set1ocus
9xit 1or
9nd $f
$f S'%= W =,,,, 'hen
)sg*ox Q9nter fare between =,, and =,,,,.Q! bSystem)odal T b$nformation! Q1A%9
9%%O%Q
txtfare+.Set1ocus
9xit 1or
9nd $f
2ext
9nd Sub
(riate Sub txtseats=NFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txtseats+.Set1ocus
9nd $f
9nd Sub
(riate Sub txtseats=N<ost1ocus78
Dim i As $nteger
Dim length As $nteger
Dim S'%+ As String
Dim M As String
Dim & As $nteger
S'%+ P txtseats=.'ext
length P <en7S'%+8
1or i P = 'o length
M P )id7S'%+! i! =8
& P Asc7M8
$f & X AH Or & W 64 'hen
)sg*ox Q9nter numbers in seats.Q! bSystem)odal T b$nformation! QS9A'S 9%%O%Q
txtseats=.Set1ocus
9xit 1or
9nd $f
$f length X + 'hen
)sg*ox Q9nter seats greater than =,.Q! bSystem)odal T b$nformation! QS9A'S 9%%O%Q
txtseats=.Set1ocus
9xit 1or
9nd $f
$f S'%+ W =,, 'hen
)sg*ox Q9nter seats between =, and =,,.Q! bSystem)odal T b$nformation! QS9A'S
9%%O%Q
txtseats=.Set1ocus
9xit 1or
9nd $f
2ext
9nd Sub
(riate Sub txtseats+N<ost1ocus78
Dim i As $nteger
Dim length As $nteger
Dim S'%@ As String
Dim M As String
Dim & As $nteger
S'%@ P txtseats+.'ext
length P <en7S'%@8
1or i P = 'o length
M P )id7S'%@! i! =8
& P Asc7M8
$f & X AH Or & W 64 'hen
)sg*ox Q9nter number in seats.Q! bSystem)odal T b$nformation! QS9A'S 9%%O%Q
txtseats+.Set1ocus
9xit 1or
9nd $f
$f length X + 'hen
)sg*ox Q9nter seats greater than =,.Q! bSystem)odal T b$nformation! QS9A'S 9%%O%Q
txtseats+.Set1ocus
9xit 1or
9nd $f
$f S'%+ W =,, 'hen
)sg*ox Q9nter seats between =, and =,,.Q! bSystem)odal T b$nformation! QS9A'S
9%%O%Q
txtseats+.Set1ocus
9xit 1or
9nd $f
2ext
9nd Sub
(riate Sub txtsectorNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
'M'D9(''$)9.Set1ocus
9nd $f
9nd Sub
(riate Sub txtsectorN<ost1ocus78
Dim i As $nteger
Dim length As $nteger
Dim S'%+ As String
Dim M As String
Dim & As $nteger
Dim ? As String
strA P txtsector.'ext
? P 'rim7strA8
length P <en7?8
1or i P = 'o length
M P )id7?! i! =8
& P Asc7M8
$f & X @= Or & W @@ And & X C6 Or & W -, And & X -4 Or & W =++ 'hen
)sg*ox Q9nter correct sector.Q! bSystem)odal T b$nformation! QS9C'O% 9%%O%Q
txtsector.Set1ocus
9xit 1or
9nd $f
2ext i
txtsector P ?
txtsector P StrCon7txtsector! b(roperCase8
9nd Sub
FIND
Dim C2 As 2ew Connection
Dim %S As 2ew %ecordset
Dim myar As $nteger
(riate Sub 1ormN<oad78
Dim i As $nteger
C2.(roider P Q)icrosoft.Let.O<9D*.@.6=Q
C2.ConnectionString P QC.R(rogram 1ilesR)icrosoft Gisual StudioRG*-HR%9S9%GA'$O2.mdbQ
C2.Open
%S.Cursor<ocation P ad/seClient
%S.Open Q1<$3#'D9'A$<SQ! C2! adOpenDynamic! ad<ockOptimistic
1or i P = 'o %S.%ecordCount
cmbfind.Add$tem %S7Q1<$3#'N2OQ8
%S.)oe2ext
2ext
9nd Sub
(riate Sub 1ormN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblcancel.1oreColor P <abel+.1oreColor
lblok.1oreColor P <abel+.1oreColor
9nd Sub
(riate Sub 1ormNYuery/nload7cancel As $nteger! /nload)ode As $nteger8
$f /nload)ode P , 'hen
myar P ,
C2.Close
/nload )e
1<$3#'.Show
9nd $f
9nd Sub
(riate Sub 1ormN/nload7cancel As $nteger8
$f myar P = 'hen
C2.Close
9nd $f
9nd Sub
(riate Sub lblcancelNClick78
)sg*ox Q'he record canOt be found.Q! bSystem)odal T b$nformation! Q1$2D CA2C9<<9DQ
myar P ,
1<$3#'.Show
C2.Close
/nload )e
9nd Sub
(riate Sub lblcancelN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblcancel.1oreColor P bWhite
9nd Sub
(riate Sub lblokNClick78
On 9rror 3o'o %AF
Set %S P C2.9xecute7Qselect [ from flightdetails where flightNnoPQ ; Q OQ ; cmbfind.'ext ; QO Q8
D$S(1$9<DS
myar P =
1<$3#'.Show
/nload )e
%AF.
$f 9rr.2umber P @,+= 'hen
)sg*ox Q1light 2o. does not existQ! b$nformation T bSystem)odal! Q1$2D 9%%O%Q
9nd $f
9nd Sub
(riate Sub lblokN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblok.1oreColor P bWhite
9nd Sub
(ublic 1unction D$S(1$9<DS78
1<$3#'.txtflightno.'ext P %S7Q1<$3#'N2OQ8
1<$3#'.txtsector.'ext P %S7QresNsectorQ8
1<$3#'.'M'D9(''$)9.'ext P %S7QD9('N'$)9Q8
1<$3#'.txtfare=.'ext P %S7Q'%AG9<<$23N1A%9=Q8
1<$3#'.txtfare+.'ext P %S7Q'%AG9<<$23N1A%9+Q8
1<$3#'.txtseats=.'ext P %S7Q2ONO1NS9A'S=Q8
1<$3#'.txtseats+.'ext P %S7Q2ONO1NS9A'S+Q8
1<$3#'.txtflightno.<ocked P 'rue
1<$3#'.txtsector.<ocked P 'rue
1<$3#'.'M'D9(''$)9.<ocked P 'rue
1<$3#'.txtfare=.<ocked P 'rue
1<$3#'.txtfare+.<ocked P 'rue
1<$3#'.txtseats=.<ocked P 'rue
1<$3#'.txtseats+.<ocked P 'rue
9nd 1unction
FLIGHT NUMBER
Dim C2 As 2ew Connection
Dim flight%S As 2ew %ecordset
Dim ticketrs As 2ew %ecordset
Dim resrs As 2ew %ecordset
Dim 1%S As 2ew %ecordset
Dim )&'$CF9' As String
Dim our'$CF9' As String
(riate Sub cancelprintNClick78
Dim i As $nteger
Dim myf As $nteger
Dim fare As $nteger
1%S.Cursor<ocation P ad/seClient
1%S.Open Q1<$3#'2/)*9%Q! C2! adOpenDynamic
1%S.)oe1irst
$f cmbpnrno.Gisible P 1alse 'hen
Set 1%S P C2.9xecute7QS9<9C' [ 1%O) 1<$3#'2/)*9% W#9%9 '$CF9'N2OPQ ; QOQ ;
)&'$CF9' ; QOQ8
D$S(1$9<DS
cancel.'M'(2%2O7L8.Gisible P 1alse
cancel.'M'2A)97L8.Gisible P 1alse
cancel.<abel+.Gisible P 1alse
cancel.<abel@.Gisible P 1alse
cancel.Show
1<$3#'2/)*9%.#ide
9lse$f cmbpnrno.Gisible P 'rue 'hen

<abelH.Gisible P 'rue
'M'2A)9.Gisible P 'rue
1%S.Close
1%S.Open 7QS9<9C' [ 1%O) 1<$3#'2/)*9% W#9%9 '$CF9'N2OPQ ; QOQ ; )&'$CF9' ;
QOQ8
fare P 1%S7Q'otalNfareQ8 5 1%S7QnoNofNseatsQ8
myf P 1%S7QnoNofNseatsQ8
myf P myf : cmbpnrno.<istCount
fare P fare [ myf
1%S.)oe1irst
D$S(1$9<DS
cancel.<abel+.Gisible P 'rue
cancel.<abel@.Gisible P 'rue
L P ,
1or i P , 'o 1%S.%ecordCount : =
cancel.'M'(2%2O7i8.Gisible P 'rue
cancel.'M'2A)97i8.Gisible P 'rue
cancel.'M'(2%2O7i8.'ext P 1%S7QpnrNnoQ8
cancel.'M'2A)97i8.'ext P 1%S7QnameQ8
L P L T =
<oad cancel.'M'(2%2O7i T =8
<oad cancel.'M'2A)97i T =8
& P & T C,,
cancel.'M'(2%2O7i T =8.'op P cancel.'M'(2%2O7i8.'op T &
cancel.'M'2A)97i T =8.'op P cancel.'M'2A)97i8.'op T &
1%S.)oe2ext
2ext i
cancel.Show
cancel.'M'S9A'S.'ext P myf
cancel.'M'1A%9 P fare
storeticket P 'M''$CF9'2O.'ext
1<$3#'2/)*9%.#ide
9nd $f
C2.9xecute 7QD9<9'9 1%O) '$CF9'D9'A$<S W#9%9 '$CF9'N2OPQ ; QOQ ; our'$CF9' ; QOQ8
1%S.Close
9nd Sub
(riate Sub cancelprintN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
cancelprint.1oreColor P b3reen
9nd Sub
(riate Sub cmbpnrnoNClick78
Set ticketrs P C2.9xecute7QS9<9C' 2ONO1NS9A'S!1<$3#'N2O!'O'A<N1A%9 1%O)
'$CF9'D9'A$<S W#9%9 '$CF9'N2OPQ ; QOQ ; ticketno=.'M''$CF9'2O ; QOQ8
'M'S9A'S.'ext P ticketrs7Q2ONO1NS9A'SQ8
'M'1A%9.'ext P ticketrs7Q'O'A<N1A%9Q8
'M'1<$3#'2O.'ext P ticketrs7Q1<$3#'N2OQ8
ticketrs.Close
Set resrs P C2.9xecute7QS9<9C' %9SNDA'9!%9SNS9C'O%!%9SNC<ASS!'$CF9'N2O!(ASN2A)9
1%O) %9S9%GA'$O2 W#9%9 (2%N2OPQ ; QOQ ; cmbpnrno.'ext ; QOQ8
'M''$CF9'2O.'ext P resrs7Q'$CF9'N2OQ8
txtdate.'ext P resrs7Q%9SNDA'9Q8
'M'S9C'O%.'ext P resrs7Q%9SNS9C'O%Q8
'M'C<ASS.'ext P resrs7Q%9SNC<ASSQ8
'M'2A)9.'ext P resrs7Q(ASN2A)9Q8
resrs.Close
9nd Sub
(riate Sub 1ormNActiate78
C2.(roider P Q)icroSoft.Let.O<9D*.@.6=Q
C2.ConnectionString P QC.R(rogram filesR)icrosoft Gisual StudioRG*-HR%9S9%GA'$O2.mdbQ
C2.Open
resrs.Cursor<ocation P ad/seClient
resrs.Open Q S9<9C' [ from %9S9%GA'$O2 where ticketNnoP Q ; Q OQ ; ticketno=.'M''$CF9'2O
; QO Q! C2! adOpenDynamic
1or i P = 'o resrs.%ecordCount
cmbpnrno.Add$tem resrs7Q(2%N2OQ8
resrs.)oe2ext
2ext
resrs.Close
9nd Sub
(riate Sub 1ormN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
2O.1oreColor P <abel=.1oreColor
&9S.1oreColor P <abel=.1oreColor
<*<&9S.1oreColor P <abel=.1oreColor
<*<2O.1oreColor P <abel=.1oreColor
cancelprint.1oreColor P <abel=.1oreColor
9nd Sub
(riate Sub 1ormN/nload7cancel As $nteger8
/nload ticketno=
C2.Close
9nd Sub
(riate Sub <*<2ONClick78
1<$3#'2/)*9%.cancelprint.Gisible P 'rue
<*<&9S.Gisible P 1alse
<abel-.Gisible P 1alse
<*<2O.Gisible P 1alse
9nd Sub
(riate Sub <*<2ON)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
<*<2O.1oreColor P b3reen
9nd Sub
(riate Sub <*<&9SNClick78
With 1<$3#'2/)*9%
.&9S.Gisible P 'rue
.2O.Gisible P 'rue
.<abelA.Gisible P 'rue
.cmbpnrno.9nabled P 'rue
O.cancelprint.Gisible P 'rue
.<abel-.Gisible P 1alse
.<*<2O.Gisible P 1alse
.<*<&9S.Gisible P 1alse
9nd With
9nd Sub
(riate Sub <*<&9SN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
<*<&9S.1oreColor P b3reen
9nd Sub
(riate Sub 2ONClick78
/nload ticketno=
/nload 1<$3#'2/)*9%
A$%WA&S%9S9%GA'$O2.Show
9nd Sub
(riate Sub 2ON)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
2O.1oreColor P b3reen
9nd Sub
(riate Sub &9SNClick78
Dim M As $nteger
Dim & As $nteger
$f cmbpnrno.Gisible P 1alse 'hen
flight%S.Open Q1<$3#'D9'A$<SQ! C2! adOpenDynamic! ad<ockOptimistic
ticketrs.Open Q'$CF9'D9'A$<SQ! C2! adOpenDynamic! ad<ockOptimistic
1%S.Open Q1<$3#'2/)*9%Q! C2! adOpenDynamic
M P flight%S7Q*A<NS9A'SQ8 T Gal7'M'S9A'S.'ext8
)&'$CF9' P 'M''$CF9'2O.'ext
C2.9xecute 7Q$2S9%' $2'O
1<$3#'2/)*9%7%9SNC<ASS!1<$3#'N2O!'$CF9'N2O!%9SNS9C'O%!%9SNDA'9!'O'A<N1A
%9!2ONO1NS9A'S8 GA</9S7Q ; Q OQ ; 'M'C<ASS.'ext ; QO!OQ ; 'M'1<$3#'2O.'ext ; QO!OQ ;
'M''$CF9'2O.'ext ; QO!OQ ; 'M'S9C'O%.'ext ; QO!OQ ; txtdate.'ext ; QO!OQ ; 'M'1A%9.'ext ;
QO!OQ ; 'M'S9A'S.'ext ; QO8Q8
C2.9xecute 7QD9<9'9 1%O) '$CF9'D9'A$<S W#9%9 '$CF9'N2OPQ ; QOQ ;
'M''$CF9'2O.'ext ; QOQ8
C2.9xecute 7Q/(DA'9 1<$3#'D9'A$<S S9' *A<NS9A'SPQ ; QO Q ; M ; QO W#9%9
1<$3#'N2OPQ ; QOQ ; 'M'1<$3#'2O.'ext ; QOQ8
C2.9xecute 7QD9<9'9 1%O) %9S9%GA'$O2 W#9%9 '$CF9'N2OPQ ; QOQ ;
'M''$CF9'2O.'ext ; QOQ8
*<A2F1$9<DS
Ocancelprint.Gisible P 'rue
flight%S.Close
ticketrs.Close
1%S.Close
9lse$f cmbpnrno.Gisible P 'rue 'hen
ticketrs.Open Q'$CF9'D9'A$<SQ! C2! adOpenDynamic
flight%S.Open Q1<$3#'D9'A$<SQ! C2! adOpenDynamic! ad<ockOptimistic
M P flight%S7Q*A<NS9A'SQ8 T =
& P ticketrs7Q2ONO1NS9A'SQ8 : =
our'$CF9' P 'M''$CF9'2O.'ext
)&'$CF9' P 'M''$CF9'2O.'ext
C2.9xecute 7Q$2S9%' $2'O
1<$3#'2/)*9%7%9SNC<ASS!1<$3#'N2O!'$CF9'N2O!%9SNS9C'O%!%9SNDA'9!'O'A<N1A
%9!2ONO1NS9A'S!(2%N2O!2A)98 GA</9S7Q ; Q OQ ; 'M'C<ASS.'ext ; QO!OQ ;
'M'1<$3#'2O.'ext ; QO!OQ ; 'M''$CF9'2O.'ext ; QO!OQ ; 'M'S9C'O%.'ext ; QO!OQ ;
txtdate.'ext ; QO!OQ ; 'M'1A%9.'ext ; QO!OQ ; 'M'S9A'S.'ext ; QO!OQ ; cmbpnrno.'ext ; QO!OQ ;
'M'2A)9.'ext ; QO8Q8
C2.9xecute 7Q/(DA'9 '$CF9'D9'A$<S S9' 2ONO1NS9A'SPQ ; QOQ ; & ; QO W#9%9
'$CF9'N2OPQ ; QOQ ; 'M''$CF9'2O.'ext ; QOQ8
C2.9xecute 7QD9<9'9 1%O) %9S9%GA'$O2 W#9%9 (2%N2OPQ ; QOQ ; cmbpnrno.'ext ; QOQ8
C2.9xecute 7Q/(DA'9 1<$3#'D9'A$<S S9' *A<NS9A'SPQ ; QOQ ; M ; QO W#9%9
1<$3#'N2OPQ ; QOQ ; 'M'1<$3#'2O.'ext ; QOQ8
cmbpnrno.%emoe$tem 7cmbpnrno.<ist$ndex8
ticketrs.Close
flight%S.Close
*<A2F1$9<DS
With 1<$3#'2/)*9%
.<abel-.Gisible P 'rue
.<*<2O.Gisible P 'rue
.<*<&9S.Gisible P 'rue
.&9S.Gisible P 1alse
.2O.Gisible P 1alse
.<abelA.Gisible P 1alse
O .cancelprint.Gisible P 'rue
.cmbpnrno.9nabled P 1alse
9nd With
$f cmbpnrno.<istCount P , 'hen
With 1<$3#'2/)*9%
.<*<2O.Gisible P 1alse
.<*<&9S.Gisible P 1alse
.<abel-.Gisible P 1alse
.cancelprint.Gisible P 'rue
9nd With
9nd $f
9nd $f
9nd Sub
(riate Sub &9SN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
&9S.1oreColor P b3reen
9nd Sub
(ublic 1unction *<A2F1$9<DS78
'M'2A)9.'ext P QQ
'M'1A%9.'ext P QQ
'M'S9C'O%.'ext P QQ
'M'C<ASS.'ext P QQ
'M'1<$3#'2O.'ext P QQ
'M'S9A'S.'ext P QQ
txtdate.'ext P QQ
'M''$CF9'2O.'ext P QQ
9nd 1unction
(ublic 1unction D$S(1$9<DS78
With cancel
.'M'C<ASS.'ext P 1%S7QresNclassQ8
.txtdate.'ext P 1%S7QresNdateQ8
.'M'1A%9.'ext P 1%S7QtotalNfareQ8
.'M'1<$3#'2O.'ext P 1%S7QflightNnoQ8
.'M'S9A'S.'ext P 1%S7QnoNofNseatsQ8
.'M'S9C'O%.'ext P 1%S7QresNsectorQ8
.'M''$CF9'2O.'ext P 1%S7QticketNnoQ8
9nd With
9nd 1unction
CHANGE ADMINISTRATOR
PASSWORD
Dim C2 As 2ew Connection
Dim A%S As 2ew %ecordset
Dim )&(WD As String
(riate Sub 1ormN<oad78
C2.(roider P Q)$C%OSO1'.L9'.O<9D*.@.6=Q
C2.ConnectionString P QC.R(%O3%A) 1$<9SR)$C%OSO1' G$S/A<
S'/D$ORG*-HR%9S9%GA'$O2.mdbQ
C2.Open
A%S.Open QAD)$2(ASSWO%DQ! C2! adOpenDynamic
9nd Sub
(riate Sub 1ormN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblchange.1oreColor P <abel=.1oreColor
lblcancel.1oreColor P <abel=.1oreColor
9nd Sub
(riate Sub 1ormNYuery/nload7cancel As $nteger! /nload)ode As $nteger8
C2.Close
9nd Sub
(riate Sub lblcancelNClick78
/nload C#A239AD)$2
9nd Sub
(riate Sub lblcancelN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblcancel.1oreColor P b3reen
9nd Sub
(riate Sub lblchangeNClick78
$f txtoldpwd.'ext P QQ 'hen
)sg*ox Q9nter old password.Q! bSystem)odal T b$nformation! Q(ASSWO%D 9%%O%Q
txtoldpwd.Set1ocus
9xit Sub
9lse$f txtnewpwd.'ext P QQ 'hen
)sg*ox Q9nter new password.Q! bSystem)odal T b$nformation! Q(ASSWO%D 9%%O%Q
txtnewpwd.Set1ocus
9xit Sub
9lse$f txtconfirmpwd.'ext P QQ 'hen
)sg*ox Q9nter confirm password.Q! bSystem)odal T b$nformation! Q(ASSWO%D 9%%O%Q
txtconfirmpwd.Set1ocus
9xit Sub
9lse$f txtconfirmpwd.'ext XW txtnewpwd.'ext 'hen
)sg*ox Q%econfirm your password.Q! bSystem)odal T b$nformation! Q(ASSWO%D 9%%O%Q
txtconfirmpwd.Set1ocus
9xit Sub
9lse$f txtconfirmpwd.'ext P txtnewpwd.'ext 'hen
C2.9xecute 7Qupdate AD)$2(ASSWO%D set (ASSWO%DPQ ; QOQ ; txtconfirmpwd.'ext ; QOQ8
)sg*ox Q&our password has been changed.Q! bSystem)odal T b$nformation! Q(ASSWO%D
C#A239DQ
9nd $f
9nd Sub
(riate Sub lblchangeN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblchange.1oreColor P b3reen
9nd Sub
(riate Sub txtnewpwdNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txtconfirmpwd.Set1ocus
9nd $f
9nd Sub
(riate Sub txtoldpwdNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
Call txtoldpwdN<ost1ocus
9nd $f
9nd Sub
(riate Sub txtoldpwdN<ost1ocus78
)&(WD P A%S7Q(ASSWO%DQ8
$f txtoldpwd.'ext XW )&(WD 'hen
)sg*ox Q(assword canOt be changed! old password doenOt matches! reenter your password.Q!
bSystem)odal T b$nformation! Q(ASSWO%D 9%%O%Q
txtoldpwd P QQ
txtoldpwd.Set1ocus
9lse$f txtoldpwd.'ext P )&(WD 'hen
txtnewpwd.Set1ocus
9nd $f
9nd Sub
(riate Sub txtusernameNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txtoldpwd.Set1ocus
9nd $f
9nd Sub
CHANGE USER PASSWORD
Dim C2 As 2ew Connection
Dim urs As 2ew %ecordset
Dim )&(WD As String
(riate Sub 1ormN<oad78
C2.(roider P Q)$C%OSO1'.L9'.O<9D*.@.6=Q
C2.ConnectionString P QC.R(%O3%A) 1$<9SR)$C%OSO1' G$S/A<
S'/D$ORG*-HR%9S9%GA'$O2.mdbQ
C2.Open
urs.Open Q(%OL9C'(ASSWO%DQ! C2! adOpenDynamic
9nd Sub
(riate Sub 1ormN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblchange.1oreColor P <abel=.1oreColor
lblcancel.1oreColor P <abel=.1oreColor
9nd Sub
(riate Sub 1ormNYuery/nload7cancel As $nteger! /nload)ode As $nteger8
C2.Close
9nd Sub
(riate Sub <abel+NClick78
9nd Sub
(riate Sub lblcancelNClick78
/nload C#A239/S9%
9nd Sub
(riate Sub lblcancelN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblcancel.1oreColor P bWhite
9nd Sub
(riate Sub lblchangeNClick78
$f txtoldpwd.'ext P QQ 'hen
)sg*ox Q9nter old password.Q! bSystem)odal T b$nformation! Q(ASSWO%D 9%%O%Q
txtoldpwd.Set1ocus
9xit Sub
9lse$f txtnewpwd.'ext P QQ 'hen
)sg*ox Q9nter new password.Q! bSystem)odal T b$nformation! Q(ASSWO%D 9%%O%Q
txtnewpwd.Set1ocus
9xit Sub
9lse$f txtconfirmpwd.'ext P QQ 'hen
)sg*ox Q9nter confirm password.Q! bSystem)odal T b$nformation! Q(ASSWO%D 9%%O%Q
txtconfirmpwd.Set1ocus
9xit Sub
9lse$f txtconfirmpwd.'ext XW txtnewpwd.'ext 'hen
)sg*ox Q%econfirm your password.Q! bSystem)odal T b$nformation! Q(ASSWO%D 9%%O%Q
txtconfirmpwd.Set1ocus
9xit Sub
9lse$f txtconfirmpwd.'ext P txtnewpwd.'ext 'hen
C2.9xecute 7Qupdate pro"ectpassword set (ASSWO%DPQ ; QOQ ; txtconfirmpwd.'ext ; QOQ8
)sg*ox Q&our password has been changed.Q! bSystem)odal T b$nformation! Q(ASSWO%D
C#A239DQ
9nd $f
9nd Sub
(riate Sub lblchangeN)ouse)oe7*utton As $nteger! Shift As $nteger! M As Single! & As Single8
lblchange.1oreColor P bWhite
9nd Sub
(riate Sub txtnewpwdNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txtconfirmpwd.Set1ocus
9nd $f
9nd Sub
(riate Sub txtoldpwdNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txtnewpwd.Set1ocus
9nd $f
9nd Sub
(riate Sub txtoldpwdN<ost1ocus78
)&(WD P urs7Q(ASSWO%DQ8
$f txtoldpwd.'ext XW )&(WD 'hen
)sg*ox Q(assword canOt be changed! old password doenOt matches! reenter old passwordQ!
bSystem)odal T b$nformation! Q(ASSWO%D 9%%O%Q
txtoldpwd.'ext P QQ
txtoldpwd.Set1ocus
9lse$f txtoldpwd.'ext P )&(WD 'hen
txtnewpwd.Set1ocus
9nd $f
9nd Sub
(riate Sub txtusernameNFey(ress7FeyAscii As $nteger8
$f FeyAscii P =@ 'hen
txtoldpwd.Set1ocus
9nd $f
9nd Sub
ABOUT US
(riate Sub 1ormNYuery/nload7cancel As $nteger! /nload)ode As $nteger8
/nload aboutus
9nd Sub
(riate Sub 'imer=N'imer78
<abel+.'op P <abel+.'op : =,,
<abel@.'op P <abel@.'op : =,,
<abelA.'op P <abelA.'op : =,,
<abel6.'op P <abel6.'op : =,,
$f <abel+.'op X aboutus.'op And <abel@.'op X aboutus.'op And <abelA.'op X aboutus.'op And
<abel6.'op X aboutus.'op 'hen
<abel+.'op P aboutus.#eight
<abel@.'op P aboutus.#eight
<abelA.'op P <abel+.'op T AH,
<abel6.'op P <abelA.'op T @C,
9nd $f
9nd Sub
'he pro"ect made me reali?e the significance of deeloping software for client! where all the
eentualities hae to be taken care of! unlike at educational institution! where the sole aim is to learn.
What may be seen to the deeloped to be a software complete in all respects! $ was required to meet the
stringent demands of the in:house client in the materials department. 'hrough this seemed tough at first! $
reali?ed that pressure goaded us on to deelop better and better applications.
During the pro"ect! the real importance for following all the principle of System Analysis and
Design drawled on me. $ felt the necessity of going through the seeral stages! because only such a
process could make one understand the problems at hand! more so due to the enormous si?e of data stores
inoled and their manipulation
$n retrospect! $ would like to say that the institute proided us with sample opportunities to learn
Oracle H and its tools. $ specifically was able to learn MS-ACCESS and its 'ools. $ specially was able to
learn VISUAL BASIC 6.0. $ also succeeded in understanding a number of tricky concept in database!
which were earlier only ha?y blobs in the realm of our comprehension. #oweer my pro"ect library
management is an asset to the organi?ation! een then FURTHER ENHANCEMENT are possible in this
pro"ect such as new forms ; reports can be included as and when required.
/nfortunately due to lack of time we can deeloped any report in this system but this is not the
end of this system software! it is beginning. We can change and modify this software due to more
requirements of needs and also remoed some errors which is finding in this system software.
We also deeloped some complex reports which is required and makes this software more
powerful and friendly for user by which user can handle library data more easily and can calculate all the
calculation without any other software i.e.! userDs all the requirements will be fulfill by this software and
user can manage all the numeric data calculations.
S.No. Terms Description
= BACK UP A copy of something presered to insure against
the damage of primary copy.
+ DATA BASE A repository of stored data.
@ DBMS Data *ase )anagement System is a layer if
Software between the physical database itself ;
the users of the system.
A DD Data Dictionary! which is a data base that
Contains \data about data] i.e. description of
other in the system
6 FLOW CHART 1<OW C#A%' which
depicts relation between different entities in the
system.
C HARDWARE 'he physical equipment in a system
comprising of computers! terminals! Feyboards
; Other ancillary items.
4 ITD $nformation 'echnology Diision.
H MENU A group of options from which Selection is to be
made.
- MODULE A small components of a larger system
=, ON-LINE A term describing people! equipment or Deices
that are in direct communication with the
computer
== PI (reliminary $nestigation
=+ PROGRAM A sequence of instruction gien to the Computer
to sole a particular problem.
=@ PROTOTYPE A deelopment model of the system for test
(urpose
=A RDBMS A data *ase5 )anagement System in which
%elationships are defined by tables.
=6 RSD %equirement Specification Document.
=C SCALABILITY 'he ability to increase the performance With the
growth in #ardware.
=4 SOFTWARE Computer program! procedure ; Associated
documentation concerned with the operator of a
system.
BOOK NAME AUTHOR
=. (rogramming in G* *lack *ook
+. Gisual *asic from the 3round /p 3ary Cornell
@. G* with )S:Access %ita Sahoo
A. Gisual *asic C., Smith

Vous aimerez peut-être aussi