+ All Categories
Home > Documents > Rto Report

Rto Report

Date post: 16-Jul-2015
Category:
Upload: anup-gowda
View: 1,053 times
Download: 0 times
Share this document with a friend
Popular Tags:

of 77

Transcript

RTO MANAGEMENT INTRODUCTION TO RTO MANAGEMENT In this growing competitive world it is becoming increasingly & absolutely necessary for any organization to streamline all its activities all the way stressing on quality perfection. Quality can be defined as fitness for use at an economical cost while satisfying customer requirements this can be achieved if the organization has the good quality system in which all the medical activities of the hospital are bought in line with operating procedure and guidance. So the RTO management is planned to automate the current manual system. The main aim of the project is to design innovative software, which deals with the RTO management system. The motto of the project is to simplify the job of the administrative people and to render a user-friendly package. The system provides information regarding the RTO application and its status. The tedious jobs such as verifying all the records of the applicant, confirming all the personal details are furnished, submission of qualification documents, driving license, registration details, etc., are done in the most convenient way to the administrator. Also security is being provided in the most proficient way. All the intermediate stages starting from receiving of the application form to revealing the applicant number along with the expiry date of the license are being dealt.

Advantages The main purpose of this software is to make RTO automated System.

The intension is to reduce the staffs effort and time. Searching is customized. Absolutely user-friendly software that requires minimum training.Page | 1

RTO MANAGEMENT Simplified package, which requires minimum interaction. Multi-user package with database loaded in the server. To view the reports stored in the database. This software is validated and easy to port. Contains extensive instant help facility to guide the user. Only the administrator can delete/modify the details in the database. PRESENT SYSTEM

The main purpose of this software is to make RTO automated System.

The intension is to reduce the staffs effort and time. Searching is customized. Absolutely user-friendly software that requires minimum training. Simplified package, which requires minimum interaction. Multi-user package with database loaded in the server. To view the reports stored in the database. This software is validated and easy to port. Contains extensive instant help facility to guide the user. Only the administrator can delete/modify the details in the database.

PROPOSED SYSTEM: The proposed system RTO MANAGEMENT SYSTEM is a computerized system with better features than the existing system. It includes the concepts of the existing system and also developed by the new features is given below.

Page | 2

RTO MANAGEMENT

THE FEATURES OF PROPOSED SYSTEM The proposed system is password protected which provides security to the data. Only the authorized user can access the entire data. It is user friendly with well-defined screens and required inputs. It is interactive and fast in execution. Data entry is optimized using graphical controlled tools. Navigation though forms is easy. Information linking and embedding between the forms and tables is present in the system. Duplicate information cannot be entered, if done so relating messages will be displayed. Maintains detail information of applicant and officers

Large number of bulky registers can be avoided. Reduction in clerical works and better accountability. In general, it reduces time for all the transactions tacking place in RTO.

SYSTEM ANALYSIS & DESIGN As the name System Analysis & Design indicates that it deals with the Analysis and Design parts, which are the two important phases of any software system designing. The analysis includes steps like Identifying the user details Identify the tables and its relationships. Writing the ER Model & DFD for the better understanding of the problem.Page | 3

RTO MANAGEMENT Iterate and refine. The design includes steps like Design the attributes, structures and code. Here we have to design the tables, views, Indexes & Queries in Oracle, which is the back end tool. Forms, Reports & Menus in Visual Basic 6.0, which is the front end tool. INTRODUCTION TO VISUAL BASIC For database management, we say our Visual Basic application acts as a frontend to the database. This means the Visual Basic application provides the interface between the user and the database. This interface allows the user to tell the database what he or she needs and allows the database to respond to the request displaying the requested information in some manner. Visual Basic and Databases requires some edition of Visual Basic 5 or Visual Basic 6. A Visual Basic application cannot directly interact with a database. There are two controls used by Visual Basic to interact with databases: the DAO (data access object) control and the ADO (ActiveX data object) control. However, that the ADO control is available only with Visual Basic 6 and utilising ADO we have developed this software. An observation that illustrates the power of using Visual Basic as a front-end for database management systems:

Page | 4

RTO MANAGEMENT Using Visual Basic, it requires less code to connect to an existing database, view all information within that database, and modify any and all information within that database, than it does to add two numbers together. The following code is necessary to connect to the ORACLE database using ADO DB method using Visual Basic as front - end: Module Public MyCon as ADODB.Connection Dim rs as ADODB.Recordset Function Connect () Set MyCon = New ADODB.Connection MyCon.Open (Provider=MSDASQL.1; Driver={Microsoft ODBC for Oracle}; _ Uid=userid; pwd=password; server=service name) Set rs = New ADODB.Recordset Rs. Open select * from table name, MyCon, adOpenDynaset, adLockOptimistic End Function

Visual Basic is a tool that allows us to develop Windows (Graphic User Interface GUI) applications. The applications have a user-friendly interface and will have familiar appearance to the user. Visual Basic is event-driven; meaning code remains idle until called upon to respond to some event (button pressing, menu selection, etc.,). An event processor governs Visual Basic. Nothing happens until an event is detected. Once an event is detected,

Page | 5

RTO MANAGEMENT the code corresponding to that event (event procedure) is executed. Program control is then returned to the event processor.Event

Some Features of Visual Basic

Basic Code

Basic Code

Basic Code

Full set of objects - you 'draw' the application. Lots of icons and pictures for your use. Response to mouse and keyboard actions. Clipboard and printer access. Full array of mathematical, string handling, and graphics functions. Can handle fixed and dynamic variable and control arrays. Sequential and random access files support. Useful debugger and error-handling facilities. Powerful database access tools. ActiveX support. Package & Deployment Wizard makes distributing your applications

simple. Visual Basic 6.0 versus Other Versions of Visual Basic The original Visual Basic for DOS and Windows were introduced in 1991. Visual Basic 3.0 was released in 1993. Visual Basic 4.0 released in late 1995 (added 32 bit application support). Visual Basic 5.0 released in late 1996. New environment, supported creation of

ActiveX controls, deleted 16-bit application support. And, some identified new features of Visual Basic 6.0: Faster compiler. Page | 6

RTO MANAGEMENT

New ActiveX data control object. Allows database integration with wide variety of applications. New data report designer. New Package & Deployment Wizard.

Data Control Language (DCL): DCL statements are used for securing the database. DCL statement such as GRANT, REVOKE, COMMIT and ROLLBACK commands permit groups of database transaction to be made permanent or to be nullified.

Introduction to Oracle The basic concepts of ORACLE and other related topics are: 1. Database Concepts 2. Database Management Systems (DBMS) 3. Relational Database Management System (RDBMS) 4. RDBMS Structure 5. Difference: DBMS and RDBMS 6. Entity-Relationship Model 7. Mapping Cardinalities 8. E-R Diagram 9. Normalisation 10. SQL Concepts Introduction ORACLE can create MIRACLES!! First created and marketed for large mainframe computers and minicomputers, over more than 10 years, the ORACLE 8 Relational Database Management System improved as a full-featured, SQL-based dataPage | 7

RTO MANAGEMENT system. Prior to SQL, there was no standard data access language. IBM developed the SQL relational database interface in the late 1970s. The ORACLE 8 family of database products includes several powerful applications development and generation tools. These tools provide complete facilities that systems designers and developers can use to design, develop and test software product whose engine is the ORACLE 8 RDBMS. DATABASE CONCEPTS A database is an organised collection of information. It is a tool for organising, sorting, maintaining, calculating, combining and retrieving information. Thus we can use an ORACLE 8 database for organising: Mailing Lists Customer, Client and Supplier Lists Personnel Information Inventories Accounts Payables and Receivables A Variety of other Information

Database: A Database can be defined in many ways. It is an organised collection of information stored in a particular format. It is an integrated set of inter-related data. It is a repository of relevant information and so on. The simplest form of database is the personal telephone diary. In this database we keep information about our friends name and their telephone numbers. Another example of a database is the visiting cards file. Each visiting card represents a person. It contains information about the name of the person, the company name, the addressPage | 8

RTO MANAGEMENT and their phone numbers, etc. When we have several visiting cards, we need to store them in proper order. Now visiting card database can be as follows: We have now fixed the format in which we will store information about the visiting cards. This format is termed as STRUCTURE of Database. If we consider the database consisting of horizontal rows and vertical columns, then information from one visiting card will appear in a row. There could be many such rows. The columns in the table represent Persons Name, Company Name, Address, etc. The format can be as follows: Database Management software is the solution for solving all the problems of information management. Database Management System must be able to handle large amount of data preferably in a multi-user environment so that more than one user can concurrently access the same data. This may demand a sophisticated, mighty and powerful 4G (Fourth Generation Language) database like ORACLE 8. ORACLE 8 servers provides efficient solutions for the above said database management requirements. It supports largest of databases and provides full control on space usage and supports large number of concurrent users executing a variety of database applications operating on the same data. Oracles high performance speed helps users to access data with significant speed. ORACLE 8 software allows different types of computers and operating systems to share information access networks. Before we start, lets have a brief explanation on the basic concepts of the Database Management. DATABASE MANAGEMENT SYSTEM (DBMS) A database management system allows us to store, retrieve and manipulate data or information. There are 3 types of DBMS: Hierarchical, Network and Relational.

