Você está na página 1de 81

1.

INTRODUCTION ABSTRACT:
Unemployment is the problem of a developing country like INDIA. This is due to lack of

proper approach between employee and employer Consultant acts as a middleman between them. He/She collects the data from both the parties and tries to fulfill their needs by asking a perfect match of either requirements(that of employee and employer). Both employee and employer can approach consultant and give their data. Employee database is personal database. Employer database is client database. In this mini project CONSULTANCY, the different forms are: Candidate detail Candidate qualification Client details Clients requirements Personal qualification details Selection process

PROBLEM DEFINITION
The Project mainly deals with, associate requesting the Unemployed and also the clients requirements, storing information about the status of the qualifications update the clients available in the customers and to related tables for the selection of

the persons that can be fit into the job by the consultants to their clients. By using such a system, the clients task of taking a decision for the acceptance or denial of the requests placed by the customers is reduced significantly. Instead of searching the manual interviews and selecting the people.

2. SYSTEM ENVIRONMENT HARDWARE ENVIRONMENT: HARDWARE:


CPU PROCESSOR RAM HARDDISK MONITOR KEYBOARD KEYBOARD MOUSE FDD : LASER MOUSE : 1.44MB : 128MB : 2.1 GB : HCM780M : MULTIMEDIA : PENTIUM 1V

SOFTWARE ENVIRONMENT: SOFTWARE:


OPERATING SYSTEM : WINDOWS SERVER 2003 FRONTEND BACKEND REPORTS : VISUAL BASIC 6.0 : ORACLE 8i : DATA REPORTS

Description About The Software:Visual Basic was developed forms the BASIC programming language. In 1970s Microsoft got its start

by developing ROM based interpreted Basic for the early microprocessor QuickBasic based computer. In Basic 1982, and Microsoft revolutionized

legitimized as a serious development language for MSDOS environment. Later on, Microsoft Corporation created the enhanced version of BASIC called Visual Basic for Windows.

Microsoft Visual Basic 6.0


The working of Windows concepts: windows, events involves three key The

and

messages.

Microsoft Windows operating system manages all of these many windows by assigning each one a unique id number (window handle or hWnd). The system continually monitors each of these windows for signs of activity or events. Events can occur through user actions such as a mouse click or a key press, through programmatic control, or even as a result of another window's actions. Each time an event occurs, it causes a message to be sent to the operating system. The system processes the message and broadcasts it to the other windows. Each window can then take the appropriate action based on its own instructions for dealing with that particular message. As you might imagine, dealing with all of the possible combinations of windows, events and messages could be mind-

boggling. Fortunately, Visual Basic insulates you from having to deal with all of the low-level message handling. Many of the messages are handled automatically by Visual Basic; others are exposed as Event procedures for your convenience. This allows you to quickly create powerful applications without having to deal with unnecessary details.

Understanding the Event-Driven Model


In traditional or "procedural" applications, the application itself controls which portions of code execute and in what sequence. Execution starts with the first line of code and follows a predefined path through the application, calling procedures as needed. In an event-driven application, the code doesn't follow a predetermined path it executes different code sections in response to events. Events can be triggered by the user's actions, by messages from the system or other itself. applications, The or even of from the application sequence these events

determines the sequence in which the code executes, thus the path through the application's code differs each time the program runs.

Because you can't predict the sequence of events, your code must make certain assumptions about the "state of the world" when it executes. When you make assumptions (for example, that an entry field must contain a value before running a procedure to process that value), you should structure your application in such a way as to make sure that the assumption will always be valid. during execution. Your code can also trigger events

Interactive Development
The traditional application development process can be broken into three distinct steps: writing, compiling, and testing code. Unlike traditional languages, Visual Basic uses an interactive approach to development, blurring the distinction between the three steps. With most languages, if you make a mistake in writing your code, the error is caught by the compiler when you start to compile your application. You must then find and fix the error and begin the compile cycle again, repeating the process for each error found. Visual Basic interprets your code as you enter it, catching and highlighting most syntax or spelling errors on the fly. It's almost like having an expert watching over your shoulder as you enter your code.

In addition to catching errors on the fly, Visual Basic also partially compiles the code as it is entered. When you are ready to run and test your application, there is only a brief delay to finish compiling. If the compiler finds an error, it is highlighted in your code. You can fix the error and continue compiling without having to start over. Because of the interactive nature of Visual Basic, you'll find yourself running your application frequently as you develop it. This way you can test the effects of your code as you work rather than waiting to compile later.

Environment Options
The Visual Basic integrated development environment (IDE) consists of the following elements.

Menu Bar
Displays the commands you use to work with Visual Basic. Besides the standard File, Edit, View, Window, and Help menus, menus are provided to access functions specific to programming such as Project, Format, or Debug.

Context Menus
Contain shortcuts to frequently performed actions. To open a context menu, click the right mouse button

on the object you're using. The specific list of shortcuts available from context menus depends on the part of the environment where you click the right mouse button. For example, the context menu displayed when you right click on the Toolbox lets you display the Components dialog box, hide the Toolbox, dock or undock the Toolbox, or add a custom tab to the Toolbox.

Toolbars
Provide quick access to commonly used commands in the programming environment. You click a button on the toolbar once to carry out the action represented by that button. By default, the Standard toolbar is displayed when you start Visual Basic. Additional toolbars for editing, form design, and debugging can be toggled on or off from the Toolbars command on the View menu. Toolbars can be docked beneath the menu bar or can "float" if you select the vertical bar on the left edge and drag it away from the menu bar.

Toolbox
Provides a set of tools that you use at design time to place controls on a form. In addition to the default toolbox layout, you can create your own custom layouts

by selecting Add Tab from the context menu and adding controls to the resulting tab.

Project Explorer Window


Lists the forms and modules in your current project. A project is the collection of files you use to build an application.

Properties Window
Lists the property settings for the selected form or control. A property is a characteristic of an object, such as size, caption, or color.

Object Browser
Lists objects available for use in your project and gives you a quick way to navigate through your code. You can use the Object Browser to explore objects in Visual Basic and other applications, see what methods and properties are available for those objects, and paste code procedures into your application.

Form Designer
Serves as a window that you customize to design the interface of your application. You add controls, graphics, and pictures to a form to create the look you want. Each form in your application has its own form designer window.

Code Editor Window

Serves as an editor for entering application code. A separate code editor window is created for each form or code module in your application.

Form Layout Window


The Form Layout window allows you to position the forms in your application using a small graphical representation of the screen.

Immediate, Locals, and Watch Windows


These additional windows are provided for use in debugging your application. They are only available when you are running your application within the IDE. Visual Basic provides a great deal of flexibility, allowing you to configure the working environment to best suit your individual style. You can choose between a single or multiple document interface, and you can adjust the size and positioning of the various Integrated Development Environment (IDE) elements. Your layout will persist between sessions of Visual Basic.

SDI or MDI Interface


Two different styles are available for the Visual Basic IDE: single document interface (SDI) or multiple document interface (MDI). With the SDI option, all of the IDE windows are free to be moved anywhere on screen; as long as Visual Basic is the current application, they

will remain on top of any other applications. With the MDI option, all of the IDE windows are contained within a single resizable parent window.

VB Coding
The first step to creating an application with Visual Basic is to create the interface, the visual part of the application with which the user will interact. Forms and controls are the basic building blocks used to create the interface; they are the objects that you will work with to build your application. Forms are objects that expose properties which define their appearance, methods which define their behavior, and events which define their interaction with the user. By setting the properties of the form and writing Visual Basic code to respond to its events, you customize the object to meet the requirements of your application. Controls are objects that are contained within form objects. Each type of control has its own set of properties, methods and events that make it suitable for a particular purpose.

