Professional Documents
Culture Documents
1 BCA-4th Sem.
What Is A Project?
A project is a series of activities taken by a programmer to practically apply and implement the knowledge gained during course of study. In general one can say that a project is not a physical objective, not the end result, but it has something to do with the going on in between, which must be same, whether we build a high technology process plant or merely hold an election, it is termed as a project. Starting from definition of a mission, planning activities involved to reach the goal, resources required and their utilization for the same till the completion of the mission all constitute a project. The goal or requirement of a project decides the path and mode wide that a project is to be executed.
2 BCA-4th Sem.
Why A Project?
Learning by doing is a trusted concept. A project provides an opportunity to the student to implement the concepts in real life situation while reflecting their special area of interest. It is putting ones knowledge gained to real test. The effort put into planning and executing through different stage till the end goal is achieved gives a practical experience to the student. And practical experience is must in each and every aspect of life. One encounter many difficulties on the way may be due to over assessment or underassessment of risks or the management of the resources during project execution. All the difficulties encountered on the way add to ones experience. The experience gained in real situation can never be achieved without going through the whole process oneself.
3 BCA-4th Sem.
AIM
The aim of the project is to highlight different aspects of software development like: modular programming, optimizing code preparation, program and data flow representation. It should have following features Easy interface: Aim of any project is to fulfill the goal for which it has been created. The interface is easy to understand. The user will feel comfortable while working on it i.e. it should be user friendly. Easy to update: Changes have to be made because errors are encountered when the end uses the product. The software has to be adapted to the changing external environment e.g. new operating system or peripheral devices. The customer may require new additions or enhancement.
4 BCA-4th Sem.
5 BCA-4th Sem.
6 BCA-4th Sem.
Software Design
The purpose of the design phase is to plan a solution of the problem specified by the requirement document. This phase is the first step in moving from the problem domain to the solution domain. This starts with what is needed, design takes us towards how to satisfy the needs. The design of a system is perhaps the most critical factor affecting the quality of the software. It has major impact on the later phases, particularly testing and maintenance. The output of this phase is the design document. This document is similar to a blueprint or plans for the solution and is used during implementation, testing and maintenance. The design activity is often divided into separate phases - system design and detailed design. System design, which is sometimes also, called top-level design, aims to identify the modules that should be in the system, the specifications of these modules, and how they interact with each other to produce the desired results. At the end of system design all the major data structure, file formats, output formats, and the major modules in the system and their specifications are decided. In detailed design, the internal logic of each of the module specified in the system design is decided. During this phase further details of the data structures and algorithmic design of each of the modules is specified. The logic of a module is usually specified in a high-level design description language.
8 BCA-4th Sem.
Coding
Once the design is complete, most of the major decisions about the system have made. The details about coding the design depend on the programming language chosen. The goal during the coding phase is to translate the design of the system into code in a given programming language i.e. the design is to be translated onto a machine-readable form. The coding phase affects both the testing and maintenance phase. Wellwritten code can reduce the testing and maintenance efforts. During coding the focus should be on developing programs that are easy to read and understand, and not simply on developing programs that are easy to write. Simplicity and clarity should be starved for during the coding phase. An important concept that helps the understanding of program is structured programming. The goal of structured programming is to linearize the control flow in program. The program should be organized as sequence of statements, and during execution the statements are executed in sequence given in the program. For structured programming, a few single entry-exit constructs should be used. Theses constructs include selection (if the else) and iteration (while-do, repeat until, for loop). With these constructs it is possible to construct a program as a sequence of single-entry-exit constructs.
9 BCA-4th Sem.
Testing
Testing is the major quality control measure used during software development. Its basic function is to detect errors in the software. During requirement analysis and design, the output is a document that is usually textual and non-executable. After the coding phase, computer programs are available that can be executed for testing purpose. This implies that testing will uncover the errors introduced in coding phase as well as earlier phase. Testing starts with unit testing. In this each module is tested separately and is performed by the programmer simultaneously along the coding of the module. During integration of modules, integration testing is performed to detect design errors by focusing on testing the interconnections between modules. System testing is done after integrating testing. The system is tested against the system requirements to see if all the requirements are met and if the system performs as specified by the client, on the real-life data of the client, the operation of the system. Software typically undergoes many levels of testing from unit testing to system or acceptance testing. In unit testing small modules of the software are tested separately with focus on testing with the focus on testing the functionality or external behavior of system. Testing classes is a fundamentally different from testing function, as a function has a clearly defined input-output behavior, while a class does not have an input-output behavior. We can test a method of a class using approaches for function testing but a class cannot be tested using these approaches, so for testing methods individually, the control flow-based and data-flow based structural testing techniques can be applied.
Levels of Testing
10 BCA-4th Sem.
The Basic Level of testing are Unit testing, Integration testing and System acceptance testing. These different levels of testing detect different types of faults. The First Level of testing is called unit testing. The different modules are tested against the specification produced during design of the modules. The internal logic of the modules is checked. The Third Level of the testing is often called integration testing. Different modules are combined into subsystem, which is then tested. The Next Levels are system testing and acceptance testing; the entire software system is tested. The reference document for this purpose is the requirements document and the goal is to see if the software performed with realistic data of the client to demonstrate that the software is working satisfactorily. In this case of the Entrance Examination Evaluation System the modules are generated step by step and then unit testing is performed. Like Student Information Module, Solution Set Module, Registration Module, Staff Authority Module, Student Answer Sheet Module, Data Report Module, etc. Then these are integrated and executing the system software does system testing. And in order to perform the acceptance testing some data from the imaginary answer sheets are entered in order to execute the software.
Implementation
11 BCA-4th Sem.
Implementation is the process of having system personnel check and put new equipment into use, train users, install the application and construct any files of data needed to use it. This phase is less creative than system design. Depending on the size of the organization that will be involved in using the application and the risk involved in its use, software developer may choose testing the operation in only one area of organization with only one or two persons. Sometimes, they will run both old and new system in parallel way to compare the results. In some situations, software developers stop using the old software one-day and start using the new one the next. Evaluation of the software is performed to identify its strength and weaknesses. The actual evaluation can occur along the following dimensions: Operational Evaluation: Assessment of the manner in which the software functions. Including ease of use, response time, overall reliability and level of utilization. Organizational Impact: Identification and measurement of benefits to the organization in such areas as financial concerns, operational efficiency, and competitive impact. User Manager Assessment: Evaluation of the attitudes of senior and user manager within the organization, as well as end users.
Maintenance
12 BCA-4th Sem.
Software maintenance is defined as the process of modifying a software product, component, or system subsequent to delivery and installation that corrects faults, improves product performance or other product attributes, or adapts the product to a changed operational environment. It is safe to say that the day that a large software product goes into service, functional, performance, operator and environmental requirements will undergo changes. Moreover the delivered software product will contain some latent defects that were not detected during to fix latent defects, adaptive actions to deal with changing environments, and perceptive actions to accommodate new requirements. To conduct an effective maintenance action, software configuration control, good quality documentation is extremely helpful. Maintenance activities test the quality of the software, the quality of SRS (Software Requirement Specification) and SDS and the ability of architecture to accommodate growth and functional additions or changes.
13 BCA-4th Sem.
14 BCA-4th Sem.
Project Description
This is project on Airline Reservation System. The project is capable of performing different form of work. For example if the user had to input reservation than there is Enter A.R.S. form. After that there is Hotel Reservation form for reserve a Hotel room. Then next is operation in operation button you can check Reservation Entry Updates and next is Hotel stay entry form There are also help form to take help. Different types of Data report are generated to keep the had copy of the transaction made by the Airline. Data report are generated for the book check Hotel Reservation, Person staying in the hotel, Monthly Reservation, weekly reservation, Daily reservation.
15 BCA-4th Sem.
Project Objective
The project look after the Reservation maintained by the Airlines. The project keep the Airline and Hotel Reservation. This project also keep the track of the book. The project also keep the track of the customer who have staying in the Hotel. The project also keep the track of the Airline Reservation from which who are living in the Hotel. Data report are generated in the project where ever necessary.
16 BCA-4th Sem.
Project Introduction
The Project is on Airline Reservation System for a Airline. The project is designed and developed in Microsoft Visual Basic 6.0 as front end and Microsoft Access 2000 as back end for data storage. Crystal Reports are used for different report generated in the project.
17 BCA-4th Sem.
18 BCA-4th Sem.
VB6
A programming language and environment developed by Microsoft. Based on the BASIC language, Visual Basic was one of the first products to provide a graphical programming environment and a paint metaphor for developing user interfaces. Instead of worrying about syntax details, the Visual Basic programmer can add a substantial amount of code simply by dragging and dropping controls, such as buttons and dialog boxes, and then defining their appearance and behavior. Although not a true object-oriented programming language in the strictest sense, Visual Basic nevertheless has an object-oriented philosophy. It is sometimes called an event-driven language because each object can react to different events such as a mouse click. Since its launch in 1990, the Visual Basic approach has become the norm for programming languages. Now there are visual environments for many programming languages, including C, C++, Pascal, and Java. Visual Basic is sometimes called a Rapid Application Development (RAD) system because it enables programmers to quickly build prototype applications.
Simple Object oriented Rapid application development(RAD) Graphical user inter face(GUI) Supporting all databases
19 BCA-4th Sem.
20 BCA-4th Sem.
21 BCA-4th Sem.
MS Access
Microsoft Office Access, previously known as Microsoft Access, is a relational database management system from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software development tools. It is a member of the 2007 Microsoft Office system. Access can use data stored in Access/Jet, Microsoft SQL Server, Oracle, or any ODBC-compliant data container (including MySQL and PostgreSQL). Skilled software developers and data architects use it to develop application software. Relatively unskilled programmers and nonprogrammer "power users" can use it to build simple applications. It supports some object-oriented techniques but falls short of being a fully object-oriented development tool. Access was also the name of a communications program from Microsoft, meant to compete with ProComm and other programs. This proved a failure and was dropped.[1] Years later Microsoft reused the name for its database software. Access is used by small businesses, within departments of large corporations, and by hobby programmers to create ad hoc customized desktop systems for handling the creation and manipulation of data. Access can be used as a database for basic web based applications hosted on Microsoft's Internet Information Services and utilizing Microsoft Active Server Pages ASP.
22 BCA-4th Sem.
Some professional application developers use Access for rapid application development, especially for the creation of prototypes and standalone applications that serve as tools for on-the-road salesmen. Access does not scale well if data access is via a network, so applications that are used by more than a handful of people tend to rely on Client-Server based solutions.[citation
needed]
queries and VB code) can be used against a host of database backend, including JET (file-based database engine, used in Access by default), Microsoft SQL Server, Oracle, and any other ODBC-compliant product. If the database design needs to be secured to prevent from changes, Access databases can be locked/protected (and the source code compiled) by converting the database to an .MDE file. All changes to the database structure (tables, forms, macros, etc.) need to be made to the original MDB and then reconverted to MDE. Some tools are available for unlocking and 'decompiling', although certain elements including original VBA comments and formatting are normally irretrievable.
23 BCA-4th Sem.
24 BCA-4th Sem.
Software Requirement:
25 BCA-4th Sem.
26 BCA-4th Sem.
Software Analysis
Requirement analysis Requirement analysis was a separate topic in one of the earlier units and we have discussed it in great detail. Data specification is an extension of the requirement analysis phase because it documents the information gathered during the requirement analysis phase. At the end of the requirement analysis phase you will have a set of data flow diagrams, interview notes, completed questionnaires, reports and forms. All these details have to be organized precisely so that they are easily understood by each member of the team. This precise definition of each data flow, data store and lower-level data transform is the data specification. Logical design specification This logical design should meet user requirements; produce the required outputs and have a favourable technical and social impact i.e. should be acceptable by the users and management. After the logical design is finalized, the next step is the preparation of the logical design specification. The logical design specification contains the preliminary technical design specifications, logical design requirements, design schedule and the budget. Once the logical design specification is complete, it is submitted to the management and user groups for approval.
27 BCA-4th Sem.
Systems Design The first step of the design of the system is the software packaging. This is one of the most difficult aspects of systems analysis and design and there is no agreement on the best possible method of doing this. Software packaging is the process of indicating how the different software components of the system are to be organized either as computer programs or as part of a computer program. The design team packages the software by first dividing each system application into programs or steps in a program. Then each program is divided into modules and then the design of the module is explained. Input output Design of System The next step is to define the inputs and outputs of the system. This is easier than software packaging because inputs and outputs are quite specific and easy to understand. However, this step may take the most time because the most users insist on being involved in discussing the inputs and outputs before approving of the technical design specification. Design of system files and databases Designing the files and databases, the designer should not only identify the individual fields of the records in the file but should also document volume and frequency considerations. Some of the estimates that the design team may need to provide are on the number of records to be placed in each data store (table), the frequency with which the updating of the file is expected to take place (i.e. daily, weekly, monthly), the file backup and security considerations etc.
28 BCA-4th Sem.
System Implementation System implementation can be defined as the translation of the technical design into usable computer software. It is the culmination of the long process of system analysis and design. This is the time of reckoning when we come to know whether the system we have designed is workable. The first activity in the system implementation phase is the hardware and software acquisition. This activity is relevant only if the existing hardware has to be changed or in case of earlier manual operation, a new computer has to be bought. In both cases, the implementation team has to first identify the requirements of the system from the new hardware. For example, maybe the system requires a response time of less than 2 seconds. The computers with enough processing power to meet this requirement will only be considered.
team has to understand the programming standards and rules to be followed while writing the programs
30 BCA-4th Sem.
31 BCA-4th Sem.
Airline Reservation System Review: The criteria that we will be following for Review of Airline Reservation System are given below: Relevance
The information that is being processed in the system should be relevant and in a form that is useful and understandable to the user. The Airline Reservation system wants to help him and so prints out a report of the Reservation of Airline and Hotel. This information is fine but not relevant and useful. This is so because the clerk has to spend a considerable amount of time scanning the entire report to identify the items whose reservation has fallen below the reorder level and which need to be reordered. If the system had given him an exception report that printed only those items whose entered had fallen below the reorder level, then such a report would be both relevant and useful.
Accuracy
Everybody agrees that a system should be accurate but how do you define accuracy? We will say that it is very simple. Accuracy can be defined as an absence of error or the correctness of the results. But what is an error? Suppose you misspell a name on the salary slip of an employee. This is obviously an error but it is not a crucial error. However, it you have made a mistake in the calculation of the pay, then that is a major error. The point here is that to define accuracy correctly, we have to also define the degree of accuracy required in a system. In the launch of a space shuttle, each and
32 BCA-4th Sem.
every calculation has to be correct maybe to the fourth decimal place but in a bill at the grocery store, the amount can be rounded off to the second decimal place. This does not mean that the information on the grocery bill is inaccurate. It only means that the level of accuracy required at the grocery store is not as much as the space shuttle launch.
Reliability
What is reliability? Is it not the same as accuracy? Is not a reliable system also accurate? No, reliability and accuracy are not the same. There is a subtle but very important difference between the two. Accuracy, as we defined earlier, is an absence of error and the correctness of results. Reliability, on the other hand, is concerned with the consistency of results. When procedures work but not always or when the same procedures give different results on different occasions; we say that the system is not reliable. In some systems, reliability is as important as accuracy. Can you imagine a Inventory system where the bills are correct most of the time but not always?
Validity
You must be wondering how validity is different from accuracy. Accuracy is a mathematical concept whereas validity is a more intangible concept. Validity in a system is the ability to always reflect the actual events. Let us explain with an example. Suppose a sales report indicates that the demand for a particular product is increasing and that the company should stock up the product. Suppose now that the report is giving invalid results and that the demand is actually decreasing. The invalidity of the report is very troublesome because it results in incorrect and expensive decisions being
33 BCA-4th Sem.
taken by the managers. The invalid system may be highly reliable (it worked perfectly at all times), may be even accurate (the calculations made are correct) but it may draw incorrect or invalid conclusions.
Completeness
This is a simple concept and one that is used by everybody. A system should be complete i.e. it should satisfy all the information needs of the users. The inability of satisfying a user due to lack of any information will result in the system not functioning correctly and therefore failing. The system should do what it is supposed to do.
Availability
The system may have a set of detailed reports that are accurate and complete in every respect but if these reports are not communicated to the person who needs the information, then the system is not doing a good job. Putting it in a different way, is the information needed by a person available when required? We have talked about availability of information to persons needing it. But the same concept can apply to machines. If a particular job requires say 100 minutes on a machine then is that machine available for those 100 minutes when the job is to be done?
34 BCA-4th Sem.
35 BCA-4th Sem.
By security we mean protecting the data and programs against accidental or intentional modification or destruction or disclosure to unauthorized persons. Authentication to the user is also correct this mean that the right user should get the correct authority to access the software. The most common method to prevent unauthorized access on the computer has been to provide secret passwords to the users. This is a good initial step but is far from foolproof. The problem is that secret passwords very rarely remain secret. They are normally disclosed to friends or co-workers because (as mentioned earlier) access to computers is not taken seriously. And once the password is known, the user is allowed total access to the computer. A refinement on the secret password method is to restrict the users to only the areas relevant to them i.e. a Payroll clerk should not be able to access Purchase data and vice versa. In addition to secret passwords, what is required is a system of checks. Any sensitive or critical decision should be checked by someone with a higher authority. A more advanced method of preventing leakage of information is to encrypt it. To put it very simplistically, the encryption method implies that there is a key that enables the data to be coded. This coded or encrypted message is transmitted and the receiver uses his key to decode the message to get the original message. Most fund transfers in the banking industry now use encryption techniques. Though this is better than the password system, it can still be cracked because codes or keys can be cracked. The best method to restrict computer crime and possibly the most difficult to implement is that computer professionals themselves must ensure computer
37 BCA-4th Sem.
security. For this, the users and operators should be trained in computer security. They should be told very firmly about the ramifications of security lapses and a healthy respect for computers should be instilled in them. Security Feature implemented in the Software are :1. The most common method to prevent unauthorized access on the software has been to provide secret passwords to the users. This method is not foolproof but very much provide correct right to the correct user. For Login for Administrator: User Name = Admin Password =mca For Login for Operator: User Name = Operator Password = op 2. Validation check has been implemented in the software so that the correct data is entered in each field. If any user tries to input wrong value in any field he/she will get the error message. 3. The best method to restrict software security is possibly the most difficult to implement is that computer professionals themselves must ensure software security. For this, the users and operators should be trained in software security. 4. No user get any kind of unauthorized access to any part of the software or database. Which help to keep the software secure.
38 BCA-4th Sem.
39 BCA-4th Sem.
Option Explicit Dim conn As Adodb.Connection Dim rs As Adodb.Recordset Private Sub AB1_Click() frmAbout.Visible = True End Sub Private Sub CLear_but_Click() Form1.Combo1.Text = " " Form1.Combo2.Text = " " Form1.Combo3.Text = " " Form1.Combo4.Text = " " Form1.Combo5.Text = " " Form1.Combo8.Text = " " Form1.Combo7.Text = " " Form1.Combo6.Text = " " Form1.Combo9.Text = " " Form1.Combo10.Text = " " Form1.Combo11.Text = " " Form2.Text1 = " " Form2.Text2 = " " Form2.Text3 = " " Form2.Text4 = " " Form2.Text5 = " " Form2.Text6 = " " Form2.Text7 = " " Form2.Text8 = " " Form2.Text9 = " " Form2.Text10 = " " Form2.Text11 = " " Form2.Text12 = " " Form2.Text13 = " " Form2.Text14 = " " Form2.Text15 = " " End Sub
40 BCA-4th Sem.
Private Sub Command7_Click() Form2.Visible = True Me.Hide End Sub Private Sub Command8_Click() rs.Fields("Last") = Form2.Text1.Text rs.Fields("Middle") = Form2.Text2.Text rs.Fields("First") = Form2.Text3.Text rs.Fields("Address1") = Form2.Text4.Text rs.Fields("Address2") = Form2.Text5.Text rs.Fields("State") = Form2.Text6.Text rs.Fields("PostalCode") = Form2.Text7.Text rs.Fields("HomePh") = Form2.Text8.Text rs.Fields("BusinessPh") = Form2.Text9.Text rs.Fields("FaxNo") = Form2.Text10.Text rs.Fields("EmailAdd") = Form2.Text11.Text rs.Fields("Company") = Form2.Text12.Text rs.Fields("Dept/Division") = Form2.Text13.Text rs.Fields("TicketNo") = Form2.Text14.Text rs.Fields("Origin") = Form1.Combo1.Text rs.Fields("Destination") = Form1.Combo2.Text rs.Fields("Adults") = Form1.Combo3.Text rs.Fields("Childreen") = Form1.Combo4.Text rs.Fields("DDay") = Form1.Combo5.Text rs.Fields("DMonth") = Form1.Combo8.Text rs.Fields("DYear") = Form1.Combo7.Text rs.Fields("Service") = Form1.Combo6.Text rs.Fields("RDay") = Form1.Combo9.Text rs.Fields("RMonth") = Form1.Combo10.Text rs.Fields("RYear") = Form1.Combo11.Text Form1.Combo1.Text = " " Form1.Combo2.Text = " " Form1.Combo3.Text = " " Form1.Combo4.Text = " " Form1.Combo5.Text = " " Form1.Combo8.Text = " " Form1.Combo7.Text = " " Form1.Combo6.Text = " "
41 BCA-4th Sem.
Form1.Combo9.Text = " " Form1.Combo10.Text = " " Form1.Combo11.Text = " " Form2.Text1 = " " Form2.Text2 = " " Form2.Text3 = " " Form2.Text4 = " " Form2.Text5 = " " Form2.Text6 = " " Form2.Text7 = " " Form2.Text8 = " " Form2.Text9 = " " Form2.Text10 = " " Form2.Text11 = " " Form2.Text12 = " " Form2.Text13 = " " Form2.Text14 = " " rs.AddNew End Sub
Private Sub del_but_Click() If Not rs.EOF Or Not rs.BOF Then rs.Delete If Not rs.EOF Then rs.MoveNext Else rs.MovePrevious Form2.Text1.Text = " " Form2.Text2.Text = " " Form2.Text3.Text = " " Form2.Text4.Text = " " Form2.Text5.Text = " " Form2.Text6.Text = " " Form2.Text7.Text = " " Form2.Text8.Text = " " Form2.Text9.Text = " " Form2.Text10.Text = " " Form2.Text11.Text = " " Form2.Text12.Text = " " Form2.Text13.Text = " " Form2.Text14.Text = " "
42 BCA-4th Sem.
Form1.Combo1.Text = " " Form1.Combo2.Text = " " Form1.Combo3.Text = " " Form1.Combo4.Text = " " Form1.Combo5.Text = " " Form1.Combo8.Text = " " Form1.Combo7.Text = " " Form1.Combo6.Text = " " Form1.Combo9.Text = " " Form1.Combo10.Text = " " Form1.Combo11.Text = " " End Sub Private Sub Edit_but_Click() rs.Fields("TicketNo") = Form2.Text14.Text rs.Fields("Last") = Form2.Text1.Text rs.Fields("Middle") = Form2.Text2.Text rs.Fields("First") = Form2.Text3.Text rs.Fields("Address1") = Form2.Text4.Text rs.Fields("Address2") = Form2.Text5.Text rs.Fields("State") = Form2.Text6.Text rs.Fields("PostalCode") = Form2.Text7.Text rs.Fields("HomePh") = Form2.Text8.Text rs.Fields("BusinessPh") = Form2.Text9.Text rs.Fields("FaxNo") = Form2.Text10.Text rs.Fields("EmailAdd") = Form2.Text11.Text rs.Fields("Company") = Form2.Text12.Text rs.Fields("Dept/Division") = Form2.Text13.Text rs.Fields("Origin") = Form1.Combo1.Text rs.Fields("Destination") = Form1.Combo2.Text rs.Fields("Adults") = Form1.Combo3.Text rs.Fields("Childreen") = Form1.Combo4.Text rs.Fields("DDay") = Form1.Combo5.Text rs.Fields("Service") = Form1.Combo6.Text rs.Fields("DYear") = Form1.Combo7.Text rs.Fields("DMonth") = Form1.Combo8.Text rs.Fields("RDay") = Form1.Combo9.Text rs.Fields("RMonth") = Form1.Combo10.Text rs.Fields("RYear") = Form1.Combo11.Text
43 BCA-4th Sem.
rs.Update End Sub Private Sub end_but_Click() rs.Close conn.Close End End Sub Private Sub Form_Load() Const str = "Driver={Microsoft Access Driver (*.mdb)};dbq=c:/airline/test.mdb;" Set conn = New Adodb.Connection conn.Open str Set rs = New Adodb.Recordset rs.ActiveConnection = conn rs.Open "select * from Dep", conn, adOpenDynamic, adLockOptimistic Combo1.Text = rs.Fields("Origin") Combo2.Text = rs.Fields("Destination") Combo3.Text = rs.Fields("Adults") Combo4.Text = rs.Fields("Childreen") Combo5.Text = rs.Fields("DDay") Combo6.Text = rs.Fields("Service") Combo7.Text = rs.Fields("DYear") Combo8.Text = rs.Fields("DMonth") Combo9.Text = rs.Fields("RDay") Combo10.Text = rs.Fields("RYear") Combo11.Text = rs.Fields("RMonth") Combo1.AddItem ("Abu Dhabi") Combo1.AddItem ("Dubai") Combo1.AddItem ("Sharjah") Combo1.AddItem ("Ras Al Khaimah") Combo1.AddItem ("Khorfokan") Combo1.AddItem ("Al Ain") Combo2.AddItem ("U.A.E.") Combo3.AddItem ("0") Combo3.AddItem ("1") Combo3.AddItem ("2") Combo3.AddItem ("3")
44 BCA-4th Sem.
Combo3.AddItem ("4") Combo3.AddItem ("5") Combo3.AddItem ("6") Combo3.AddItem ("7") Combo3.AddItem ("8") Combo3.AddItem ("9") Combo3.AddItem ("10") Combo4.AddItem ("0") Combo4.AddItem ("1") Combo4.AddItem ("2") Combo4.AddItem ("3") Combo4.AddItem ("4") Combo4.AddItem ("5") Combo4.AddItem ("6") Combo4.AddItem ("7") Combo4.AddItem ("8") Combo4.AddItem ("9") Combo4.AddItem ("10") Combo6.AddItem ("First Class") Combo6.AddItem ("Economy") Combo6.AddItem ("Concorde") Combo5.AddItem ("Not Returned") Combo5.AddItem ("1") Combo5.AddItem ("2") Combo5.AddItem ("3") Combo5.AddItem ("4") Combo5.AddItem ("5") Combo5.AddItem ("6") Combo5.AddItem ("7") Combo5.AddItem ("8") Combo5.AddItem ("9") Combo5.AddItem ("10") Combo5.AddItem ("11") Combo5.AddItem ("12") Combo5.AddItem ("13") Combo5.AddItem ("14") Combo5.AddItem ("15") Combo5.AddItem ("16") Combo5.AddItem ("17")
45 BCA-4th Sem.
Combo5.AddItem ("18") Combo5.AddItem ("19") Combo5.AddItem ("20") Combo5.AddItem ("21") Combo5.AddItem ("22") Combo5.AddItem ("23") Combo5.AddItem ("24") Combo5.AddItem ("25") Combo5.AddItem ("26") Combo5.AddItem ("27") Combo5.AddItem ("28") Combo5.AddItem ("29") Combo5.AddItem ("30") Combo5.AddItem ("31") Combo7.AddItem ("Not Returned") Combo7.AddItem ("2000") Combo7.AddItem ("2001") Combo7.AddItem ("2002") Combo7.AddItem ("2003") Combo7.AddItem ("2004") Combo7.AddItem ("2005") Combo7.AddItem ("2006") Combo7.AddItem ("2007") Combo7.AddItem ("2008") Combo7.AddItem ("2009") Combo7.AddItem ("2010") Combo7.AddItem ("2011") Combo7.AddItem ("2012") Combo7.AddItem ("2013") Combo7.AddItem ("2014") Combo7.AddItem ("2015") Combo7.AddItem ("2016") Combo7.AddItem ("2017") Combo7.AddItem ("2018") Combo7.AddItem ("2019") Combo7.AddItem ("2020") Combo7.AddItem ("2021") Combo7.AddItem ("2022") Combo7.AddItem ("2023")
46 BCA-4th Sem.
Combo7.AddItem ("2024") Combo7.AddItem ("2025") Combo7.AddItem ("2026") Combo7.AddItem ("2027") Combo7.AddItem ("2028") Combo7.AddItem ("2029") Combo7.AddItem ("2030") Combo8.AddItem ("Not Returned") Combo8.AddItem ("January") Combo8.AddItem ("February") Combo8.AddItem ("March") Combo8.AddItem ("April") Combo8.AddItem ("May") Combo8.AddItem ("June") Combo8.AddItem ("July") Combo8.AddItem ("August") Combo8.AddItem ("September") Combo8.AddItem ("October") Combo8.AddItem ("November") Combo8.AddItem ("December") Combo9.AddItem ("Not Returned") Combo9.AddItem ("1") Combo9.AddItem ("2") Combo9.AddItem ("3") Combo9.AddItem ("4") Combo9.AddItem ("5") Combo9.AddItem ("6") Combo9.AddItem ("7") Combo9.AddItem ("8") Combo9.AddItem ("9") Combo9.AddItem ("10") Combo9.AddItem ("11") Combo9.AddItem ("12") Combo9.AddItem ("13") Combo9.AddItem ("14") Combo9.AddItem ("15") Combo9.AddItem ("16") Combo9.AddItem ("17") Combo9.AddItem ("18")
47 BCA-4th Sem.
Combo9.AddItem ("19") Combo9.AddItem ("20") Combo9.AddItem ("21") Combo9.AddItem ("22") Combo9.AddItem ("23") Combo9.AddItem ("24") Combo9.AddItem ("25") Combo9.AddItem ("26") Combo9.AddItem ("27") Combo9.AddItem ("28") Combo9.AddItem ("29") Combo9.AddItem ("30") Combo9.AddItem ("31") Combo10.AddItem ("Not Returned") Combo10.AddItem ("January") Combo10.AddItem ("February") Combo10.AddItem ("March") Combo10.AddItem ("April") Combo10.AddItem ("May") Combo10.AddItem ("June") Combo10.AddItem ("July") Combo10.AddItem ("August") Combo10.AddItem ("September") Combo10.AddItem ("October") Combo10.AddItem ("November") Combo10.AddItem ("December") Combo11.AddItem ("Not Returned") Combo11.AddItem ("2000") Combo11.AddItem ("2001") Combo11.AddItem ("2002") Combo11.AddItem ("2003") Combo11.AddItem ("2004") Combo11.AddItem ("2005") Combo11.AddItem ("2006") Combo11.AddItem ("2007") Combo11.AddItem ("2008") Combo11.AddItem ("2009") Combo11.AddItem ("2010") Combo11.AddItem ("2011")
48 BCA-4th Sem.
Combo11.AddItem ("2012") Combo11.AddItem ("2013") Combo11.AddItem ("2014") Combo11.AddItem ("2015") Combo11.AddItem ("2016") Combo11.AddItem ("2017") Combo11.AddItem ("2018") Combo11.AddItem ("2019") Combo11.AddItem ("2020") Combo11.AddItem ("2021") Combo11.AddItem ("2022") Combo11.AddItem ("2023") Combo11.AddItem ("2024") Combo11.AddItem ("2025") Combo11.AddItem ("2026") Combo11.AddItem ("2027") Combo11.AddItem ("2028") Combo11.AddItem ("2029") Combo11.AddItem ("2030") End Sub Private Sub H3_Click() rs.Close conn.Close Form4.Visible = True Unload Me End Sub Private Sub mfirst_Click() On Error Resume Next rs.MoveFirst Form1.Combo1.Text = rs.Fields("Origin") Form1.Combo2.Text = rs.Fields("Destination") Form1.Combo3.Text = rs.Fields("Adults") Form1.Combo4.Text = rs.Fields("Childreen") Form1.Combo5.Text = rs.Fields("DDay") Form1.Combo8.Text = rs.Fields("DMonth") Form1.Combo7.Text = rs.Fields("DYear") Form1.Combo6.Text = rs.Fields("Service")
49 BCA-4th Sem.
Form1.Combo9.Text = rs.Fields("RDay") Form1.Combo10.Text = rs.Fields("RMonth") Form1.Combo11.Text = rs.Fields("RYear") Form2.Text1.Text = rs.Fields("Last") Form2.Text2.Text = rs.Fields("Middle") Form2.Text3.Text = rs.Fields("First") Form2.Text4.Text = rs.Fields("Address1") Form2.Text5.Text = rs.Fields("Address2") Form2.Text6.Text = rs.Fields("State") Form2.Text7.Text = rs.Fields("PostalCode") Form2.Text8.Text = rs.Fields("HomePh") Form2.Text9.Text = rs.Fields("BusinessPh") Form2.Text10.Text = rs.Fields("FaxNo") Form2.Text11.Text = rs.Fields("EmailAdd") Form2.Text12.Text = rs.Fields("Company") Form2.Text13.Text = rs.Fields("Dept/Division") Form2.Text14.Text = rs.Fields("TicketNo") End Sub Private Sub mlast_Click() On Error Resume Next rs.MoveLast Form1.Combo1.Text = rs.Fields("Origin") Form1.Combo2.Text = rs.Fields("Destination") Form1.Combo3.Text = rs.Fields("Adults") Form1.Combo4.Text = rs.Fields("Childreen") Form1.Combo5.Text = rs.Fields("DDay") Form1.Combo8.Text = rs.Fields("DMonth") Form1.Combo7.Text = rs.Fields("DYear") Form1.Combo6.Text = rs.Fields("Service") Form1.Combo9.Text = rs.Fields("RDay") Form1.Combo10.Text = rs.Fields("RMonth") Form1.Combo11.Text = rs.Fields("RYear") Form2.Text1.Text = rs.Fields("Last") Form2.Text2.Text = rs.Fields("Middle") Form2.Text3.Text = rs.Fields("First") Form2.Text4.Text = rs.Fields("Address1") Form2.Text5.Text = rs.Fields("Address2") Form2.Text6.Text = rs.Fields("State")
50 BCA-4th Sem.
Form2.Text7.Text = rs.Fields("PostalCode") Form2.Text8.Text = rs.Fields("HomePh") Form2.Text9.Text = rs.Fields("BusinessPh") Form2.Text10.Text = rs.Fields("FaxNo") Form2.Text11.Text = rs.Fields("EmailAdd") Form2.Text12.Text = rs.Fields("Company") Form2.Text13.Text = rs.Fields("Dept/Division") Form2.Text14.Text = rs.Fields("TicketNo") End Sub Private Sub mnext_Click() On Error Resume Next rs.MoveNext Form1.Combo1.Text = rs.Fields("Origin") Form1.Combo2.Text = rs.Fields("Destination") Form1.Combo3.Text = rs.Fields("Adults") Form1.Combo4.Text = rs.Fields("Childreen") Form1.Combo5.Text = rs.Fields("DDay") Form1.Combo8.Text = rs.Fields("DMonth") Form1.Combo7.Text = rs.Fields("DYear") Form1.Combo6.Text = rs.Fields("Service") Form1.Combo9.Text = rs.Fields("RDay") Form1.Combo10.Text = rs.Fields("RMonth") Form1.Combo11.Text = rs.Fields("RYear") Form2.Text1.Text = rs.Fields("Last") Form2.Text2.Text = rs.Fields("Middle") Form2.Text3.Text = rs.Fields("First") Form2.Text4.Text = rs.Fields("Address1") Form2.Text5.Text = rs.Fields("Address2") Form2.Text6.Text = rs.Fields("State") Form2.Text7.Text = rs.Fields("PostalCode") Form2.Text8.Text = rs.Fields("HomePh") Form2.Text9.Text = rs.Fields("BusinessPh") Form2.Text10.Text = rs.Fields("FaxNo") Form2.Text11.Text = rs.Fields("EmailAdd") Form2.Text12.Text = rs.Fields("Company") Form2.Text13.Text = rs.Fields("Dept/Division") Form2.Text14.Text = rs.Fields("TicketNo") End Sub
51 BCA-4th Sem.
Private Sub mprev_Click() On Error Resume Next rs.MovePrevious Form1.Combo1.Text = rs.Fields("Origin") Form1.Combo2.Text = rs.Fields("Destination") Form1.Combo3.Text = rs.Fields("Adults") Form1.Combo4.Text = rs.Fields("Childreen") Form1.Combo5.Text = rs.Fields("DDay") Form1.Combo8.Text = rs.Fields("DMonth") Form1.Combo7.Text = rs.Fields("DYear") Form1.Combo6.Text = rs.Fields("Service") Form1.Combo9.Text = rs.Fields("RDay") Form1.Combo10.Text = rs.Fields("RMonth") Form1.Combo11.Text = rs.Fields("RYear") Form2.Text1.Text = rs.Fields("Last") Form2.Text2.Text = rs.Fields("Middle") Form2.Text3.Text = rs.Fields("First") Form2.Text4.Text = rs.Fields("Address1") Form2.Text5.Text = rs.Fields("Address2") Form2.Text6.Text = rs.Fields("State") Form2.Text7.Text = rs.Fields("PostalCode") Form2.Text8.Text = rs.Fields("HomePh") Form2.Text9.Text = rs.Fields("BusinessPh") Form2.Text10.Text = rs.Fields("FaxNo") Form2.Text11.Text = rs.Fields("EmailAdd") Form2.Text12.Text = rs.Fields("Company") Form2.Text13.Text = rs.Fields("Dept/Division") Form2.Text14.Text = rs.Fields("TicketNo") End Sub Private Sub PL1_Click() Form6.Visible = True Me.Hide End Sub Private Sub Rl1_Click() Form5.Visible = True Me.Hide
52 BCA-4th Sem.
End Sub Private Sub RM1_Click() Form3.Visible = True End Sub Private Sub Timer1_Timer() Label12.Caption = Time End Sub
53 BCA-4th Sem.
Option Explicit Dim conn As Adodb.Connection Dim rs As Adodb.Recordset Private Sub A1_Click() frmAbout.Visible = True End Sub
Private Sub Command10_Click() Form1.Visible = True Me.Hide End Sub Private Sub Command11_Click() Dim s On Error Resume Next rs.MoveFirst s = InputBox("Enter the Ticket Number") While (Not rs.EOF) If s = rs.Fields("TicketNo") Then MsgBox "Record found" Form2.Text1.Text = rs.Fields("Last") Form2.Text2.Text = rs.Fields("Middle") Form2.Text3.Text = rs.Fields("First") Form2.Text4.Text = rs.Fields("Address1") Form2.Text5.Text = rs.Fields("Address2") Form2.Text6.Text = rs.Fields("State") Form2.Text7.Text = rs.Fields("PostalCode") Form2.Text8.Text = rs.Fields("HomePh") Form2.Text9.Text = rs.Fields("BusinessPh") Form2.Text10.Text = rs.Fields("FaxNo") Form2.Text11.Text = rs.Fields("EmailAdd") Form2.Text12.Text = rs.Fields("Company") Form2.Text13.Text = rs.Fields("Dept/Division") Form2.Text14.Text = rs.Fields("TicketNo") Form1.Combo1.Text = rs.Fields("Origin") Form1.Combo2.Text = rs.Fields("Destination")
54 BCA-4th Sem.
Form1.Combo3.Text = rs.Fields("Adults") Form1.Combo4.Text = rs.Fields("Childreen") Form1.Combo5.Text = rs.Fields("DDay") Form1.Combo8.Text = rs.Fields("DMonth") Form1.Combo7.Text = rs.Fields("DYear") Form1.Combo6.Text = rs.Fields("Service") Form1.Combo9.Text = rs.Fields("RDay") Form1.Combo10.Text = rs.Fields("RMonth") Form1.Combo11.Text = rs.Fields("RYear") GoTo 10 Else rs.MoveNext End If Wend MsgBox "Record not found" 10 End Sub Private Sub Command12_Click() End Sub
Private Sub Command8_Click() Form2.Text1 = " " Form2.Text2 = " " Form2.Text3 = " "
55 BCA-4th Sem.
Form2.Text4 = " " Form2.Text5 = " " Form2.Text6 = " " Form2.Text7 = " " Form2.Text8 = " " Form2.Text9 = " " Form2.Text10 = " " Form2.Text11 = " " Form2.Text12 = " " Form2.Text13 = " " Form2.Text14 = " " Form2.Text15 = " " Form1.Combo1.Text = " " Form1.Combo2.Text = " " Form1.Combo3.Text = " " Form1.Combo4.Text = " " Form1.Combo5.Text = " " Form1.Combo8.Text = " " Form1.Combo7.Text = " " Form1.Combo6.Text = " " Form1.Combo9.Text = " " Form1.Combo10.Text = " " Form1.Combo11.Text = " " End Sub Private Sub Form_Load() MsgBox "Your Screen resolution: " & Screen.Width \ Screen.TwipsPerPixelX & " X " & Screen.Height \ Screen.TwipsPerPixelY, 64, "A.R.S" Const str = "Driver={Microsoft Access Driver (*.mdb)};dbq=c:/airline/test.mdb;" Set conn = New Adodb.Connection conn.Open str Set rs = New Adodb.Recordset rs.ActiveConnection = conn rs.Open "select * from Dep", conn, adOpenDynamic, adLockOptimistic Text14.Text = rs.Fields("TicketNo") Text1.Text = rs.Fields("Last") Text2.Text = rs.Fields("Middle")
56 BCA-4th Sem.
Text3.Text = rs.Fields("First") Text4.Text = rs.Fields("Address1") Text5.Text = rs.Fields("Address2") Text6.Text = rs.Fields("State") Text7.Text = rs.Fields("PostalCode") Text8.Text = rs.Fields("HomePh") Text9.Text = rs.Fields("BusinessPh") Text10.Text = rs.Fields("FaxNo") Text11.Text = rs.Fields("EmailAdd") Text12.Text = rs.Fields("Company") Text13.Text = rs.Fields("Dept/Division") Text15.Text = Text14.Text End Sub Private Sub H1_Click() rs.Close conn.Close Form4.Visible = True Unload Me End Sub Private Sub PL1_Click() Form6.Visible = True Unload Me End Sub Private Sub Rl1_Click() Form5.Visible = True Unload Me End Sub Private Sub RM1_Click() Form3.Visible = True End Sub Private Sub Text14_Change() Text15.Text = Text14.Text End Sub
57 BCA-4th Sem.
Private Sub Text15_gotfocus() Text15.BackColor = vbBlue End Sub Private Sub Timer1_Timer() Label17.Caption = Time End Sub
58 BCA-4th Sem.
Private Sub A1_Click() frmAbout.Visible = True End Sub Private Sub B1_Click() Unload Me End Sub
59 BCA-4th Sem.
Private Sub A1_Click() frmAbout.Visible = True End Sub Private Sub E1_Click() Form2.Visible = True Me.Hide End Sub Private Sub E2_click() Unload Form1 Unload Form2 Unload Form3 Unload Form5 Unload Form6 Unload Form7 Unload Me End Sub Private Sub EHR1_Click() Form7.Visible = True Me.Hide End Sub Private Sub HS1_Click() Form7.Visible = True Me.Hide End Sub Private Sub R1_Click() Form2.Visible = True Me.Hide End Sub
60 BCA-4th Sem.
Private Sub Command1_Click() frmLogin1.Visible = True End Sub Private Sub Command4_Click() Form1.Visible = True Unload Me End Sub
61 BCA-4th Sem.
Private Sub Command1_Click(Index As Integer) frmLogin2.Visible = True End Sub Private Sub Command4_Click() Form1.Visible = True Unload Me End Sub
62 BCA-4th Sem.
Option Explicit Dim conn As Adodb.Connection Dim rs As Adodb.Recordset Private Sub Back_Click() End Sub Private Sub A1_Click() frmAbout.Visible = True End Sub Private Sub Command1_Click() rs.AddNew rs.Fields("First") = Form7.Text1.Text rs.Fields("Middle") = Form7.Text2.Text rs.Fields("Last") = Form7.Text3.Text rs.Fields("Address") = Form7.Text4.Text rs.Fields("MobileNo") = Form7.Text5.Text rs.Fields("ResdNo") = Form7.Text6.Text rs.Fields("OfficeNo") = Form7.Text7.Text rs.Fields("HotelStay") = Form7.Combo1.Text rs.Fields("Nights") = Form7.Combo2.Text rs.Fields("Days") = Form7.Combo3.Text rs.Fields("Adult") = Form7.Combo4.Text rs.Fields("Childreen") = Form7.Combo5.Text rs.Fields("RoomStay") = Form7.Combo6.Text rs.Fields("Extras") = Form7.Combo7.Text Form7.Text1.Text = " " Form7.Text2.Text = " " Form7.Text3.Text = " " Form7.Text4.Text = " " Form7.Text5.Text = " " Form7.Text6.Text = " " Form7.Text7.Text = " " Form7.Combo1.Text = " " Form7.Combo2.Text = " " Form7.Combo3.Text = " "
63 BCA-4th Sem.
Form7.Combo4.Text = " " Form7.Combo5.Text = " " Form7.Combo6.Text = " " Form7.Combo7.Text = " " End Sub Private Sub Command2_Click() On Error Resume Next rs.MovePrevious Form7.Text1.Text = rs.Fields("First") Form7.Text2.Text = rs.Fields("Middle") Form7.Text3.Text = rs.Fields("Last") Form7.Text4.Text = rs.Fields("Address") Form7.Text5.Text = rs.Fields("MobileNo") Form7.Text6.Text = rs.Fields("ResdNo") Form7.Text7.Text = rs.Fields("OfficeNo") Form7.Combo1.Text = rs.Fields("HotelStay") Form7.Combo2.Text = rs.Fields("Nights") Form7.Combo3.Text = rs.Fields("Days") Form7.Combo4.Text = rs.Fields("Adult") Form7.Combo5.Text = rs.Fields("Childreen") Form7.Combo6.Text = rs.Fields("RoomStay") Form7.Combo7.Text = rs.Fields("Extras") End Sub Private Sub Command3_Click() On Error Resume Next rs.MoveNext Form7.Text1.Text = rs.Fields("First") Form7.Text2.Text = rs.Fields("Middle") Form7.Text3.Text = rs.Fields("Last") Form7.Text4.Text = rs.Fields("Address") Form7.Text5.Text = rs.Fields("MobileNo") Form7.Text6.Text = rs.Fields("ResdNo") Form7.Text7.Text = rs.Fields("OfficeNo") Form7.Combo1.Text = rs.Fields("HotelStay") Form7.Combo2.Text = rs.Fields("Nights") Form7.Combo3.Text = rs.Fields("Days")
64 BCA-4th Sem.
Form7.Combo4.Text = rs.Fields("Adult") Form7.Combo5.Text = rs.Fields("Childreen") Form7.Combo6.Text = rs.Fields("RoomStay") Form7.Combo7.Text = rs.Fields("Extras") End Sub Private Sub Command4_Click() Form7.Text1.Text = " " Form7.Text2.Text = " " Form7.Text3.Text = " " Form7.Text4.Text = " " Form7.Text5.Text = " " Form7.Text6.Text = " " Form7.Text7.Text = " " Form7.Combo1.Text = " " Form7.Combo2.Text = " " Form7.Combo3.Text = " " Form7.Combo4.Text = " " Form7.Combo5.Text = " " Form7.Combo6.Text = " " Form7.Combo7.Text = " " End Sub Private Sub Command5_Click() Dim s On Error Resume Next rs.MoveFirst s = InputBox("Enter Customer Name") While (Not rs.EOF) If s = rs.Fields("First") Then MsgBox "Record found" Form7.Text1.Text = rs.Fields("First") Form7.Text2.Text = rs.Fields("Middle") Form7.Text3.Text = rs.Fields("Last") Form7.Text4.Text = rs.Fields("Address") Form7.Text5.Text = rs.Fields("MobileNo") Form7.Text6.Text = rs.Fields("ResdNo") Form7.Text7.Text = rs.Fields("OfficeNo")
65 BCA-4th Sem.
Form7.Combo1.Text = rs.Fields("HotelStay") Form7.Combo2.Text = rs.Fields("Nights") Form7.Combo3.Text = rs.Fields("Days") Form7.Combo4.Text = rs.Fields("Adult") Form7.Combo5.Text = rs.Fields("Childreen") Form7.Combo6.Text = rs.Fields("RoomStay") Form7.Combo7.Text = rs.Fields("Extras") GoTo 10 Else rs.MoveNext End If Wend MsgBox "Record not found" 10 End Sub Private Sub Command6_Click() rs.Fields("First") = Form7.Text1.Text rs.Fields("Middle") = Form7.Text2.Text rs.Fields("Last") = Form7.Text3.Text rs.Fields("Address") = Form7.Text4.Text rs.Fields("MobileNo") = Form7.Text5.Text rs.Fields("ResdNo") = Form7.Text6.Text rs.Fields("OfficeNo") = Form7.Text7.Text rs.Fields("HotelStay") = Form7.Combo1.Text rs.Fields("Nights") = Form7.Combo2.Text rs.Fields("Days") = Form7.Combo3.Text rs.Fields("Adult") = Form7.Combo4.Text rs.Fields("Childreen") = Form7.Combo5.Text rs.Fields("RoomStay") = Form7.Combo6.Text rs.Fields("Extras") = Form7.Combo7.Text rs.Update End Sub Private Sub Command7_Click() If Not rs.EOF Or Not rs.BOF Then rs.Delete If Not rs.EOF Then rs.MoveNext Else rs.MovePrevious Form7.Text1.Text = " " Form7.Text2.Text = " "
66 BCA-4th Sem.
Form7.Text3.Text = " " Form7.Text4.Text = " " Form7.Text5.Text = " " Form7.Text6.Text = " " Form7.Text7.Text = " " Form7.Combo1.Text = " " Form7.Combo2.Text = " " Form7.Combo3.Text = " " Form7.Combo4.Text = " " Form7.Combo5.Text = " " Form7.Combo6.Text = " " Form7.Combo7.Text = " " End Sub Private Sub Command9_Click() End Sub Private Sub Form_Load() MsgBox "Your Screen resolution: " & Screen.Width \ Screen.TwipsPerPixelX & " X " & Screen.Height \ Screen.TwipsPerPixelY, 64, "A.R.S" Const str = "Driver={Microsoft Access Driver (*.mdb)};dbq=c:/airline/test.mdb;" Set conn = New Adodb.Connection conn.Open str Set rs = New Adodb.Recordset rs.ActiveConnection = conn rs.Open "select * from Hotel", conn, adOpenDynamic, adLockOptimistic Text1.Text = rs.Fields("First") Text2.Text = rs.Fields("Middle") Text3.Text = rs.Fields("Last") Text4.Text = rs.Fields("Address") Text5.Text = rs.Fields("MobileNo") Text6.Text = rs.Fields("ResdNo") Text7.Text = rs.Fields("OfficeNo") Combo1.Text = rs.Fields("HotelStay") Combo2.Text = rs.Fields("Nights") Combo3.Text = rs.Fields("Days") Combo4.Text = rs.Fields("Adult")
67 BCA-4th Sem.
Combo5.Text = rs.Fields("Childreen") Combo6.Text = rs.Fields("RoomStay") Combo7.Text = rs.Fields("Extras") Combo1.AddItem ("Taj Hotel") Combo1.AddItem ("Hyatt Regency") Combo1.AddItem ("Sheraton 4 Points") Combo1.AddItem ("Indian House") Combo2.AddItem ("0") Combo2.AddItem ("1") Combo2.AddItem ("2") Combo2.AddItem ("3") Combo2.AddItem ("4") Combo2.AddItem ("5") Combo2.AddItem ("6") Combo2.AddItem ("7") Combo2.AddItem ("8") Combo2.AddItem ("9") Combo2.AddItem ("10") Combo2.AddItem ("11") Combo2.AddItem ("12") Combo2.AddItem ("13") Combo2.AddItem ("14") Combo2.AddItem ("15") Combo2.AddItem ("16") Combo2.AddItem ("17") Combo2.AddItem ("18") Combo2.AddItem ("19") Combo2.AddItem ("20") Combo2.AddItem ("21") Combo2.AddItem ("22") Combo2.AddItem ("23") Combo2.AddItem ("24") Combo2.AddItem ("25") Combo2.AddItem ("26") Combo2.AddItem ("27") Combo2.AddItem ("28") Combo2.AddItem ("29") Combo2.AddItem ("30") Combo2.AddItem ("31")
68 BCA-4th Sem.
Combo3.AddItem ("0") Combo3.AddItem ("1") Combo3.AddItem ("2") Combo3.AddItem ("3") Combo3.AddItem ("4") Combo3.AddItem ("5") Combo3.AddItem ("6") Combo3.AddItem ("7") Combo3.AddItem ("8") Combo3.AddItem ("9") Combo3.AddItem ("10") Combo3.AddItem ("11") Combo3.AddItem ("12") Combo3.AddItem ("13") Combo3.AddItem ("14") Combo3.AddItem ("15") Combo3.AddItem ("16") Combo3.AddItem ("17") Combo3.AddItem ("18") Combo3.AddItem ("19") Combo3.AddItem ("20") Combo3.AddItem ("21") Combo3.AddItem ("22") Combo3.AddItem ("23") Combo3.AddItem ("24") Combo3.AddItem ("25") Combo3.AddItem ("26") Combo3.AddItem ("27") Combo3.AddItem ("28") Combo3.AddItem ("29") Combo3.AddItem ("30") Combo3.AddItem ("31") Combo4.AddItem ("0") Combo4.AddItem ("1") Combo4.AddItem ("2") Combo4.AddItem ("3") Combo4.AddItem ("4") Combo4.AddItem ("5") Combo4.AddItem ("6")
69 BCA-4th Sem.
Combo4.AddItem ("7") Combo4.AddItem ("8") Combo4.AddItem ("9") Combo4.AddItem ("10") Combo5.AddItem ("0") Combo5.AddItem ("1") Combo5.AddItem ("2") Combo5.AddItem ("3") Combo5.AddItem ("4") Combo5.AddItem ("5") Combo5.AddItem ("6") Combo5.AddItem ("7") Combo5.AddItem ("8") Combo5.AddItem ("9") Combo5.AddItem ("10") Combo6.AddItem ("Luxury") Combo6.AddItem ("Economy") Combo7.AddItem ("0") Combo7.AddItem ("1") Combo7.AddItem ("2") Combo7.AddItem ("3") Combo7.AddItem ("4") Combo7.AddItem ("5") Combo7.AddItem ("6") Combo7.AddItem ("7") Combo7.AddItem ("8") Combo7.AddItem ("9") Combo7.AddItem ("10") End Sub Private Sub H1_Click() Form4.Visible = True Unload Me End Sub
70 BCA-4th Sem.
71 BCA-4th Sem.
Option Explicit Public LoginSucceeded As Boolean Dim a Private Sub cmdCancel_Click() LoginSucceeded = False Unload Me End Sub Private Sub cmdOK_Click() If Text1.Text = "" And Text2.Text = "" Then MsgBox "Please Enter User and password" Beep Exit Sub End If If a >= 3 Then MsgBox " Sorry.........Only Three Attempts" End End If If Text1.Text = "sandeep" And Text2.Text = "mann" Then Unload Me Form4.Show Else a=a+1 MsgBox "Login or Password (Wrong)" Text1.SetFocus Text1.Text = "" Text2.Text = "" End If End Sub
72 BCA-4th Sem.
73 BCA-4th Sem.
74 BCA-4th Sem.
75 BCA-4th Sem.
Option Explicit Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Private Sub Timer1_Timer() MousePointer = 11 Command1.Caption = "Loading Login Form & Menus........." Sleep (500) Command1.Caption = "Opening Data Base Files Please Wait....." Sleep (500) Command1.Caption = "Data Files Opening Completed..." Sleep (500) Command1.Caption = "Loading Main Window" Sleep (500) Command1.Caption = "Loading Reports and Entry Forms .... Please Wait)" Sleep (500) Command1.Caption = "Loading Complete" Sleep (500) Command1.Caption = "Programmer Tolentino Gomes" Sleep (500) Timer1.Enabled = False MousePointer = 1 Load frmLogin frmLogin.Show Unload Me End Sub
76 BCA-4th Sem.
77 BCA-4th Sem.
78 BCA-4th Sem.
79 BCA-4th Sem.
80 BCA-4th Sem.
81 BCA-4th Sem.
82 BCA-4th Sem.
83 BCA-4th Sem.
84 BCA-4th Sem.
85 BCA-4th Sem.
86 BCA-4th Sem.
87 BCA-4th Sem.
88 BCA-4th Sem.
89 BCA-4th Sem.
90 BCA-4th Sem.
91 BCA-4th Sem.
BIBLIOGRAPHY
Visual Basic 6
By: Black
Microsoft Access Training Guide- Microsoft Access 2000 By: Maria Reid, Karl Schwartz
92 BCA-4th Sem.