Page | 9

RTO MANAGEMENT Definition: An efficient system that organizes, manages and manipulates the database is called a Database Management System. In order to manage data in a database, we need software. This software is called Database Management System (DBMS). It provides facilities to the user to access the database with ease. It also provides the user to manipulate the data like Updating, Querying, Generating Reports and defining database. The basic operations that can be performed in a database with ease using a DBMS are: Adding The Data Modifying the Data Sort the Data Delete the Data Search

RELATIONAL DATABASE MANAGEMENT SYSTEM (RDBMS) Advantages of RDBMS It provides minimum data redundancy and minimum data inconsistency. It eliminates the difficulty in accessing And manipulating data. It offers uniform security and privacy control. Data sharing can be accomplished easily. It provides data integration.

DBMS

RDBMS

Page | 10

RTO MANAGEMENT The concept of relationship is missing in Based on the concept of relationships. DBMS. If it exists it is very less. Speed of operation is very slow. less. Machine Speed of operation is very fast. and software requirements are very high. a Minimum machine required is like dBase PC AT 386 with 8 MB ram. Facilities and utilities offered are many. Platforms used can be any. (Dos, Unix, Windows, etc.,) Uses concept of a file. DBMS normally use a 3GL. Examples: dBase, FoxBASE, Etc. Uses concept of a table. RDBMS normally use a 4GL. Examples: Oracle, Unify etc. Hardware and software requirements are H a r d w a r e required for

DBMS is just a PC. Facilities and utilities offered are limited. Platform used is normally Dos.

ENTITY-RELATIONSHIP MODEL: The ENTITY RELATIONSHIP (E-R) model is based on Object based logical model, which consists of a set of basic objects called ENTITIES and RELATIONSHIPS among these objects. This was developed in order to facilitate the database design.

Entity: An Entity is an object that exists and is distinguishable from other objects. For example: Roll Number 10 in a class, is an entity since it uniquely identifies a person in

Page | 11

RTO MANAGEMENT that class. Similarly, account number 14794 is an entity that uniquely identifies a persons account. An Entity may be a person, a book, or it may be abstract. Entity Set: An Entity Set is a set of entities of the same type. The set of persons studying in a class can be defined as an entity set of students. Relationship: A Relationship is an association between two or more entities. For example: We may define a relationship between student Rakesh with Class V. This specifies that Rakesh is a student studying in Class V.

Binary relationship: Consider the two entity sets Employee and Department. We define the relationship set EmpDept to denote the association between Employee and Department. This relationship is called a BINARY RELATIONSHIP, i.e. it involves two entity sets Employee and Department. Relationships can also be made with more than two entity sets. MAPPING CARDINALITIES: E-R data model defines certain constraints to which the data in the database must satisfy. These constraints are called MAPPING CARDINALITIES. For a binary relationship between two entity sets X and Y, we have the following mapping cardinalities: One-to-One Mapping One-to-Many Mapping Many-to-One MappingPage | 12

RTO MANAGEMENT Mane-to-Many Mapping

One-to-One Mapping: An entity in X is associated with at least one entity in Y and an entity in Y is associated with at least one entity in X. For each entity there is one and only one matching entity. Ex: Husband and Wife Relationship. One-to-Many Mapping: An entity in X is associated with any number of entities in Y and an entity in Y is associated with at least one entity in X. Ex: Father and Child Relationship Many-to-One Mapping: An entity in X is associated with at least one entity in Y. An entity in Y can be associated with any number of entities in X. Ex: Vendor and Goods Relationship Many-to-Many Mapping: An entity in X is associated with any number of entities in Y, and an entity in Y is associated with any number of entities in X. Ex: Doctor and Patient Relationship. ER DIAGRAM: Now let us take the example of the Employee and Department entity sets. Here the relationship would be Many-to-One, since many employees work in a particular department. Let us understand this more clearly with the E-R Diagram.FATHER RAJIV CHILD PRIYA RAHUL HARI MOHAN Page | 13

RTO MANAGEMENT Relationship between the entity sets Employee and Department with the binary relationship EmpDept. The overall logical structure of a database can be expressed by a E-R diagram, which consists of the following components: Rectangles: which represent entity sets. Ellipses: which represent attributes. Diamonds: which represent relationship among the entity sets. Lines: which represent link attributes to entity sets and entity sets to relationships.

NORMALISATION: Normalization is a process of simplifying the relationship between the data in a record. It is carried out for the following reasons: To simplify the maintenance of data through updates, insertions and deletions. To allow simple retrieval of data in response to query and requests. To avoid restructuring of data when new application requirement arises. To structure the data so that any relationship can be easily represented.

Normalisation theory is built around the normal forms. A relation is said to be in particular normal form if it satisfies certain specified set of constraints. RDBMS Structure: To avoid chaos in any complex system, someone has to be in charge. The person responsible for a database is called database administrator (DBA).

Page | 14

RTO MANAGEMENT

SQL CONCEPT SQL is the interface language between the user and the ORACLE database. The American National Standards Institute (ANSI) has accepted SQL as standard access language for relational database management systems, and all of ORACLE access tools are based on this standard. Oracles implementation of SQL is fully compatible with most other SQL based systems. SQL*PLUS is a program for working with an ORACLE database. With SQL*PLUS we can: Create tables in the database Store information in the tables Change information in the tables Retrieve information Maintain the database itself

SQL*PLUS is a main direct access interface to the ORACLE RDBMS. SQL Structured Query Language consists of a basic vocabulary of English and English-like words. These are called keywords or reserved words in ORACLE because they cannot be used to name tables or other objects that use create.

BASIC SQL operation: SQL statements can be grouped into three general categories: Data Definition Language (DDL) Data Manipulation Language (DML) Page | 15

RTO MANAGEMENT Data Control Language (DCL) Data Definition Language (DDL)

We use this Language to structuring the database. We use DML to use the database. DCL statements are used for securing the Database HARDWARE AND SOFTWARE SPECIFICATION

HARDWARE & SOFTWARE SPECIFICATIONS Processor 1. Installation on to Hard Disk requires 2. RAM 3. Monitor 4. Mouse 5. Keyboard 6. Operating System

CONFIGURATION MINIMUM 80486 DX 4 0R HIGHER

RECOMMENDED Pentium 3