4.1 Personal Oracle 8 for Windows 9x

The Oracle server is an object-relational database management system that provides an open, comprehensive, and integrated approach to information management. An Oracle server consists of an Oracle database and an Oracle server instance. Structured Query Language (SQL) SQL is the programming language that defines and manipulates the database. SQL databases are relational databases; this means simply that data is stored in a set of simple relations. A database can have one or more tables. And each table has columns and rows. A table that has an employee database, for example, might have a column called employee number and each row in that column would be an employee's employee number. SQL was invented and developed by IBM in early 1970's. SQL stands for Structured Query Language. SQL can also be called as Sequential Query language. IBM was able to demonstrate SQL, which could be used to control relational databases. The natural language for Oracle is 'ANSI SQL' (ANSI-- American National Standard Intercode). You can define and manipulate data in a table with SQL commands. You use data definition language (DDL) commands to set up the data. DDL commands include commands for creating and altering databases and tables. You can update, delete, or retrieve data in a table with data manipulation commands (DML). DML commands include commands to alter and fetch data. The most common SQL command is the SELECT

command, which allows you to retrieve data from the database. The transaction control statements (TCL) manage change by DML statements. The session control statements used to control the properties of current session enabling and disabling roles and changing. System control statements change properties of Oracle Instance. Embedded SQL incorporate DDL, DML and TCS in Programming Language

In addition to SQL commands, the Oracle server has a procedural language called PL/SQL. PL/SQL enables the programmer to program SQL statements. It allows you to control the flow of a SQL program, to use variables, and to write error-handling procedures. Database Structure An Oracle database has both a physical and a logical structure. Because the physical and logical server structures are separate, the physical storage of data can be managed without affecting the access to logical storage structures. Physical Database Structure The operating system files that constitute the database determine an Oracle databases physical structure. Each Oracle database is made of three types of files: one or more data files, two or more redo log files, and one or

more control files. The files of an Oracle database provide the actual physical storage for database information. Logical Database Structure An Oracle database's logical structure is determined by one or more tablespaces. A tablespace is a logical area of storage. The database's schema objects A schema is a collection of objects. Schema objects are the logical structures that directly refer to the database's data. Schema objects include such structures links. The logical storage structures, including as tables, views, sequences, stored procedures, synonyms, indexes, clusters, and database

tablespaces, segments, and extents, dictate how the physical space of a database is used. The schema objects and the relationships among them form the relational design of a database. Tables A table is the basic unit of data storage in an Oracle database. The tables of a database hold all of the user-accessible data.

Table data is stored in rows and columns. Every table is defined with a table name and set of columns. Each column is given a column name, a data type (such as CHAR, DATE, or NUMBER), and a width (which may be predetermined by the data type, as in DATE) or scale and precision (for the NUMBER data type only). Once a table is created, valid rows of data can be inserted into it. The table's rows can then be queried, deleted, or updated. Integrity Constraints An integrity constraint is a declarative way to define a business rule for a column of a table. An integrity constraint is a statement about a table's data that is always true:

If an integrity constraint is created for a table and some existing table data does not satisfy the constraint, the constraint cannot be enforced. After a constraint is defined, if any of the results of a DML statement violate the integrity constraint, the statement is rolled back and an error is returned. Integrity constraints are defined with a table and

are stored as part of the table's definition, centrally in the database's data dictionary, so that all database applications must adhere to the same set of rules. If a

rule changes, it need only be changed once at the database application. The following integrity constraints are supported by Oracle: level and not many times for each

NOT NULL Disallows nulls (empty entries) in a table's column. UNIQUE Disallows duplicate values in a column or set of

columns. PRIMARY Disallows duplicate values and nulls in a column or KEY set of columns. FOREIGN Requires each value in a column or set of columns KEY match a value in a related table's UNIQUE or PRIMARY KEY (FOREIGN KEY integrity constraints also define referential integrity actions that dictate what Oracle should do with dependent data if the CHECK data it references is altered). Disallows values that do not satisfy the logical expression of the constraint.

Keys The term "key" is used in the definitions of several types of integrity constraints. A key is the column or set Primary key The column or set of columns included in the definition of a table's PRIMARY KEY constraint. A primary key's values uniquely identify the rows in a table. Only one primary key may be defined per table. Unique key The column or set of columns included in the Foreign definition of a UNIQUE constraint. The column or set of columns included in the

key definition of a referential integrity constraint. Referenced The unique key or primary key of the same or key different table that is referenced by a foreign key.

of columns included in the definition of certain types of integrity constraints. Keys describe the relationships between the different tables and columns of a relational database. The different types of keys Program Units The term "program unit" is used to refer to stored procedures, functions, packages, triggers, and anonymous blocks.