Minimum 2MB of Hard disk. Full installation 50 MB free disk space (include Oracle 9i & VB 6.0 32 MB 64 MB MONO/SVGA (800 x 600) 2-Button/3-Button Mouse Color/SVGA (800 x 600)

2-Button/3-Button Mouse Standard 104 Keys Keyboard Multimedia Keyboard Windows 9X Windows 9X,ME, NT, 2000

Page | 16

RTO MANAGEMENT

DATA BASE DESIGN

APPLICANT TABLE

Description Dl_No A_Name A_Fname A_Rel Dob A_Qua A_Add A_Pin A_Iden A_Bg A_Ph A_Em

Type Number Character Character Character Date Character Character Number Character Character Number Character

Size 12 20 20 20 -20 50 12 20 20 16 20Page | 17

RTO MANAGEMENT

Gender

Character

20

2. CHANGE TABLE

Description Name FName P_Add P_Pin N_Add N_Pin

Type Character Character Character Number Character Number

Size 20 20 50 20 50 20

Page | 18

RTO MANAGEMENT

REGISTRATION TABLE

Description Reg_No Name Rel Addr Pin Reg_Date V_Name C_Name V_Is V_Type Dom Ch_No E_No O_Name O_Id Rec_No Amt

Type Number Character Character Character Number Date Character Character Character Character Date Character Character Character Number Number Number

Size 20 20 20 50 20 -20 20 20 20 -20 20 20 20 20 20Page | 19

RTO MANAGEMENT

Gender

Character

20

DRIVING LICENSE TABLE Description Dl_No Name F_Name Dob Add Pin License O_Name O_Id Doex Doi Doe Recp_No Amt Gender Type Number Character Character Date Character Number Character Character Number Date Date Date Number Number Character Size 20 20 20 -50 20 20 20 20 ---20 20 20

Page | 20

RTO MANAGEMENT

LEARNING LICENSE TABLE

Description LL_No Name E_Name Dob Addr Pin License O_Name O_Id Doex Doi Doe Recp_No Amt Gender

Type Number Character Character Date Character Number Character Character Number Date Date Date Number Number Character

Size 20 20 20 -50 20 20 20 20 ---20 20 20

Page | 21

RTO MANAGEMENT

OFFICERS TABLE Description O_No O_Name O_Qua O_Add O_Pin O_Ph Type Number Character Character Character Number Number Size 20 20 20 20 20 20

RENEWAL TABLE

Description Dl_No Name Ren_No Dor Doe O_Name O_Id R_No

Type Number Character Number Date Date Character Number Number

Size 20 20 20 --20 20 20Page | 22

RTO MANAGEMENT Amt Number 20

TRANSFER TABLE Description Reg_No Vh_Name Co_Name Eng Ch Tdate Fn Ffn Fsex Fadd Fpin Fdate Sn Sfn Ssex Sadd Spin Sdate Res Type Number Character Character Number Number Date Character Character Character Character Number Date Character Character Character Character Number Date Number Size 20 20 20 20 20 -20 20 20 20 20 -20 20 20 20 20 -20

Page | 23

RTO MANAGEMENT Amt Gender TRANSPORT TABLE Description Dl_No Name F_Name Dob Addr Pin B_No O_Name O_Id Doe Doi Rec_NO Amt Gender Type Number Character Character Date Character Number Number Character Number Date Date Number Number Character Size 20 20 20 -20 20 20 20 20 --20 20 20 Number Character 20 20

Page | 24

RTO MANAGEMENT VEHICLE TABLE

Description Reg_No Name V_Name C_Name V_Type V_Is Dom Dor Ch_No E_No No_Cy Fule Hp Cc Sc Cobr

Type Number Character Character Character Character Character Date Date Character Character Number Character Number Number Number Character

Size 20 20 20 20 20 20 --20 20 20 20 20 20 20 20

dATA FLOW DIAGRAM

Page | 25

RTO MANAGEMENT

INPUT AND OUTPUT SCREENS

Page | 26

RTO MANAGEMENT

Page | 27

RTO MANAGEMENT

Page | 28

RTO MANAGEMENT

Page | 29

RTO MANAGEMENT

Page | 30

RTO MANAGEMENT

Page | 31

RTO MANAGEMENTCODINGS FOR RTO MANAGEMENT SYSTEM Coding for Vehicles Registration Public Sub clear() For i = 0 To 14 Text1(i) = "" grd_reg.clear Next Opt_Male.Value = False Opt_Female.Value = False End Sub Private Sub cmd_clear_Click() clear End Sub Private Sub cmd_del_Click() On Error GoTo Errhand Dim j SQL = "select * from Registration where Reg_No =" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) If Not (Rs.BOF And Rs.EOF) Then j = MsgBox("Are you want to delete the Record", 36, "RTO_Management") If j = 6 Then Rs.Delete Else MsgBox "The Record is Doesnt exist" End If Set Rs = Nothing End If Errhand: If Err 0 Then MsgBox "Records not found", 64, "RTO_Management" End If End Sub Private Sub cmd_exit_Click() Unload Me End Sub Private Sub cmd_mod_Click() On Error GoTo Errhand SQL = "select * from Registration where Reg_No=" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) With Rs If Not (.BOF And .EOF) Then .Edit !Reg_No = Text1(0) !Name = Text1(1) Page | 32

RTO MANAGEMENT!FNAME = Text1(2) !Rel = Text1(3) !ADDR = Text1(4) !PIN = Text1(5) !Reg_Date = DTPicker1(0) !V_Name = Text1(6) !C_Name = Text1(7) !V_Is = Combo1(0) !V_Type = Text1(8) !DOM = DTPicker1(1) !Ch_No = Text1(9) !E_No = Text1(10) !O_NAME = Text1(11) !O_ID = Text1(12) !REC_NO = Text1(13) !AMT = Text1(14) If Opt_Male.Value = True Then !GENDER = "Male" ElseIf Opt_Female.Value = True Then !GENDER = "Female" End If .Update MsgBox "the record has been saved" End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Record not found", 64, "RTO_Management" End If End Sub Private Sub cmd_query_Click() On Error GoTo Errhand grd_reg.Visible = False Dim res res = InputBox("Enter the Vehicle_No", "RTO_Management") If res = "" Then Exit Sub End If SQL = "Select * from Registration where Reg_No =" & Val(res) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then .MoveLast Text1(0) = !Reg_No Text1(1) = !Name Text1(2) = !FNAME Text1(3) = !Rel Text1(4) = !ADDR Page | 33

RTO MANAGEMENTText1(5) = !PIN DTPicker1(0) = !Reg_Date Text1(6) = !V_Name Text1(7) = !C_Name Combo1(0) = !V_Is Text1(8) = !V_Type DTPicker1(1) = !DOM Text1(9) = !Ch_No Text1(10) = !E_No Text1(11) = !O_NAME Text1(12) = !O_ID Text1(13) = !REC_NO Text1(14) = !AMT If !GENDER = "Male" Then Opt_Male.Value = True Else Opt_Female.Value = True End If Else MsgBox "there are no record", 64, "RTO_Management" End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If End Sub Private Sub cmd_save_Click() On Error GoTo Errhand Set Rs = Db.OpenRecordset("select * from registration where Reg_No=" & Text1(0).Text, dbOpenDynaset, , 2) With Rs If .RecordCount = 0 Then .AddNew !Reg_No = Text1(0) !Name = Text1(1) !FNAME = Text1(2) !Rel = Text1(3) !ADDR = Text1(4) !PIN = Text1(5) !Reg_Date = DTPicker1(0) !V_Name = Text1(6) !C_Name = Text1(7) !V_Is = Combo1(0) !V_Type = Text1(8) !DOM = DTPicker1(1) !Ch_No = Text1(9) Page | 34

RTO MANAGEMENT!E_No = Text1(10) !O_NAME = Text1(11) !O_ID = Text1(12) !REC_NO = Text1(13) !AMT = Text1(14) If Opt_Male.Value = True Then !GENDER = "Male" ElseIf Opt_Female.Value = True Then !GENDER = "Female" End If .Update MsgBox "The Record is Saved", 64 Else MsgBox "It is a dublicate register number" Text1(0).Text = "" Text1(0).SetFocus End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Verify the entered values", 64, "RTO_Management" End If End Sub Private Sub cmd_view_Click() On Error GoTo Errhand grd_reg.Visible = True grd_reg.clear grd_format SQL = "select * from Registration order by Reg_No" Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) If Not (Rs.BOF And Rs.EOF) Then grd_reg.Row = 1 With Rs Do Until .EOF grd_reg.AddItem !Reg_No & vbTab & !Reg_Date & vbTab & !Name & vbTab & !V_Name & vbTab & !V_Is & vbTab & !E_No, grd_reg.Row grd_reg.Row = grd_reg.Row + 1 .MoveNext Loop End With Else MsgBox "No current record to display", 64, "RTO_Management" End If Set Rs = Nothing Text1(0).SetFocus Errhand: If Err 0 Then Page | 35

RTO MANAGEMENTMsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If End Sub Private Sub Form_Load() DBEngine.DefaultType = dbUseODBC Set Db = OpenDatabase("rto", False, False, "odbc;uid=rto;pwd=rto;dsn=rto") End Sub Private Sub grd_reg_Click() Dim ans As String With grd_reg .Col = 0 ans = .Text End With SQL = "Select * from Registration where Reg_No=" & Val(ans) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then Text1(0) = !Reg_No Text1(1) = !Name Text1(2) = !FNAME Text1(3) = !Rel Text1(4) = !ADDR Text1(5) = !PIN DTPicker1(0) = !Reg_Date Text1(6) = !V_Name Text1(7) = !C_Name Combo1(0) = !V_Is Text1(8) = !V_Type DTPicker1(1) = !DOM Text1(9) = !Ch_No Text1(10) = !E_No Text1(11) = !O_NAME Text1(12) = !O_ID Text1(13) = !REC_NO Text1(14) = !AMT If !GENDER = "Male" Then Opt_Male.Value = True Else Opt_Female.Value = True End If Else MsgBox "No Such Current Record", 64 End If End With Set Rs = Nothing Text1(0).SetFocus Page | 36

RTO MANAGEMENTEnd Sub Private Sub Text1_GotFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 txt_gf Text1(Index) End Select End Sub Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer) Select Case Index Case 1, 2, 3, 6, 7, 8, 11 char_key Text1(Index), KeyAscii Case 0, 5, 9, 10, 12, 13, 14 int_key Text1(Index), KeyAscii End Select End Sub Private Sub Text1_LostFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 txt_lf Text1(Index) End Select End Sub Public Sub grd_format() With grd_reg .Cols = 6 .Rows = 10 .TextMatrix(0, 0) = "Register No" .TextMatrix(0, 1) = "Register Date" .TextMatrix(0, 2) = "Name" .TextMatrix(0, 3) = "Vehicle Name" .TextMatrix(0, 4) = "Vehicle is" .TextMatrix(0, 5) = "Engine No" For i = 0 To 5 .FixedAlignment(i) = 4 .ColWidth(i) = 2000 Next End With End Sub

Page | 37

RTO MANAGEMENTCoding for Learners License Private Sub Command4_Click() Unload Me End Sub Private Sub cmd_clr_Click() clear End Sub Public Sub clear() For i = 0 To 8 Text1(i) = "" grd_ll.clear Next Opt_Male.Value = False Opt_Female.Value = False Combo1.clear End Sub Private Sub cmd_del_Click() On Error GoTo Errhand Dim j SQL = "select * from Learning where LL_No =" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) If Not (Rs.BOF And Rs.EOF) Then j = MsgBox("Are you want to delete the Record", 36, "RTO_Management") If j = 6 Then Rs.Delete Else MsgBox "The Record is Doesnt exist" End If Set Rs = Nothing End If Errhand: If Err 0 Then MsgBox "Records not found", 64, "RTO_Management" End If End Sub Private Sub cmd_exit_Click() Unload Me End Sub

Private Sub cmd_mod_Click() On Error GoTo Errhand SQL = "select * from Learning where LL_No=" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) Page | 38

RTO MANAGEMENTWith Rs If Not (.BOF And .EOF) Then .Edit !LL_NO = Text1(0) !Name = Text1(1) !FNAME = Text1(2) !DOB = DTPicker1(0) !ADDR = Text1(3) !PIN = Text1(4) !Licence = Combo1 !O_NAME = Text1(5) !O_ID = Text1(6) !DOEX = DTPicker1(1) !DOI = DTPicker1(2) !DOE = DTPicker1(3) !Recp_No = Text1(7) If Opt_Male.Value = True Then !GENDER = "Male" ElseIf Opt_Female.Value = True Then !GENDER = "Female" End If .Update MsgBox "the record has been saved" End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Record not found", 64, "RTO_Management" End If End Sub Private Sub cmd_query_Click() On Error GoTo Errhand grd_ll.Visible = False Dim res res = InputBox("Enter the LL_No", "RTO_Management") If res = "" Then Exit Sub End If SQL = "Select * from Learning where LL_No =" & Val(res) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then .MoveLast Text1(0) = !LL_NO Text1(1) = !Name Text1(2) = !FNAME DTPicker1(0) = !DOB Text1(3) = !ADDR Page | 39

RTO MANAGEMENTText1(4) = !PIN Combo1 = !Licence Text1(5) = !O_NAME Text1(6) = !O_ID DTPicker1(1) = !DOEX DTPicker1(2) = !DOI DTPicker1(3) = !DOE Text1(7) = !Recp_No Text1(8) = !AMT If !GENDER = "Male" Then Opt_Male.Value = True Else Opt_Female.Value = True End If Else MsgBox "there are no record", 64, "RTO_Management" End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If End Sub Private Sub cmd_save_Click() On Error GoTo Errhand Set Rs = Db.OpenRecordset("select * from learning where LL_No=" & Text1(0).Text, dbOpenDynaset, , 2) With Rs If .RecordCount = 0 Then .AddNew !LL_NO = Text1(0) !Name = Text1(1) !FNAME = Text1(2) !DOB = DTPicker1(3) !ADDR = Text1(3) !PIN = Text1(4) !Licence = Combo1 !O_NAME = Text1(5) !O_ID = Text1(6) !DOEX = DTPicker1(0) !DOI = DTPicker1(1) !DOE = DTPicker1(2) !Recp_No = Text1(7) !AMT = Text1(8) If Opt_Male.Value = True Then !GENDER = "Male" ElseIf Opt_Female.Value = True Then Page | 40

RTO MANAGEMENT!GENDER = "Female" End If .Update MsgBox "The Record is Saved", 64 Else MsgBox "It is a dublicate LL Number" Text1(0).Text = "" Text1(0).SetFocus End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Verify the entered values", 64, "RTO_Management" End If End Sub Private Sub cmd_view_Click() On Error GoTo Errhand grd_ll.Visible = True grd_ll.clear grd_format SQL = "select * from Learning order by LL_No" Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) If Not (Rs.BOF And Rs.EOF) Then grd_ll.Row = 1 With Rs Do Until .EOF grd_ll.AddItem !LL_NO & vbTab & !Name & vbTab & !DOB & vbTab & !Licence & vbTab & !ADDR & vbTab & !DOI, grd_ll.Row grd_ll.Row = grd_ll.Row + 1 .MoveNext Loop End With Else MsgBox "No current record to display", 64, "RTO_Management" End If Set Rs = Nothing Text1(0).SetFocus Errhand: If Err 0 Then MsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If End Sub Private Sub Form_Load() DBEngine.DefaultType = dbUseODBC Set Db = OpenDatabase("rto", False, False, "odbc;uid=rto;pwd=rto;dsn=rto") End Sub Page | 41

RTO MANAGEMENTPrivate Sub grd_ll_Click() Dim ans As String With grd_ll .Col = 0 ans = .Text End With SQL = "Select * from Learning where LL_No=" & Val(ans) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then Text1(0) = !LL_NO Text1(1) = !Name Text1(2) = !FNAME DTPicker1(0) = !DOB Text1(3) = !ADDR Text1(4) = !PIN Combo1 = !Licence Text1(5) = !O_NAME Text1(6) = !O_ID DTPicker1(1) = !DOEX DTPicker1(2) = !DOI DTPicker1(3) = !DOE Text1(7) = !Recp_No Text1(8) = !AMT If !GENDER = "Male" Then Opt_Male.Value = True Else Opt_Female.Value = True End If Else MsgBox "No Such Current Record", 64 End If End With Set Rs = Nothing Text1(0).SetFocus End Sub Private Sub Text1_GotFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 txt_gf Text1(Index) End Select End Sub Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer) Select Case Index Case 1, 2, 5 char_key Text1(Index), KeyAscii Page | 42

RTO MANAGEMENTCase 0, 4, 6, 7, 8 int_key Text1(Index), KeyAscii End Select End Sub Private Sub Text1_LostFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 txt_lf Text1(Index) End Select End Sub Public Sub grd_format() With grd_ll .Cols = 6 .Rows = 10 .TextMatrix(0, 0) = "LL_No" .TextMatrix(0, 1) = "Name" .TextMatrix(0, 2) = "Date of Birth" .TextMatrix(0, 3) = "Licence to" .TextMatrix(0, 4) = "Address" .TextMatrix(0, 5) = "Date of issue" For i = 0 To 5 .FixedAlignment(i) = 4 .ColWidth(i) = 2000 Next End With End Sub

Page | 43

RTO MANAGEMENTCoding for Driving License Dim conn As New ADODB.Connection Dim rss As New ADODB.Recordset Private Sub cmd_clear_Click() clear End Sub Private Sub cmd_del_Click() On Error GoTo Errhand Dim j SQL = "select * from Driving where DL_No =" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) If Not (Rs.BOF And Rs.EOF) Then j = MsgBox("Are you want to delete the Record", 36, "RTO_Management") If j = 6 Then Rs.Delete Else MsgBox "The Record is Doesnt exist" End If Set Rs = Nothing End If Errhand: If Err 0 Then MsgBox "Records not found", 64, "RTO_Management" End If End Sub Private Sub cmd_exit_Click() Me.Hide End Sub Private Sub cmd_mod_Click() On Error GoTo Errhand SQL = "select * from Driving where DL_No=" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) With Rs If Not (.BOF And .EOF) Then .Edit !DL_NO = Text1(0) !Name = Text1(1) !FNAME = Text1(2) !DOB = DTPicker1(0) !ADDR = Text1(3) !PIN = Text1(4) !Licence = Combo1(0) !O_NAME = Text1(5) !O_ID = Text1(6) !DOEX = DTPicker1(1) !DOI = DTPicker1(2) Page | 44