A procedure or function is a set of SQL and PL/SQL (Oracle's procedural language extension to SQL) statements grouped together as an executable unit to perform a specific task. Procedures and functions allow you to combine the ease and flexibility of SQL with the procedural functionality of a structured programming language. Using PL/SQL, such procedures and functions can be defined and stored in the database for continued use. Procedures and functions are identical, except that functions always return a single value to the caller, while procedures do not return a value to the caller. Packages provide a method of encapsulating and storing related procedures, functions, and other package constructs together as a unit in the database. While packages provide the database administrator or application developer organizational benefits, they also offer increased functionality and database performance.

An Oracle Instance Every time a database is started, a system global area (SGA) is allocated and Oracle background processes are started. The system global area is an

area of memory used for database information shared by the database users. The combination of the background processes and memory buffers is called an Oracle instance. An Oracle instance has two types of processes: user processes and Oracle processes. A user process executes the code of an application program or an Oracle Tool. Oracle processes are server processes that perform work for the user processes and background processes that perform maintenance work for the Oracle server.

3. SYSTEM ANALYSIS
EXISTING SYSTEM: This package CONSULTANCY SYSTEM is developed using VB 6.0 as front-end and MS-Access as back-end. This system provides customized Screen and enhanced menu utilities. It is designed in such a way that it is friendly with the user. This system has computerized the operations done in a JOB CONSULTANCY. It maintains various files by doing additions & modifications to them. It has a selection process where persons are selected according to the client requirements. This is done making use of personal details, personal qualification, client details and client requirements. This system provides information to both client and customers according to their requirements and qualifications. By providing this service

it attains some commission. Thus the system provides effective, efficient, cost saving and time saving operations in a JOB CONSULTANCY. SYSTEM DESCRIPTION: The Project mainly deals with, consultants requesting for jobs and the employers requesting for potential employee. Information about the jobs and the resumes are available. To get information about the jobs and the resumes we have to use the features available. Also users are given various selections to select the types of languages and the databases and operating systems that they are accomplished in the previous programming such a system, the users work made easy and also the clients can select the required people easily from the consultants.

PROPOSED SYSTEM
This system has computerized the operations done in a JOB CONSULTANCY. It maintains various files by doing additions & modifications to them. It has a selection process where persons are selected according to the client requirements. This is done making use of personal details, personal qualification, client details and client requirements. This system provides information to both client and customers according to their requirements and qualifications. By providing this service it attains some commission. Thus the system provides effective, efficient, cost saving and time saving operations in a JOB CONSULTANCY. This view of the consultancy makes both the unemployed with the qualification and the employer that who gives the jobs as the clients to the system where he can get the qualified people by choosing from the applicants and making the job easily from the previous process like making advertisements and the interviewing and then the selection process are made

from the people. This process is overcomed and then made it as computerized with the help of the consultants we can make the selection process to the clients by getting the commission from the clients and making the process easy to the customer and the clients in the process.

4. SYSTEM DESIGN

MAIN MENU

REGISTRATION

PERSONAL QUALIFICATIO N

SELECTION

ENQUIRES

REPORTS

PERSONAL DETAILS

PERSONAL QUALIFICATION

CLEINTS DETAILS

CLIENTS REQUIREMENTS

PERSONAL

CLIENT

SELECTION

PERSONAL

QUALIFICATION

CLIENTS

REQUIREMENTS

SELECTION

CLIENT Client dtails Requirement details

MEMBER

Interview & selection details CONSULTANC Y SERVICE Selection details

Personal qualification MEMBER Registration details

CLIENT

MEMBER

MEMBER QUALIFIC ATION REGISTR -ATION MEMBE R PERSONAL

CLIENT

PERSONAL

CLIENT

SELECTI -ON

CLIENT

SELECTION

PERS_DB Reg_code Name Dob Address1

PERSQ_DB Reg_code Qual_code Qual_name Class

QUAL_DB Qual_code Qual_name Qual_status Grade

Address2 Address3 City State Zip Job_type Phone E-mail Work_status Emp_status Reg_date

Grade Qual_status Score Exp_details

INT_SEL CLIENT_DB CREQ Client_code Qual_code Qual_name Qual_status Exp_details Client_code Client_name Client_type Commission Address1 Address2 Address3 Ent_date Reg_code Client_code Seldate Commission Id

5. SYSTEM IMPLEMENTATION: FORM DESCRIPTION:


PERSONAL DATABASE: In this we collect the personal information about the people who require a job. Information in the sense his/her name , address, phone-no, email-id , date-of-birth, etc. In this form when we add the records and click save button it automatically shows the personal qualification form . In that ,

qualifications of that particular person are added. At the same time if a person is having more than one qualification we can even enter those. QUALIFICATION DATA BASE: In this database each qualification is given a unique code. Qualifications are Classified according to the status (PG, UG, BE, DIPLOMA,MBA,MCA,MSC,MAB-TECH). Each qualification status is given a unique grade. CLIENT DATA BASE: In this we collect the details of the companies like the name of the company, location , address for communication and store it in the database. This is the major database of the CONSULTANCY project. CLIENTS REQUIREMENTS: This contains the data, which tells us about the requirements of the clients in terms of qualification. In this we can store the details of requirements of clients. When we run the form clients requirements are displayed.

PERSONAL QUALIFICATION: It contains the details of the qualifications of the people who require a job. It stores all the details in a format that shows the qualificationcode, qualification-name, experience, etc which helps to discriminate the people into different groups with respect to their field (technical, administration, etc). SELECTION:

Matching between a client and a person who requires a job is done by taking the clients requires a job is done by tacking the clients requirement, comparing with personal qualifications and giving the personal details who are having that particular qualifications. In this when we select the client code the details of that particular client i.e., the requirements are displayed on the grid . Then when we click the retrieve button the persons who are having the qualification that matches the clients requirements are displayed in another grid.

PERSONS
FIELD NAME Reg_code Name DOB Address1 Address2 Address3 City State Zip Job_type Phone Email Work_status Emp_status

DETAILS

MASTER
WIDTH 10 30 8 20 20 20 15 10 7 20 10 10 10 10

FIELD TYPE Character Character Date / time Character Character Character Character Character Integer Character Integer Character Character Character

PERSONAL QUALIFICATION MASTER

FIELD NAME Reg_code Qual_code Qual_code Class Grade Qual_status Score Exp_details

FIELD TYPE Character Character Character Character Character Character Integer Integer

WIDTH 10 10 30 15 5 10 5 5

CLIENT DETAILS
FIELD NAME Client_code Client_name Client_type Commission Address1 Address2 Address3 FIELD TYPE Character Character Character Integer Character Character Character WIDTH 50 50 50 4 50 50 50

CLIENT REQUIREMENTS MASTER

FIELD NAME Client_code Qual_code Qual_name Qual_status Exp_details

FIELD TYPE Character Character Character Character Integer

WIDTH 10 10 30 20 4

SELECTION
FIELD NAME Reg_code Client_code Seldate Id

MASTER
FIELD TYPE Character Character Date/time Integer WIDTH 10 10 8 4

QUALIFICATION

MASTER

FIELD NAME Qual_code Qual_name Qual_status Grade

FIELD TYPE Character Character Character Character

WIDTH 10 30 20 5

INFORMATION

REQUIREMENT (MODULE)

TABLE

S.NO
1 2 3 4 5 6 7 8 9 10

MODULE NAME DESCRIPTION


Pers Persq Client Creq Quali Sele Seleenq Persenq Clenq MDI form Personal details Personal qualification Clients details Client requirement details Qualification details Selection process Selection enquiry Enquiry of personal details Client details enquiry Main menu

DATABASE
Pers_db Persq_db Client_db Creq Qual_db Int_sel Int-sel Pers_db Client_db -------

INFORMATION REQUIREMENT TABLE


(DATABASE) S.NO 1 2 3 4 5 6 TABLE Pers_db Persq_db Qual_db Creq Client_db Int_sel DESCRIPTION Personal details Personal qualification Clients details Client requirement details Client details Selection details PRIMARY KEY Reg_code Reg-code Client_db Client_code Client_code Reg_code

CODING:
Private Sub cldetails_Click() clientdetails.Show End Sub Private Sub clie_Click()

DataReport3.Show End Sub Private Sub clreq_Click() clientrequirements.Show End Sub Private Sub clrequirements_Click() clientrequirements.Show End Sub Private Sub creq_Click() DataReport4.Show End Sub Private Sub EXIT_Click() Unload Me End End Sub Private Sub per_Click() DataReport1.Show End Sub Private Sub perde_Click() persdetails.Show End Sub Private Sub perqua_Click() persqualification.Show End Sub Private Sub perqualification_Click() persqualification.Show End Sub Private Sub qua_Click() DataReport2.Show End Sub

Private Sub sel_Click() Form2.Show End Sub Private Sub selec_Click() DataReport5.Show End Sub

Dim db As Database Dim rs, rs1 As Recordset Dim i, k As Integer Dim str As String Private Sub ADD_Click() If rs.EOF Then MsgBox "NO RECORDS ARE PRESENTLY AVILABLE" i=0 Else

rs.MoveLast i = Val(Mid$(rs.Fields("client_code"), 3, 6)) End If str = "CL" i=i+1 If (i >= 0) And (i <= 9) Then str = str & "000" & i Else If (i >= 10) And (i <= 99) Then str = str & "00" & i Else If (i >= 100) And (i <= 999) Then str = str & "0" & i End If End If End If CLE Text1.Text = str Text1.Enabled = False Text2.SetFocus SAVE.Enabled = True del.Visible = False add.Visible = False MODIFY.Visible = False k=2 End Sub Private Sub CLEAR_Click() If (add.Visible = True) Then Text1.Text = "" End If CLE Text2.SetFocus End Sub

Private Sub del_Click() Dim S S = InputBox("client code", "client_code")

If rs.RecordCount <> 0 Then rs.MoveFirst Do While Not rs.EOF If (rs.Fields("client_code") = S) Then rs.Edit rs(1) = "" rs(2) = "" rs(3) = Null rs(4) = "" rs(5) = "" rs(6) = "" rs.Update rs1.MoveFirst Do While Not rs1.EOF If (rs1.Fields("client_code") = S) Then rs1.Edit rs1(1) = "" rs1(2) = "" rs1(3) = "" rs1(4) = Null rs1.Update Exit Do Else rs1.MoveNext End If Loop Exit Do Else rs.MoveNext End If Loop End If End Sub Private Sub EXIT_Click() Unload Me mainmenu.Show End Sub Private Sub Form_Load()

Set db = OpenDatabase("D:\CONSULT\consul.mdb") Set rs = db.OpenRecordset("clientdetails", dbOpenDynaset) Set rs1 = db.OpenRecordset("clirequirements", dbOpenDynaset) SAVE.Enabled = False End Sub Public Sub CLE() 'Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" Text7.Text = "" End Sub Private Sub modify_Click() Dim S S = InputBox("client code", "client code") rs.MoveFirst Do While Not rs.EOF If (rs.Fields("client_code") = S) Then Text1.Text = S Text2.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) Text5.Text = rs(4) Text6.Text = rs(5) Text7.Text = rs(6) SAVE.Enabled = True S=1 Exit Do Else rs.MoveNext End If Loop If (S <> 1) Then MsgBox "the given client not existed" Else k=1

End If End Sub Private Sub save_Click() If (k <> 1) Then If Text1.Text <> "" And Text2.Text <> "" And Text3.Text <> "" _ And Text4.Text <> "" And Text5.Text <> "" Then rs.AddNew rs.Fields("client_code") = Text1.Text rs.Fields("client_name") = Text2.Text rs.Fields("client_type") = Text3.Text rs.Fields("commission") = Text4.Text rs.Fields("add1") = Text5.Text rs.Fields("add2") = Text6.Text rs.Fields("add3") = Text7.Text rs.Update SAVE.Enabled = False ' delete.Visible = True clientrequirements.Text1.Text = Text1.Text clientrequirements.SAVE.Enabled = True clientrequirements.retrive.Visible = False clientrequirements.delete.Visible = False clientrequirements.Show Else MsgBox "U MUST ENTER ALL THE FIELDS" CLE End If Else rs.Edit rs.Fields("client_code") = Text1.Text rs.Fields("client_name") = Text2.Text rs.Fields("client_type") = Text3.Text rs.Fields("commission") = Text4.Text rs.Fields("add1") = Text5.Text rs.Fields("add2") = Text6.Text rs.Fields("add3") = Text7.Text rs.Update SAVE.Enabled = False CLE End If

End Sub Private Sub Text2_KeyPress(KeyAscii As Integer) If ((KeyAscii >= 33) And (KeyAscii <= 64)) Or ((KeyAscii >= 91) And (KeyAscii <= 96)) Or ((KeyAscii >= 123) And (KeyAscii <= 126)) Then KeyAscii = 0 End If End Sub Private Sub Text3_KeyPress(KeyAscii As Integer) If ((KeyAscii >= 32) And (KeyAscii <= 46)) Or ((KeyAscii >= 48) And (KeyAscii <= 64)) Or _ ((KeyAscii >= 91) And (KeyAscii <= 96)) Or ((KeyAscii >= 123) And (KeyAscii <= 126)) Then KeyAscii = 0 End If End Sub Private Sub Text4_KeyPress(KeyAscii As Integer) If ((KeyAscii >= 32) And (KeyAscii <= 35)) Or ((KeyAscii >= 37) And (KeyAscii <= 47)) Or _ ((KeyAscii >= 58) And (KeyAscii <= 126)) Then KeyAscii = 0 End If End Sub

Dim db As Database Dim rs As Recordset Dim message As String Dim dialogtype, k As Integer Dim title As String Dim response As Integer Private Sub ADD_Click() 'rs.AddNew Text1.Text = ""

Text2.Text = "" Text3.Text = "" SAVE.Enabled = True Text1.SetFocus End Sub Private Sub Combo1_Click() If Combo1.Text = "MTECH" Then Text2.Text = "QC001" Combo3.clear Combo3.AddItem "COMPUTERS" Combo3.AddItem "ELECTRONICS" Combo3.AddItem "MECHANICAL" Combo3.AddItem "CIVIL" Else If Combo1.Text = "MCA" Then Text2.Text = "QC002" Else If Combo1.Text = "BE" Then Text2.Text = "QC003" Combo3.clear Combo3.AddItem "COMPUTERS" Combo3.AddItem "ELECTRONICS" Combo3.AddItem "MECHANICAL" Combo3.AddItem "CIVIL" Else If Combo1.Text = "MBA" Or Combo1.Text = "MSC" Or Combo1.Text = "MA" Then Text2.Text = "QC005" Else If Combo1.Text = "MCOM" Then Text2.Text = "QC004" Else Text2.Text = "QC006" End If End If End If End If End If If (Combo1.Text = "MBA") Then

Combo3.clear Combo3.AddItem "MARKETING" Combo3.AddItem "SYSTEMS" Combo3.AddItem "H.R.D" Combo3.AddItem "FINANCE" End If If (Combo1.Text = "MSC") Or (Combo1.Text = "BSc") Then Combo3.clear Combo3.AddItem "COMPUTERS" Combo3.AddItem "MATHS" Combo3.AddItem "PHYSICS" Combo3.AddItem "CHEMISTRY" End If If (Combo1.Text = "MTECH") Or (Combo1.Text = "BE") Or (Combo1.Text = "MSC") _ Or (Combo1.Text = "BSc") Or (Combo1.Text = "MBA") Then Label7.Visible = True Combo3.Visible = True Else Label7.Visible = False Combo3.Visible = False End If Combo2.SetFocus Text2.Enabled = False End Sub Private Sub Combo1_LostFocus() If (Combo1.Text = "MCA") Then clireqskills.Show End If End Sub Private Sub Combo2_Click() Text3.SetFocus End Sub Private Sub Combo3_Click() Combo2.SetFocus End Sub

Private Sub Combo3_LostFocus() If (Combo3.Text = "COMPUTERS") Then clireqskills.Show End If End Sub Private Sub DELETE_Click() rs.delete End Sub Private Sub EXIT_Click() Unload Me mainmenu.Show End Sub Private Sub Form_Load() Set db = OpenDatabase("D:\CONSULT\consul.mdb") Set rs = db.OpenRecordset("clirequirements", dbOpenDynaset) End Sub Private Sub retrive_Click() Dim S delete.Enabled = False S = InputBox("client code", "client_code") If (rs.RecordCount <> 0) Then rs.MoveFirst Do While Not rs.EOF If (rs.Fields("client_code") = S) Then Text1.Text = S Combo1.Text = rs(2) Text2.Text = rs(1) Combo2.Text = rs(3) Text3.Text = rs(4) If (rs.Fields("group") <> "") Then Label7.Visible = True Combo3.Visible = True Combo3.Text = rs.Fields("group") Else Label7.Visible = False Combo3.Visible = False

End If S=1 Exit Do Else rs.MoveNext End If Loop End If If (S <> 1) Then MsgBox "the client not existed" Else SAVE.Enabled = True k=1 End If End Sub Private Sub save_Click() If (k <> 1) Then MESS If response = vbYes Then rs.AddNew rs.Fields("client_code") = Text1.Text rs.Fields("qual_name") = Combo1.Text rs.Fields("qual_code") = Text2.Text rs.Fields("qual_status") = Combo2.Text rs.Fields("exp_details") = Text3.Text If (Label7.Visible = True) Then rs.Fields("group") = Combo3.Text Else rs.Fields("group") = "" End If rs.Update SAVE.Enabled = False retrive.Visible = True delete.Visible = True CLEA End If Else MESS If (response = vbYes) Then

rs.Edit rs.Fields("client_code") = Text1.Text rs.Fields("qual_name") = Combo1.Text rs.Fields("qual_code") = Text2.Text rs.Fields("qual_status") = Combo2.Text rs.Fields("exp_details") = Text3.Text If (Label7.Visible = True) Then rs.Fields("group") = Combo3.Text Else rs.Fields("group") = "" End If rs.Update CLEA End If End If 'End If End Sub Public Sub MESS() message = "you want to save the record" dialogtype = vbYesNo + vbInformation title = "saving the record" response = MsgBox(message, dialogtype, title) End Sub Private Sub Text3_KeyPress(KeyAscii As Integer) If ((KeyAscii >= 32) And (KeyAscii <= 47)) Or ((KeyAscii >= 58) And (KeyAscii <= 126)) Then KeyAscii = 0 ' MsgBox "u have to enter only integer values" End If End Sub Public Sub CLEA() Text1.Text = "" Combo1.clear Combo2.clear Text2.Text = "" Text3.Text = "" End Sub

Dim db As Database Dim rs1 As Recordset Dim k As String Private Sub Command1_Click() rs1.AddNew rs1.Fields("client_code") = clientrequirements.Text1.Text rs1.Fields("c") = Check1.Value

rs1.Fields("c++") = Check2.Value rs1.Fields("java") = Check3.Value rs1.Fields("cobol") = Check4.Value rs1.Fields("fortran") = Check5.Value rs1.Fields("vb") = Check6.Value rs1.Fields("d2k") = Check7.Value rs1.Fields("dos") = Check8.Value rs1.Fields("unix") = Check9.Value rs1.Fields("windows") = Check10.Value rs1.Fields("sql") = Check11.Value rs1.Update Unload Me clientrequirements.Show End Sub Private Sub Form_Load() Set db = OpenDatabase("D:\CONSULT\consul.mdb") Set rs1 = db.OpenRecordset("clireskills", dbOpenDynaset) End Sub

Dim db As Database Dim rs1 As Recordset Dim rs2, rs3, rs4, rs5, rs6, rs7 As Recordset Dim i, k As Integer Dim ssql As String Private Sub Combo1_Click() rs2.MoveFirst rs5.MoveFirst

ssql = "select * from clientdetails a where a.client_code='" & Combo1.Text & "'" Set rs5 = db.OpenRecordset(ssql) ssql = "select * from clirequirements a where a.client_code='" & Combo1.Text & "'" Set rs2 = db.OpenRecordset(ssql) 'Do While Not rs5.EOF And Not rs2.EOF ' If Combo1.Text = rs2.Fields("client_code") Then Text1.Text = rs5.Fields("client_name") Text2.Text = rs2.Fields("qual_name") Text3.Text = rs2.Fields("qual_status") Text4.Text = rs2.Fields("exp_details") retrive.SetFocus End Sub Private Sub Command1_Click() Unload Me mainmenu.Show End Sub

Private Sub Form_Load() Set db = OpenDatabase("D:\CONSULT\consul.mdb") Set rs1 = db.OpenRecordset("selection", dbOpenDynaset) Set rs2 = db.OpenRecordset("clirequirements", dbOpenDynaset) Set rs3 = db.OpenRecordset("persdetails", dbOpenDynaset) Set rs4 = db.OpenRecordset("persqualification", dbOpenDynaset) Set rs5 = db.OpenRecordset("clientdetails", dbOpenDynaset) Set rs6 = db.OpenRecordset("persskills", dbOpenDynaset) Set rs7 = db.OpenRecordset("clireskills", dbOpenDynaset) Do While Not rs2.EOF Combo1.AddItem rs2.Fields("client_code") rs2.MoveNext Loop Text5.Text = Format(Date, "dd-mm-yyyy") End Sub Private Sub retrive_Click() Dim i As Integer

MSFlexGrid1.clear MSFlexGrid1.Row = 0 MSFlexGrid1.Col = 1 MSFlexGrid1.Text = "NAME" MSFlexGrid1.Col = 2 MSFlexGrid1.Text = "DOB" MSFlexGrid1.Col = 3 MSFlexGrid1.Text = "CITY" MSFlexGrid1.Col = 4 MSFlexGrid1.Text = "STATE" MSFlexGrid1.Col = 5 MSFlexGrid1.Text = "PHONE" MSFlexGrid1.Col = 6 MSFlexGrid1.Text = "EMAIL-ID" MSFlexGrid1.Col = 7 MSFlexGrid1.Text = "QUAL-NAME" MSFlexGrid1.Col = 8 MSFlexGrid1.Text = "GRADE" MSFlexGrid1.Col = 9 MSFlexGrid1.Text = "SCORE" MSFlexGrid1.Col = 10 MSFlexGrid1.Text = "EXP-DETAILS" ssql = "select * from clirequirements where client_code='" & Combo1.Text & "'" Set rs2 = db.OpenRecordset(ssql, dbOpenDynaset) rs4.MoveFirst i=0 Do While Not rs4.EOF If (rs2("Group") <> "COMPUTERS") Then If (rs4("Group") = rs2("group")) And (rs4("qual_name") = rs2("qual_name") And (rs4("class") = "FIRST CLASS")) Then ssql = "select * from persdetails a where a.reg_code='" & rs4("reg_code") & "'" Set rs3 = db.OpenRecordset(ssql, dbOpenDynaset) i=i+1 MSFlexGrid1.TextMatrix(i, 1) = rs3.Fields("name") MSFlexGrid1.TextMatrix(i, 2) = rs3.Fields("dob") MSFlexGrid1.TextMatrix(i, 3) = rs3.Fields("city") MSFlexGrid1.TextMatrix(i, 4) = rs3.Fields("state") MSFlexGrid1.TextMatrix(i, 5) = rs3.Fields("phone")

MSFlexGrid1.TextMatrix(i, 6) = rs3.Fields("emai") MSFlexGrid1.TextMatrix(i, 7) = rs4.Fields("qual_name") MSFlexGrid1.TextMatrix(i, 8) = rs4.Fields("grade") MSFlexGrid1.TextMatrix(i, 9) = rs4.Fields("score") MSFlexGrid1.TextMatrix(i, 10) = rs4.Fields("exp_details") End If Else rs4.MoveFirst Do While Not rs4.EOF If (rs4("group") = rs2("group")) Then ssql = "select * from persskills a where a.reg_code='" & rs4("reg_code") & "'" Set rs6 = db.OpenRecordset(ssql) ssql = "select * from clireskills a where a.client_code='" & rs2("client_code") & "'" Set rs7 = db.OpenRecordset(ssql) If ((rs6("c") = rs7("c")) And (rs6("c++") = rs7("c++")) And (rs6("java") = rs7("java")) _ And (rs6("cobol") = rs7("cobol")) And (rs6("fortran") = rs7("fortran")) _ And (rs6("vb") = rs7("vb")) And (rs6("d2k") = rs7("d2k")) And (rs6("dos") = rs7("dos")) _ And (rs6("unix") = rs7("unix")) And (rs6("windows") = rs7("windows")) _ And (rs6("sql") = rs7("sql"))) Then i=i+1 ssql = "select * from persdetails a where a.reg_code='" & rs4("reg_code") & "'" Set rs3 = db.OpenRecordset(ssql, dbOpenDynaset) 'ssql = "select * from persdetails a where a.reg_code='" & rs4("reg_code") & "'" 'Set rs3 = db.OpenRecordset(ssql, dbOpenDynaset) MSFlexGrid1.TextMatrix(i, 1) = rs3.Fields("name") MSFlexGrid1.TextMatrix(i, 2) = rs3.Fields("dob") MSFlexGrid1.TextMatrix(i, 3) = rs3.Fields("city") MSFlexGrid1.TextMatrix(i, 4) = rs3.Fields("state") MSFlexGrid1.TextMatrix(i, 5) = rs3.Fields("phone") MSFlexGrid1.TextMatrix(i, 6) = rs3.Fields("emai") MSFlexGrid1.TextMatrix(i, 7) = rs4.Fields("qual_name") MSFlexGrid1.TextMatrix(i, 8) = rs4.Fields("grade")

MSFlexGrid1.TextMatrix(i, 9) = rs4.Fields("score") MSFlexGrid1.TextMatrix(i, 10) = rs4.Fields("exp_details") End If Else End If rs4.MoveNext Loop Exit Do End If rs4.MoveNext Loop End Sub Public Sub cler() Text6.Text = "" Text7.Text = "" Text8.Text = "" Text9.Text = "" Text10.Text = "" Text11.Text = "" Text12.Text = "" Text13.Text = "" Text14.Text = "" End Sub

Dim db As Database Dim rs, rs1 As Recordset Dim i As Integer Dim str As String Dim message As String Dim dialogtype As Integer Dim title As String Dim response As Integer Private Sub ADD_Click() Dim k

i=0 If rs.RecordCount = 0 Then MsgBox " NO RECORDS ARE PRESENTLY AVILABLE" Else rs.MoveFirst Do While Not rs.EOF k = Val(Mid$(rs.Fields("reg_code"), 3, 6)) If (k > i) Then i=k End If rs.MoveNext Loop End If str = "RC" i=i+1 If (i >= 0) And (i <= 9) Then str = str & "000" & i Else If (i >= 10) And (i <= 99) Then str = str & "00" & i Else If (i >= 100) And (i <= 999) Then str = str & "0" & i End If End If End If clearc Text1.Text = str Text2.SetFocus SAVE.Visible = False delete.Visible = False MODIFY.Visible = False Command5.Visible = True Text1.Enabled = False Command1.Visible = True EX.Visible = True End Sub Private Sub Combo3_Click() Text9.SetFocus

End Sub Private Sub Command1_Click() If Text1.Text <> "" And Text2.Text <> "" _ And Text3.Text <> "" And Text4.Text <> "" _ And Text5.Text <> "" And Text6.Text <> "" _ And Text7.Text <> "" And Text9.Text <> "" _ And Text8.Text <> "" And Text13.Text <> "" Then rs.AddNew MODI MsgBox "one record is saved" persqualification.SAVE.Enabled = True persqualification.Show Call clearc Else MsgBox "u have to fill all the fields" clearc Text2.SetFocus End If End Sub Private Sub save_Click() rs.MoveFirst Do While Not rs.EOF If rs.Fields("reg_code") = Text1.Text Then rs.Edit MODI SAVE.Enabled = False add.Enabled = True delete.Enabled = True Command5.Enabled = True Exit Do End If rs.MoveNext Loop clearc add.Visible = True Command5.Visible = True delete.Visible = True End Sub

Private Sub Command5_Click() clearc End Sub Private Sub DELETE_Click() Dim i, k add.Enabled = False MODIFY.Enabled = False SAVE.Enabled = False Command5.Enabled = False i = InputBox("ENTER REGISTER CODE", "reg code") rs.MoveFirst Do While Not rs.EOF If (rs.Fields("reg_code") = i) Then message = "are you sure" dialogtype = vbYesNo + vbInformation title = "deleting the record" response = MsgBox(message, dialogtype, title) k=1 If (response = vbYes) Then del rs1.MoveFirst Do While Not rs1.EOF If rs1.Fields("reg_code") = i Then rs1.delete Exit Do Else rs1.MoveNext End If Loop MsgBox "THE RECORD IS DELETED" End If Exit Do End If rs.MoveNext Loop If (k <> 1) Then MsgBox "the given record is not present" End If

add.Enabled = True MODIFY.Enabled = True SAVE.Enabled = True Command5.Enabled = True End Sub Private Sub EX_Click() Unload Me mainmenu.Show End Sub Private Sub Form_Load() Set db = OpenDatabase("D:\CONSULT\consul.mdb") Set rs = db.OpenRecordset("persdetails", dbOpenDynaset) Set rs1 = db.OpenRecordset("persqualification", dbOpenDynaset) 'rs1.MoveFirst Label16.Caption = Format(Date, "dd/mm/yyyy") Label17.Caption = Time Command1.Visible = False End Sub Private Sub Text14_Change() Text2.SetFocus End Sub Private Sub modify_Click() clearc Dim i, k MsgBox "enter Reg code" i = InputBox("ENTER REGISTER CODE", "reg code") rs.MoveFirst k=0 Do While Not rs.EOF If (rs.Fields("reg_code") = i) And (rs.Fields("name") <> " ") Then Text1.Text = i Text2.Text = rs.Fields("name") Text3.Text = Val(Mid$(rs.Fields("dob"), 1, 2)) Text8.Text = Val(Mid$(rs.Fields("dob"), 4, 5)) Text13.Text = Val(Mid$(rs.Fields("dob"), 7, 10)) Text4.Text = rs.Fields("add1")

Text5.Text = rs.Fields("add2") Text6.Text = rs.Fields("add3") Text7.Text = rs.Fields("city") Combo3.Text = rs.Fields("state") Text9.Text = rs.Fields("zip") If rs.Fields("phone") = 0 Then Text11.Text = "" Else Text11.Text = rs.Fields("phone") End If Text12.Text = rs.Fields("emai") Combo1.Text = rs.Fields("work_status") k=1 Exit Do Else rs.MoveNext End If Loop If k = 1 Then SAVE.Enabled = True Command1.Visible = False add.Visible = False delete.Visible = False Command5.Visible = False Else MsgBox "THERE IS NO SUCH RECORD AVILABLE" Text1.Text = "" MODIFY.SetFocus End If EX.Enabled = True End Sub Private Sub Text10_KeyPress(KeyAscii As Integer) If ((KeyAscii >= 33) And (KeyAscii <= 64)) Or ((KeyAscii >= 91) And (KeyAscii <= 96)) Or ((KeyAscii >= 123) And (KeyAscii <= 126)) Then KeyAscii = 0 End If End Sub

Private Sub Text11_KeyPress(KeyAscii As Integer) If ((KeyAscii >= 32) And (KeyAscii <= 47)) Or ((KeyAscii >= 58) And (KeyAscii <= 126)) Then KeyAscii = 0 MsgBox "u have to enter only integer values" End If End Sub Private Sub Text13_KeyPress(KeyAscii As Integer) If ((KeyAscii >= 32) And (KeyAscii <= 47)) Or ((KeyAscii >= 58) And (KeyAscii <= 126)) Then KeyAscii = 0 MsgBox "u have to enter only integer values" End If End Sub Private Sub Text13_LostFocus() Dim j j = Text3.Text & "-" & Text8.Text & "-" & Text13.Text MsgBox j If Not IsDate(j) Then MsgBox " not a valid date" Text3.Text = "" Text8.Text = "" Text13.Text = "" Text3.SetFocus End If End Sub Private Sub Text2_KeyPress(KeyAscii As Integer) If ((KeyAscii >= 33) And (KeyAscii <= 64)) Or ((KeyAscii >= 91) And (KeyAscii <= 96)) Or ((KeyAscii >= 123) And (KeyAscii <= 126)) Then KeyAscii = 0 End If End Sub Private Sub Text3_KeyPress(KeyAscii As Integer) If ((KeyAscii >= 32) And (KeyAscii <= 47)) Or ((KeyAscii >= 58) And (KeyAscii <= 126)) Then KeyAscii = 0

MsgBox "u have to enter only integer values" End If End Sub Private Sub Text7_KeyPress(KeyAscii As Integer) If ((KeyAscii >= 33) And (KeyAscii <= 64)) Or ((KeyAscii >= 91) And (KeyAscii <= 96)) Or ((KeyAscii >= 123) And (KeyAscii <= 126)) Then KeyAscii = 0 End If End Sub Private Sub Text8_KeyPress(KeyAscii As Integer) If ((KeyAscii >= 32) And (KeyAscii <= 47)) Or ((KeyAscii >= 58) And (KeyAscii <= 126)) Then KeyAscii = 0 MsgBox "u have to enter only integer values" End If End Sub Private Sub Text9_KeyPress(KeyAscii As Integer) If ((KeyAscii >= 32) And (KeyAscii <= 47)) Or ((KeyAscii >= 58) And (KeyAscii <= 126)) Then KeyAscii = 0 MsgBox "u have to enter only integer values" End If End Sub Private Sub Timer1_Timer() Label17.Caption = Time End Sub Public Sub clearc() 'Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" Text7.Text = "" Text8.Text = ""

Text9.Text = "" Text13.Text = "" Text11.Text = "" Text12.Text = "" Combo1.Text = "" Combo3.Text = "" End Sub Public Sub MSG() message = "you want to save the record" dialogtype = vbYesNo + vbInformation title = "saving the record" response = MsgBox(message, dialogtype, title) End Sub Public Sub MODI() Dim j j = Text3.Text & "/" & Text8.Text & "/" & Text13.Text rs.Fields("reg_code") = Text1.Text rs.Fields("name") = Text2.Text rs.Fields("dob") = j rs.Fields("add1") = Text4.Text rs.Fields("add2") = Text5.Text rs.Fields("add3") = Text6.Text rs.Fields("city") = Text7.Text rs.Fields("state") = Combo3.Text rs.Fields("zip") = Text9.Text If Text11.Text = "" Then rs.Fields("phone") = 0 Else rs.Fields("phone") = Text11.Text End If rs.Fields("emai") = Text12.Text rs.Fields("work_status") = Combo1.Text rs.Update End Sub Public Sub del() rs.Edit rs.Fields("name") = Null

rs.Fields("dob") = Null rs.Fields("add1") = Null rs.Fields("add2") = Null rs.Fields("add3") = Null rs.Fields("city") = Null rs.Fields("state") = Null rs.Fields("zip") = Null rs.Fields("phone") = Null rs.Fields("emai") = Null rs.Fields("work_status") = Null rs.Update End Sub

Dim db As Database Dim rs1 As Recordset Dim rs2 As Recordset Dim points As Integer Dim k Private Sub CL_Click() Text1.Text = "" clearc End Sub

Private Sub Combo1_Click() If Combo1.Text = "MTECH" Then Text2.Text = "QC001" addfields Else If Combo1.Text = "MCA" Then Text2.Text = "QC002" Else If Combo1.Text = "BE" Then Text2.Text = "QC003" addfields Else If Combo1.Text = "MBA" Or Combo1.Text = "MSC" Or Combo1.Text = "MA" Then Text2.Text = "QC005" Else If Combo1.Text = "MCOM" Then Text2.Text = "QC004" Else Text2.Text = "QC006" End If End If End If End If End If If (Combo1.Text = "MBA") Then Combo4.clear Combo4.AddItem "MARKETING" Combo4.AddItem "SYSTEMS" Combo4.AddItem "H.R.D" Combo4.AddItem "FINANCE" End If If (Combo1.Text = "MSC") Or (Combo1.Text = "BSc") Then Combo4.clear Combo4.AddItem "COMPUTERS" Combo4.AddItem "MATHS" Combo4.AddItem "PHYSICS" Combo4.AddItem "CHEMISTRY" End If

If (Combo1.Text = "MTECH") Or (Combo1.Text = "BE") Or (Combo1.Text = "MSC") _ Or (Combo1.Text = "BSc") Or (Combo1.Text = "MBA") Then Label11.Visible = True Combo4.Visible = True Else Label11.Visible = False Combo4.Visible = False End If Text2.Enabled = False Combo2.SetFocus End Sub Private Sub Combo1_LostFocus() If (Combo1.Text = "MCA") Then skillset.Show End If End Sub Private Sub Combo3_Click() If Combo3.Text = "BE" Or Combo3.Text = "BTECH" Then Text3.Text = "B" Else If Combo3.Text = "PG" Then Text3.Text = "A" Else If Combo3.Text = "UG" Then Text3.Text = "C" Else If Combo3.Text = "DIPLOMA" Then Text3.Text = "D" End If End If End If End If score Text6.SetFocus End Sub Private Sub DELETE_Click()

rs2.delete End Sub Private Sub EXIT_Click() Unload Me mainmenu.Show End Sub Private Sub Combo4_Click() Combo3.SetFocus End Sub Private Sub Combo4_LostFocus() If (Combo4.Text = "COMPUTERS") Then skillset.Show End If End Sub Private Sub EX_Click() Unload Me mainmenu.Show End Sub Private Sub Form_Load() Set db = OpenDatabase("D:\CONSULT\consul.mdb") Set rs1 = db.OpenRecordset("persdetails", dbOpenDynaset) Set rs2 = db.OpenRecordset("persqualification", dbOpenDynaset) Text1.Text = persdetails.Text1.Text 'SAVE.Enabled = True 'EX.Visible = False 'CL.Visible = False 'Combo1.SetFocus clearc End Sub Private Sub modify_Click() Text1.Text = "" clearc Dim i MsgBox "enter Reg code"

i = InputBox("ENTER REGISTER CODE", "reg code") rs2.MoveFirst Do While Not rs2.EOF If (rs2.Fields("reg_code") = i) Then Text1.Text = i Combo1.Text = rs2.Fields("qual_name") Text2.Text = rs2("qual_code") Combo2.Text = rs2("class") Combo3.Text = rs2("qual_status") Text3.Text = rs2("grade") Text5.Text = rs2("score") Text6.Text = rs2("exp_details") If (rs2.Fields("group") <> " ") Then Label11.Visible = True Combo4.Visible = True Combo4.Text = rs2("group") Else Combo4.Visible = False Label11.Visible = False End If k=1 Exit Do Else rs2.MoveNext End If Loop If k <> 1 Then 'SAVE.Visible = True 'Command1.Visible = False 'add.Visible = False 'delete.Visible = False 'Command5.Visible = False 'Else MsgBox "THERE IS NO SUCH RECORD AVILABLE" Text1.Text = "" MODIFY.SetFocus End If EX.Enabled = True SAVE.Enabled = True End Sub

Private Sub save_Click() If (k <> 1) Then rs2.AddNew If Text1.Text <> "" And Text2.Text <> "" _ And Text3.Text <> "" And Text5.Text <> "" _ And Text6.Text <> "" And Combo1.Text <> "" _ And Combo2.Text <> "" And Combo3.Text <> "" Then rs2(0) = Text1.Text rs2.Fields("qual_name") = Combo1.Text rs2.Fields("qual_code") = Text2.Text rs2.Fields("class") = Combo2.Text rs2.Fields("qual_status") = Combo3.Text rs2.Fields("grade") = Text3.Text rs2.Fields("score") = Text5.Text rs2.Fields("exp_details") = Text6.Text If (Label11.Visible = True) Then rs2.Fields("group") = Combo4.Text Else rs2.Fields("group") = "" End If rs2.Update SAVE.Visible = False clearc EX.Visible = True CL.Visible = True MODIFY.Visible = True Else MsgBox "U MUST ENTER ALL THE FIELDS" clearc End If Else rs2.Edit rs2(0) = Text1.Text rs2.Fields("qual_name") = Combo1.Text rs2.Fields("qual_code") = Text2.Text rs2.Fields("class") = Combo2.Text rs2.Fields("qual_status") = Combo3.Text rs2.Fields("grade") = Text3.Text rs2.Fields("score") = Text5.Text

rs2.Fields("exp_details") = Text6.Text If (Combo4.Visible = True) Then rs2.Fields("group") = Combo4.Text Else rs2.Fields("group") = "" End If rs2.Update SAVE.Visible = False End If Text1.Text = "" EX.Visible = True CL.Visible = True MODIFY.Visible = True clearc End Sub Public Sub clearc() Text2.Text = "" Text3.Text = "" Text5.Text = "" Text6.Text = "" Combo1.Text = "" Combo2.Text = "" Combo3.Text = "" Combo4.Text = "" 'Text1.SetFocus End Sub Public Sub score() points = 0 If Combo3.Text = "PG" And Combo2.Text = "FIRST CLASS" Then Text5.Text = points + 21 End If If Combo3.Text = "PG" And Combo2.Text = "SECOND CLASS" Then Text5.Text = points + 20 End If If Combo3.Text = "PG" And Combo2.Text = "THIRD CLASS" Then Text5.Text = points + 19 End If If Combo3.Text = "BE" And Combo2.Text = "FIRST CLASS" Then

Text5.Text = points + 18 End If If Combo3.Text = "BE" And Combo2.Text = "SECOND CLASS" Then Text5.Text = points + 17 End If If Combo3.Text = "BE" And Combo2.Text = "THIRD CLASS" Then Text5.Text = points + 16 End If If Combo3.Text = "UG" And Combo2.Text = "FIRST CLASS" Then Text5.Text = points + 15 End If If Combo3.Text = "UG" And Combo2.Text = "SECOND CLASS" Then Text5.Text = points + 14 End If If Combo3.Text = "UG" And Combo2.Text = "THIRD CLASS" Then Text5.Text = points + 13 End If If Combo3.Text = "DIPLOMA" And Combo2.Text = "FIRST CLASS" Then Text5.Text = points + 12 End If If Combo3.Text = "DIPLOMA" And Combo2.Text = "SECOND CLASS" Then Text5.Text = points + 11 End If If Combo3.Text = "DIPLOMA" And Combo2.Text = "THIRD CLASS" Then Text5.Text = points + 10 End If End Sub Private Sub Text6_KeyPress(KeyAscii As Integer) If ((KeyAscii >= 32) And (KeyAscii <= 47)) Or ((KeyAscii >= 58) And (KeyAscii <= 126)) Then KeyAscii = 0 ' MsgBox "u have to enter only integer values" End If End Sub Public Sub addfields()

Combo4.clear Combo4.AddItem "COMPUTERS" Combo4.AddItem "ELECTRONICS" Combo4.AddItem "MECHANICAL" Combo4.AddItem "CIVIL" End Sub

Dim db As Database Dim rs1 As Recordset Dim k As String Private Sub Command1_Click() rs1.AddNew rs1.Fields("reg_code") = persqualification.Text1.Text rs1.Fields("c") = Check1.Value rs1.Fields("c++") = Check2.Value rs1.Fields("java") = Check3.Value rs1.Fields("cobol") = Check4.Value

rs1.Fields("fortran") = Check5.Value rs1.Fields("vb") = Check6.Value rs1.Fields("d2k") = Check7.Value rs1.Fields("dos") = Check8.Value rs1.Fields("unix") = Check9.Value rs1.Fields("windows") = Check10.Value rs1.Fields("sql") = Check11.Value rs1.Update Unload Me persqualification.Show End Sub Private Sub Form_Load() Set db = OpenDatabase("D:\CONSULT\consul.mdb") Set rs1 = db.OpenRecordset("persskills", dbOpenDynaset) End Sub

APPENDICES: SAMPLE SCREENS:

SCREENS:
MAIN MENU:

6. SYSTEM TESTING
The common view of testing held by users is that it is performed to prove that there are no errors in a program. This is extremely difficult since designer cannot prove to be one hundred percent accurate. Therefore, the most useful and practical approach is with the

understanding that testing is the process of executing a program with explicit intention of finding errors that make the program fail. Testing has its own cycle. The testing process begins with the product requirements phase and from there parallels the entire development process. In other words, for each phase of the development process there is an important testing activity. Successful testing requires a methodical approach. It requires to focus on basic critical factors: Test plan: Before going for testing, first we have to decide upon the type of testing to be carried out. The following factors are taken into consideration: To ensure that information properly flows into and out of program To find out whether the local data structures maintains its integrity during all steps in an algorithm execution To ensure that the module operate properly at boundaries established to limit or restrict processing To find out whether error - handling paths are working correctly or not To find out whether the values are correctly updated or not Check for validations Unit Testing: Planning Project and process control Risk management Inspections Measurement tools Organization and professionalism

Unit or module testing is the process of testing the individual components (subprograms or procedures) of a program. The purpose is to discover discrepancies between the modules interface specification and its actual behaviour. In our system each module namely (i) search module (ii) request module (iii) order module must be tested independently for validation. Integration Testing: Integration testing is the process of combining and testing multiple components together. The primary objective of integration testing is to discover errors in the interfaces between the components. In our system each of the modules mentioned above, are tested for checking the integration between them, after each of them are tested Individually. System Testing: Validation testing provides the final assurance that software meets all functional, behavioral and performance requirement. The software once validated must be combined with other system elements. System testing verifies that as elements combine properly and that overall system function and performance is achieved.

7. CONCLUSION
The project entitled CONSULTANCY has been successfully developed and implemented. The testing was carried out by dividing the project into different modules.

The project has been satisfactory in the areas of client requirements and recruitments of people as per their qualification . This project possesses all the details regarding the companies and the people who require a job. The special feature of this project is that it can automatically match the requirements of the client with the qualification of the people and gives the list of people who suits for that job.

8. FUTURE ENHANCEMENTS
The system may be further updated or modified at will owing to its simple structure.

If the company is willing the administrator might add a new module that would allow the vendor to login to the books ordering system. Moreover the developed system does not provide any kind of facility for online purchase of books. If the vendor is allowed to access our site then online purchase of books may be included. Also payments can be made online for the purchase of books.

9. BIBLIOGRAPHY

1. VISUAL BASIC 5.0 FROM THE GROUP UP -------- GRAY CORNELL 2. VISUAL BASIC 5.0 POWER OOP --------- MARTIN , L.RINEHART 3. MASTERING IN VISUAL BASIC ----- EVANGELOUS PETROUTSOS 4. INTRODUCTION TO DATABASE MANAGEMENT SYSTEM --------C.J.DATE

Você também pode gostar