RTO MANAGEMENT!DOE = DTPicker1(3) !Recp_No = Text1(7) !AMT = Text1(8) If Opt_Male.Value = True Then !GENDER = "Male" ElseIf Opt_Female.Value = True Then !GENDER = "Female" End If .Update MsgBox "the record has been saved" End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Record not found", 64, "RTO_Management" End If End Sub Private Sub cmd_query_Click() On Error GoTo Errhand grd_dl.Visible = False Dim res res = InputBox("Enter the DL_No", "RTO_Management") If res = "" Then Exit Sub End If SQL = "Select * from Driving where DL_No =" & Val(res) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then .MoveLast Text1(0) = !DL_NO Text1(1) = !Name Text1(2) = !FNAME DTPicker1(0) = !DOB Text1(3) = !ADDR Text1(4) = !PIN Combo1(0) = !Licence Text1(5) = !O_NAME Text1(6) = !O_ID DTPicker1(1) = !DOEX DTPicker1(2) = !DOI DTPicker1(3) = !DOE Text1(7) = !Recp_No Text1(8) = !AMT If !GENDER = "Male" Then Opt_Male.Value = True Else Opt_Female.Value = True Page | 45

RTO MANAGEMENTEnd If Else MsgBox "there are no record", 64, "RTO_Management" End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If End Sub Private Sub cmd_save_Click() On Error GoTo Errhand Set Rs = Db.OpenRecordset("select * from driving where DL_NO=" & Text1(0).Text, dbOpenDynaset, , 2) With Rs If .RecordCount = 0 Then .AddNew !DL_NO = Text1(0) !Name = Text1(1) !FNAME = Text1(2) !DOB = DTPicker1(3) !ADDR = Text1(3) !PIN = Text1(4) !Licence = Combo1(0) !O_NAME = Text1(5) !O_ID = Text1(6) !DOEX = DTPicker1(0) !DOI = DTPicker1(1) !DOE = DTPicker1(2) !Recp_No = Text1(7) !AMT = Text1(8) If Opt_Male.Value = True Then !GENDER = "Male" ElseIf Opt_Female.Value = True Then !GENDER = "Female" End If .Update MsgBox "The Record is Saved", 64 Else MsgBox "It is a dublicate DL Number" Text1(0).Text = "" Text1(0).SetFocus End If End With Set Rs = Nothing Errhand: If Err 0 Then Page | 46

RTO MANAGEMENTMsgBox "Verify the entered values", 64, "RTO_Management" End If End Sub Private Sub cmd_view_Click() On Error GoTo Errhand grd_dl.Visible = True grd_dl.clear grd_format SQL = "select * from Driving order by DL_No" Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) If Not (Rs.BOF And Rs.EOF) Then grd_dl.Row = 1 With Rs Do Until .EOF grd_dl.AddItem !DL_NO & vbTab & !Name & vbTab & !DOB & vbTab & !Licence & vbTab & !ADDR & vbTab & !DOI, grd_dl.Row grd_dl.Row = grd_dl.Row + 1 .MoveNext Loop End With Else MsgBox "No current record to display", 64, "RTO_Management" End If Set Rs = Nothing Text1(0).SetFocus Errhand: If Err 0 Then MsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If End Sub Private Sub Combo1_GotFocus(Index As Integer) Select Case Index Case 0 cmb_lf Combo1(Index) End Select End Sub Private Sub Combo1_LostFocus(Index As Integer) Select Case Index Case 0 cmb_lf Combo1(Index) End Select End Sub Private Sub Combo2_Click() Dim learnconn As New ADODB.Connection Page | 47

RTO MANAGEMENTDim c1 As Integer c1 = 0 learnconn.Open "rto", "rto", "rto" If rss.State = 1 Then rss.Close SQL = "Select * from Learning where LL_NO = " & Combo2.Text & "" rss.Open SQL, learnconn, adOpenKeyset, adLockOptimistic While rss.EOF = False If Combo2.Text = rss.Fields(0) Then Text1(1) = rss.Fields(1) Text1(2) = rss.Fields(2) DTPicker1(0) = rss.Fields(11) Text1(3) = rss.Fields(4) Text1(4) = rss.Fields(5) Combo1(0) = rss.Fields(6) Text1(5) = rss.Fields(7) Text1(6) = rss.Fields(8) DTPicker1(1) = rss.Fields(9) DTPicker1(2) = rss.Fields(10) DTPicker1(3) = rss.Fields(3) Text1(7) = rss.Fields(12) Text1(8) = rss.Fields(13) If rss.Fields(14) = "Male" Then Opt_Male.Value = True Else Opt_Female.Value = True End If c1 = 1 Exit Sub End If rss.MoveNext Wend 'Text1(0).SetFocus If c1 = 0 Then MsgBox "The record is not found" End If If rss.EOF = True Then rss.MovePrevious End If End Sub Private Sub Form_Load() DBEngine.DefaultType = dbUseODBC Set Db = OpenDatabase("rto", False, False, "odbc;uid=rto;pwd=rto;dsn=rto") conn.Open "rto", "rto", "rto" With rss If .State = 1 Then .Close SQL = "Select LL_NO from Learning" .Open SQL, conn, adOpenKeyset, adLockOptimistic While Not rss.EOF Combo2.AddItem .Fields(0) Page | 48

RTO MANAGEMENT.MoveNext Wend End With End Sub Private Sub grd_dl_Click() Dim ans As String With grd_dl .Col = 0 ans = .Text End With SQL = "Select * from Driving where DL_No=" & Val(ans) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then Text1(0) = !DL_NO Text1(1) = !Name Text1(2) = !FNAME DTPicker1(0) = !DOB Text1(3) = !ADDR Text1(4) = !PIN Combo1(0) = !Licence Text1(5) = !O_NAME Text1(6) = !O_ID DTPicker1(1) = !DOEX DTPicker1(2) = !DOI DTPicker1(3) = !DOE Text1(7) = !Recp_No Text1(8) = !AMT If !GENDER = "Male" Then Opt_Male.Value = True Else Opt_Female.Value = True End If Else MsgBox "No Such Current Record", 64 End If End With Set Rs = Nothing Text1(0).SetFocus End Sub Private Sub Text1_GotFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 txt_gf Text1(Index) End Select End Sub Page | 49

RTO MANAGEMENTPrivate Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer) Select Case Index Case 1, 2, 5 char_key Text1(Index), KeyAscii Case 0, 4, 6, 7, 8 int_key Text1(Index), KeyAscii End Select End Sub Private Sub Text1_LostFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 txt_lf Text1(Index) End Select End Sub Public Sub clear() For i = 0 To 8 Text1(i) = "" grd_dl.clear Next Opt_Male.Value = False Opt_Female.Value = False End Sub Public Sub grd_format() With grd_dl .Cols = 6 .Rows = 10 .TextMatrix(0, 0) = "DL_No" .TextMatrix(0, 1) = "Name" .TextMatrix(0, 2) = "Date of Birth" .TextMatrix(0, 3) = "Licence to" .TextMatrix(0, 4) = "Address" .TextMatrix(0, 5) = "Date of issue" For i = 0 To 5 .FixedAlignment(i) = 4 .ColWidth(i) = 2000 Next End With End Sub

Page | 50

RTO MANAGEMENTCoding for Transfer Private Sub cmd_clear_Click() clear End Sub Private Sub cmd_delete_Click() On Error GoTo Errhand Dim j SQL = "select * from Transfer where Regno =" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) If Not (Rs.BOF And Rs.EOF) Then j = MsgBox("Are you want to delete the Record", 36, "RTO_Management") If j = 6 Then Rs.Delete Else MsgBox "The Record is Doesnt exist" End If Set Rs = Nothing End If Errhand: If Err 0 Then MsgBox "Records not found", 64, "RTO_Management" End If End Sub Private Sub cmd_exit_Click() Unload Me End Sub Private Sub cmd_modify_Click() On Error GoTo Errhand SQL = "select * from Transfer where Regno=" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) With Rs If Not (.BOF And .EOF) Then .Edit !Regno = Text1(0) !vh_name = Text1(1) !co_name = Text1(2) !eng = Text1(3) !ch = Text1(4) !tdate = DTPicker1(0) !fn = Text1(5) !ffn = Text1(6) !fadd = Text1(7) !fpin = Text1(8) !fdate = DTPicker2(0) !sn = Text1(9) Page | 51

RTO MANAGEMENT!sfn = Text1(10) !sadd = Text1(11) !spin = Text1(12) !sdate = DTPicker3(0) !rec = Text1(13) !amo = Text1(14) If Opt_Male(0).Value = True Then !GENDER = "Male" ElseIf Opt_Female(0).Value = True Then !GENDER = "Female" End If .Update MsgBox "the record has been saved" End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Record not found", 64, "RTO_Management" End If End Sub Private Sub cmd_query_Click() On Error GoTo Errhand grd_tra.Visible = False Dim res res = InputBox("Enter the Regno", "RTO_Management") If res = "" Then Exit Sub End If SQL = "Select * from Transfer where Regno =" & Val(res) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then .MoveLast Text1(0) = !Regno Text1(1) = !vh_name Text1(2) = !co_name Text1(3) = !eng Text1(4) = !ch DTPicker1(0) = !tdate Text1(5) = !fn Text1(6) = !ffn Text1(7) = !fadd Text1(8) = !fpin DTPicker2(0) = !fdate Text1(9) = !sn Page | 52

RTO MANAGEMENTText1(10) = !sfn Text1(11) = !sadd Text1(12) = !spin DTPicker3(0) = !sdate Text1(13) = !rec Text1(14) = !amo If !GENDER = "Male" Then Opt_Male(0).Value = True Else Opt_Female(0).Value = True End If If !GENDER = "Male" Then Opt_Male(1).Value = True Else Opt_Female(1).Value = True End If Else MsgBox "there are no record", 64, "RTO_Management" End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If End Sub Private Sub cmd_save_Click() Set Rs = Db.OpenRecordset("select * from transfer where Regno=" & Text1(0).Text, dbOpenDynaset, , 2) With Rs If .RecordCount = 0 Then .AddNew !Regno = Text1(0) !vh_name = Text1(1) !co_name = Text1(2) !eng = Text1(3) !ch = Text1(4) !tdate = DTPicker1(0) !fn = Text1(5) !ffn = Text1(6) !fadd = Text1(7) !fpin = Text1(8) !fdate = DTPicker2(0) Page | 53

RTO MANAGEMENT!sn = Text1(9) !sfn = Text1(10) !sadd = Text1(11) !spin = Text1(12) !sdate = DTPicker3(0) !rec = Text1(13) !amo = Text1(14) If Opt_Male(0).Visible = True Then !GENDER = "Male" ElseIf Opt_Female(0).Visible = True Then !GENDER = "Female" End If If Opt_Male(1).Visible = True Then !GENDER = "Male" ElseIf Opt_Female(1).Visible = True Then !GENDER = "Female" End If .Update MsgBox "The Record is Saved", 64 Else MsgBox "It is a dublicate Regno Number" Text1(0).Text = "" Text1(0).SetFocus End If End With Set Rs = Nothing End Sub Private Sub cmd_view_Click() On Error GoTo Errhand grd_tra.Visible = True grd_tra.clear grd_format SQL = "select * from Transfer order by Regno" Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) If Not (Rs.BOF And Rs.EOF) Then grd_tra.Row = 1 With Rs Do Until .EOF grd_tra.AddItem !Regno & vbTab & !vh_name & vbTab & !co_name & vbTab & !fn & vbTab & !sn & vbTab & !eng & vbTab & !ch, grd_tra.Row grd_tra.Row = grd_tra.Row + 1 .MoveNext Loop End With Else MsgBox "No current record to display", 64, "RTO_Management" Page | 54

RTO MANAGEMENTEnd If Set Rs = Nothing Text1(0).SetFocus Errhand: If Err 0 Then MsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If End Sub Private Sub Form_Load() DBEngine.DefaultType = dbUseODBC Set Db = OpenDatabase("rto", False, False, "odbc;uid=rto;pwd=rto;dsn=rto") End Sub Private Sub grd_tra_Click() Dim ans As String With grd_tra .Col = 0 ans = .Text End With SQL = "Select * from Transfer where Regno=" & Val(ans) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then Text1(0) = !Regno Text1(1) = !vh_name Text1(2) = !co_name Text1(3) = !eng Text1(4) = !ch DTPicker1(0) = !tdate Text1(5) = !fn Text1(6) = !ffn Text1(7) = !fadd Text1(8) = !fpin DTPicker2(0) = !fdate Text1(9) = !sn Text1(10) = !sfn Text1(11) = !sadd Text1(12) = !spin DTPicker3(0) = !sdate Text1(13) = !rec Text1(14) = !amo If !GENDER = "Male" Then Opt_Male(0).Value = True Else Opt_Female(0).Value = True Page | 55

RTO MANAGEMENTEnd If If !GENDER = "Male" Then Opt_Male(1).Value = True Else Opt_Female(1).Value = True End If Else MsgBox "No Such Current Record", 64 End If End With Set Rs = Nothing Text1(0).SetFocus End Sub Private Sub Text1_GotFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 txt_gf Text1(Index) End Select End Sub Private Sub Text1_LostFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 txt_lf Text1(Index) End Select End Sub Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer) Select Case Index Case 1, 2, 5, 6, 7, 9, 10, 11 char_key Text1(Index), KeyAscii Case 0, 3, 4, 8, 12 int_key Text1(Index), KeyAscii End Select End Sub Public Sub grd_format() With grd_tra .Cols = 7 .Rows = 10 .TextMatrix(0, 0) = "Regno" .TextMatrix(0, 1) = "vh_name" .TextMatrix(0, 2) = "co_name" .TextMatrix(0, 3) = "fn" .TextMatrix(0, 4) = "sn" .TextMatrix(0, 5) = "eng" Page | 56

RTO MANAGEMENT.TextMatrix(0, 6) = "ch" For i = 0 To 6 .FixedAlignment(i) = 4 .ColWidth(i) = 2000 Next End With End Sub Public Function clear() Dim i For i = 0 To 14 Text1(i) = "" Next grd_tra.clear Opt_Male(0).Value = False Opt_Female(0).Value = False Opt_Male(1).Value = False Opt_Female(1).Value = False End Function

Page | 57

RTO MANAGEMENTCoding for Applicant Form Private Sub cmd_clear_Click() clear grd_app.clear End Sub Private Sub cmd_del_Click() On Error GoTo Errhand Dim j SQL = "select * from application where DL_No =" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) If Not (Rs.BOF And Rs.EOF) Then j = MsgBox("Are you want to delete the Record", 36, "RTO_Management") If j = 6 Then Rs.Delete Else MsgBox "The Record is Doesnt exist" End If Set Rs = Nothing End If Errhand: If Err 0 Then MsgBox "Records not found", 64, "RTO_Management" End If End Sub Private Sub cmd_exit_Click() Me.Hide End Sub

Private Sub cmd_mod_Click() On Error GoTo Errhand SQL = "select * from application where DL_No=" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) With Rs If Not (.BOF And .EOF) Then .Edit !DL_NO = Text1(0) !A_Name = Text1(1) !A_FName = Text1(2) !A_Rel = Text1(3) !DOB = DTPicker1(0) !A_Qua = Text1(4) !A_Add = Text1(5) !A_Pin = Text1(6) !A_Iden = Text1(7) !A_Bg = Text1(8) Page | 58

RTO MANAGEMENT!A_Ph = Text1(9) !A_Em = Text1(10) If Opt_Male.Value = True Then !GENDER = "Male" ElseIf Opt_Female.Value = True Then !GENDER = "Female" End If .Update MsgBox "The record has been saved" End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Record not found", 64, "RTO_Management" End If End Sub Private Sub cmd_query_Click() On Error GoTo Errhand grd_app.Visible = False Dim res res = InputBox("Enter the DL_No", "RTO_Management") If res = "" Then Exit Sub End If SQL = "Select * from application where DL_No =" & Val(res) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then .MoveLast Text1(0) = !DL_NO Text1(1) = !A_Name Text1(2) = !A_FName Text1(3) = !A_Rel DTPicker1(0) = !DOB Text1(4) = !A_Qua Text1(5) = !A_Add Text1(6) = !A_Pin Text1(7) = !A_Iden Text1(8) = !A_Bg Text1(10) = !A_Em If !GENDER = "Male" Then Opt_Male.Value = True Else Opt_Female.Value = True End If Else MsgBox "there are no record", 64, "RTO_Management" Page | 59

RTO MANAGEMENTEnd If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If End Sub Private Sub cmd_save_Click() On Error GoTo Errhand Set Rs = Db.OpenRecordset("select * from application where DL_NO=" & Text1(0).Text, dbOpenDynaset, , 2) With Rs If .RecordCount = 0 Then .AddNew !DL_NO = Text1(0) !A_Name = Text1(1) !A_FName = Text1(2) !A_Rel = Text1(3) !DOB = DTPicker1(0) !A_Qua = Text1(4) !A_Add = Text1(5) !A_Pin = Text1(6) !A_Iden = Text1(7) !A_Bg = Text1(8) !A_Em = Text1(10) If Opt_Male.Visible = True Then !GENDER = "Male" ElseIf Opt_Female.Visible = True Then !GENDER = "Female" End If .Update MsgBox "The Record is Saved", 64 Else MsgBox "It is a dublicate DL Number" Text1(0).Text = "" Text1(0).SetFocus End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Verify the entered values", 64, "RTO_Management" End If End Sub

Page | 60

RTO MANAGEMENTPrivate Sub cmd_view_Click() On Error GoTo Errhand grd_app.Visible = True grd_app.clear grd_format SQL = "select * from application order by DL_No" Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) If Not (Rs.BOF And Rs.EOF) Then grd_app.Row = 1 With Rs Do Until .EOF grd_app.AddItem !DL_NO & vbTab & !A_Name & vbTab & !A_FName & vbTab & !A_Bg & vbTab & !A_Qua & vbTab & !A_Add, grd_app.Row grd_app.Row = grd_app.Row + 1 .MoveNext Loop End With Else MsgBox "No current record to display", 64, "RTO_Management" End If Set Rs = Nothing Text1(0).SetFocus Errhand: If Err 0 Then MsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If End Sub Private Sub Form_Load() DBEngine.DefaultType = dbUseODBC Set Db = OpenDatabase("rto", False, False, "odbc;uid=rto;pwd=rto;dsn=rto") End Sub Private Sub grd_app_Click() Dim ans As String With grd_app .Col = 0 ans = .Text End With SQL = "Select * from application where DL_No=" & Val(ans) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then Text1(0) = !DL_NO Text1(1) = !A_Name Text1(2) = !A_FName Text1(3) = !A_Rel DTPicker1(0) = !DOB Page | 61

RTO MANAGEMENTText1(4) = !A_Qua Text1(5) = !A_Add Text1(6) = !A_Pin Text1(7) = !A_Iden Text1(8) = !A_Bg Text1(10) = !A_Em If !GENDER = "Male" Then Opt_Male.Value = True Else Opt_Female.Value = True End If Else MsgBox "No Such Current Record", 64 End If End With Set Rs = Nothing Text1(0).SetFocus End Sub Private Sub Text1_GotFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 txt_gf Text1(Index) End Select End Sub Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer) Select Case Index Case 1, 2, 3, 4, 7, 8 char_key Text1(Index), KeyAscii Case 0, 6, 9 int_key Text1(Index), KeyAscii End Select End Sub Private Sub Text1_LostFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 txt_lf Text1(Index) End Select End Sub

Public Sub grd_format() Dim ans As String With grd_app .Cols = 6 Page | 62

RTO MANAGEMENT.Rows = 10 .TextMatrix(0, 0) = "DL_No" .TextMatrix(0, 1) = "Name" .TextMatrix(0, 2) = "Father Name" .TextMatrix(0, 3) = "Blood Group" .TextMatrix(0, 4) = "Qualification" .TextMatrix(0, 5) = "Address" For i = 0 To 5 .FixedAlignment(i) = 4 .ColWidth(i) = 2000 Next End With End Sub Public Function clear() Dim i For i = 0 To 10 Text1(i) = "" Next i DTPicker1(0).Value = False Opt_Male.Value = False Opt_Female.Value = False End Function Coding for Inpatient Registration Private Sub Command1_Click() Adodc2.Recordset.AddNew Command1.Enabled = False Text1.Text = " " Text1.Enabled = True Text1.SetFocus End Sub Private Sub Command2_Click() Dim a a = MsgBox("Do you wish to save the record", vbQuestion + vbYesNo, "Save..") If a = vbYes Then Adodc2.Recordset.Update MsgBox ("Record is saved ") DataGrid2.Columns(2) = "Not available" Command1.Enabled = True Command2.Enabled = False ElseIf a = vbNo Then Adodc2.Recordset.MoveLast Adodc2.Recordset.Delete Adodc2.Recordset.MoveFirst MsgBox ("Record is not saved ") Command1.Enabled = True Page | 63

RTO MANAGEMENTCommand2.Enabled = False End If End Sub Private Sub Command3_Click() Dim a a = MsgBox("Do you wish to exit", vbQuestion + vbYesNo, "EXIT..") If a = vbYes Then Ip_new.Hide hcs.Show ElseIf a = vbNo Then Screen.ActiveForm.SetFocus End If End Sub Private Sub Command4_Click() DataGrid2.Visible = True DataGrid3.Visible = False DataGrid2.SetFocus Command4.Visible = False End Sub Private Sub Command5_Click() DataGrid2.Visible = False DataGrid3.Visible = True DataGrid3.SetFocus Command5.Visible = False End Sub Private Sub DataGrid1_Click() Text4.Text = DataGrid1.Columns(1) Text7.Text = DataGrid1.Columns(4) Text2.Text = DataGrid1.Columns(0) Text3.Text = DataGrid1.Columns(2) Text6.Text = DataGrid1.Columns(3) Text5.Text = DataGrid1.Columns(5) Command5.Visible = False DataGrid1.Visible = False Text1.Enabled = False Command4.Visible = True Command4.SetFocus End Sub Private Sub DataGrid2_Click() If (DataGrid2.Columns(2) = "Not available") Then MsgBox ("Bed is not available..,Select available bed") ElseIf (DataGrid2.Columns(2) = "Available") Then Text8.Text = DataGrid2.Columns(0) Text9.Text = DataGrid2.Columns(1) Command5.Visible = True Page | 64

RTO MANAGEMENTCommand5.SetFocus DataGrid2.Visible = False End If End Sub Private Sub DataGrid3_Click() Text10.Text = DataGrid3.Columns(1) Command2.Enabled = True Command2.SetFocus DataGrid3.Visible = False End Sub Private Sub Form_Activate() Command1.SetFocus End Sub Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer) Dim a If KeyCode = 13 Then a = DataGrid1.Columns(0) Adodc1.Recordset.MoveFirst Adodc1.Recordset.Find ("opregno=" + Text1.Text) If Adodc1.Recordset.EOF Then MsgBox ("Enter the valid Regno") Adodc1.Recordset.MoveFirst Text1.Text = "" Else DataGrid1.Visible = True End If End If End Sub Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Then Exit Sub End If If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 End If End Sub Private Sub Text10_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = 13 Then Command2.SetFocus End If End Sub Private Sub Timer1_Timer() time1.Caption = Time End Sub Page | 65

RTO MANAGEMENTCoding for Officer Details Private Sub cmd_clr_Click() clear End Sub Private Sub cmd_del_Click() On Error GoTo Errhand Dim j SQL = "select * from Officer where O_No =" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) If Not (Rs.BOF And Rs.EOF) Then j = MsgBox("Are you want to delete the Record", 36, "RTO_Management") If j = 6 Then Rs.Delete Else MsgBox "The Record is Doesnt exist" End If Set Rs = Nothing End If Errhand: If Err 0 Then MsgBox "Records not found", 64, "RTO_Management" End If End Sub Private Sub cmd_exit_Click() Unload Me End Sub Private Sub cmd_mod_Click() On Error GoTo Errhand SQL = "select * from Officer where O_No=" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) With Rs If Not (.BOF And .EOF) Then .Edit !O_No = Text1(0) !O_NAME = Text1(1) !O_Qua = Text1(2) !O_Add = Text1(3) !O_Pin = Text1(4) !O_Ph = Text1(5) .Update MsgBox "the record has been saved" End If End With Set Rs = Nothing Errhand: Page | 66

RTO MANAGEMENTIf Err 0 Then MsgBox "Record not found", 64, "RTO_Management" End If End Sub Private Sub cmd_qurey_Click() On Error GoTo Errhand grd_off.Visible = False Dim res res = InputBox("Enter the O_No", "RTO_Management") If res = "" Then Exit Sub End If SQL = "Select * from Officer where O_No =" & Val(res) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then .MoveLast Text1(0) = !O_No Text1(1) = !O_NAME Text1(2) = !O_Qua Text1(3) = !O_Add Text1(4) = !O_Pin Text1(5) = !O_Ph Else MsgBox "there are no record", 64, "RTO_Management" End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If End Sub Private Sub cmd_save_Click() On Error GoTo Errhand Set Rs = Db.OpenRecordset("select * from officer where O_No=" & Text1(0).Text, dbOpenDynaset, , 2) With Rs If .RecordCount = 0 Then .AddNew !O_No = Text1(0) !O_NAME = Text1(1) !O_Qua = Text1(2) !O_Add = Text1(3) !O_Pin = Text1(4) !O_Ph = Text1(5) .Update Page | 67

RTO MANAGEMENTMsgBox "The Record is Saved", 64 Else MsgBox "It is a dublicate Officer Number" Text1(0).Text = "" Text1(0).SetFocus End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Verify the entered values", 64, "RTO_Management" End If End Sub Private Sub cmd_view_Click() On Error GoTo Errhand grd_off.Visible = True grd_off.clear grd_format SQL = "select * from Officer order by O_No" Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) If Not (Rs.BOF And Rs.EOF) Then grd_off.Row = 1 With Rs Do Until .EOF grd_off.AddItem !O_No & vbTab & !O_NAME & vbTab & !O_Qua & vbTab & !O_Add & vbTab & !O_Pin & vbTab & !O_Ph, grd_off.Row grd_off.Row = grd_off.Row + 1 .MoveNext Loop End With Else MsgBox "No current record to display", 64, "RTO_Management" End If Set Rs = Nothing grd_off.SetFocus Errhand: If Err 0 Then MsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If End Sub Private Sub Form_Load() DBEngine.DefaultType = dbUseODBC Set Db = OpenDatabase("rto", False, False, "odbc;uid=rto;pwd=rto;dsn=rto") End Sub Public Sub clear() For i = 0 To 5 Page | 68

RTO MANAGEMENTText1(i) = "" grd_off.clear Next End Sub Private Sub grd_off_Click() Dim ans As String With grd_off .Col = 0 ans = .Text End With SQL = "Select * from Officer where O_No=" & Val(ans) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then Text1(0) = !O_No Text1(1) = !O_NAME Text1(2) = !O_Qua Text1(3) = !O_Add Text1(4) = !O_Pin Text1(5) = !O_Ph Else MsgBox "No Such Current Record", 64 End If End With Set Rs = Nothing Text1(0).SetFocus End Sub Private Sub Text1_GotFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 txt_gf Text1(Index) End Select End Sub Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer) Select Case Index Case 1, 2 char_key Text1(Index), KeyAscii Case 0, 4, 5 int_key Text1(Index), KeyAscii End Select End Sub Private Sub Text1_LostFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 txt_lf Text1(Index) Page | 69

RTO MANAGEMENTEnd Select End Sub Public Sub grd_format() With grd_off .Cols = 6 .Rows = 10 .TextMatrix(0, 0) = "Officer Id" .TextMatrix(0, 1) = "Officer Name" .TextMatrix(0, 2) = "Qualification" .TextMatrix(0, 3) = "Address" .TextMatrix(0, 4) = "Pin_code" .TextMatrix(0, 5) = "Ph_No" For i = 0 To 5 .FixedAlignment(i) = 4 .ColWidth(i) = 1900 Next End With End Sub

Page | 70

RTO MANAGEMENTCoding for Renewal Private Sub cmd_clear_Click() clear End Sub Private Sub cmd_delete_Click() On Error GoTo Errhand Dim j SQL = "select * from Renewal where DL_No =" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) If Not (Rs.BOF And Rs.EOF) Then j = MsgBox("Are you want to delete the Record", 36, "RTO_Management") If j = 6 Then Rs.Delete Else MsgBox "The Record is Doesnt exist" End If Set Rs = Nothing End If Errhand: If Err 0 Then MsgBox "Records not found", 64, "RTO_Management" End If End Sub Private Sub cmd_exit_Click() Unload Me End Sub Private Sub cmd_modify_Click() On Error GoTo Errhand SQL = "select * from Renewal where DL_No=" & Val(Text1(0)) Set Rs = Db.OpenRecordset(SQL, dbOpenDynaset, , 2) With Rs If Not (.BOF And .EOF) Then .Edit !DL_NO = Text1(0) !Name = Text1(1) !Ren_No = Text1(2) !DOR = DTPicker1(0) !DOE = DTPicker1(1) !O_NAME = Text1(3) !O_ID = Text1(4) !R_No = Text1(5) !AMT = Text1(6) .Update MsgBox "the record has been saved" End If Page | 71

RTO MANAGEMENTEnd With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Record not found", 64, "RTO_Management" End If End Sub Private Sub cmd_query_Click() On Error GoTo Errhand grd_ren.Visible = False Dim res res = InputBox("Enter the DL_No", "RTO_Management") If res = "" Then Exit Sub End If SQL = "Select * from Renewal where DL_No =" & Val(res) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then .MoveLast Text1(0) = !DL_NO Text1(1) = !Name Text1(2) = !Ren_No DTPicker1(0) = !DOR DTPicker1(1) = !DOE Text1(3) = !O_NAME Text1(4) = !O_ID Text1(5) = !R_No Text1(6) = !AMT Else MsgBox "there are no record", 64, "RTO_Management" End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If End Sub Private Sub cmd_save_Click() On Error GoTo Errhand Set Rs = Db.OpenRecordset("select * from renewal where DL_NO=" & Text1(0).Text, dbOpenDynaset, , 2) With Rs If .RecordCount = 0 Then .AddNew !DL_NO = Text1(0) Page | 72

RTO MANAGEMENT!Name = Text1(1) !Ren_No = Text1(2) !DOR = DTPicker1(0) !DOE = DTPicker1(1) !O_NAME = Text1(3) !O_ID = Text1(4) !R_No = Text1(5) !AMT = Text1(6) .Update MsgBox "The Record is Saved", 64 Else MsgBox "It is a dublicate DL Number" Text1(0).Text = "" Text1(0).SetFocus End If End With Set Rs = Nothing Errhand: If Err 0 Then MsgBox "Verify the entered values", 64, "RTO_Management" End If End Sub Private Sub cmd_view_Click() On Error GoTo Errhand grd_ren.Visible = True grd_ren.clear grd_format SQL = "select * from Renewal order by DL_No" Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) If Not (Rs.BOF And Rs.EOF) Then grd_ren.Row = 1 With Rs Do Until .EOF grd_ren.AddItem !DL_NO & vbTab & !Name & vbTab & !Ren_No & vbTab & !DOR & vbTab & !DOE & vbTab & !O_ID, grd_ren.Row grd_ren.Row = grd_ren.Row + 1 .MoveNext Loop End With Else MsgBox "No current record to display", 64, "RTO_Management" End If Set Rs = Nothing grd_ren.SetFocus Errhand: If Err 0 Then MsgBox "Error No." & Err & "error:" & Error$, vbOKOnly + vbInformation, "RTO_Management" End If Page | 73

RTO MANAGEMENTEnd Sub Private Sub Form_Load() DBEngine.DefaultType = dbUseODBC Set Db = OpenDatabase("rto", False, False, "odbc;uid=rto;pwd=rto;dsn=rto") End Sub Private Sub grd_ren_Click() Dim ans As String With grd_ren .Col = 0 ans = .Text End With SQL = "Select * from Renewal where DL_No=" & Val(ans) Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot) With Rs If Not (Rs.BOF And Rs.EOF) Then Text1(0) = !DL_NO Text1(1) = !Name Text1(2) = !Ren_No DTPicker1(0) = !DOR DTPicker1(1) = !DOE Text1(3) = !O_NAME Text1(4) = !O_ID Text1(5) = !R_No Text1(6) = !AMT Else MsgBox "No Such Current Record", 64 End If End With Set Rs = Nothing Text1(0).SetFocus End Sub Private Sub Text1_GotFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6 txt_gf Text1(Index) End Select End Sub Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer) Select Case Index Case 1, 3 char_key Text1(Index), KeyAscii Case 0, 2, 4, 5, 6 int_key Text1(Index), KeyAscii End Select End Sub Page | 74

RTO MANAGEMENTPrivate Sub Text1_LostFocus(Index As Integer) Select Case Index Case 0, 1, 2, 3, 4, 5, 6 txt_lf Text1(Index) End Select End Sub Public Sub clear() For i = 0 To 6 Text1(i) = "" grd_ren.clear Next End Sub Public Sub grd_format() With grd_ren .Cols = 6 .Rows = 10 .TextMatrix(0, 0) = "DL_No" .TextMatrix(0, 1) = "Name" .TextMatrix(0, 2) = "Renewed No" .TextMatrix(0, 3) = "Date of renewal" .TextMatrix(0, 4) = "date of expire" .TextMatrix(0, 5) = "O_Id" For i = 0 To 5 .FixedAlignment(i) = 4 .ColWidth(i) = 1800 NextEnd With End Sub

Page | 75

RTO MANAGEMENT

ConclusionWe would like to admit that there was a lot of effort involved in developing the software/report ready. The completion time for the report was a long as that of the program. During the course is not a multi user, but it can backup N number of entries in the database. The main principles of a database are to add, delete and modify a record. We thank every one who helped and guided in developing software. We are very much obliged to our parents and blessings of god and our beloved lecturers.

Page | 76

RTO MANAGEMENT

BibliographyThe following are the books that have been referred for the successful completion of project work:

Title Introduction system analysis & design. Complete reference to oracle Oracle 8 beginners guide Learn vb in 21 days Visual basics

Author- I. T. Hawryszkiewycz. - Edward Yourdon - Michael abbey - pankaj jalote - computer point Study material.

Microsoft commerce solution. - Microsoft press

Page | 77


Recommended