Вы находитесь на странице: 1из 51

SYNOPSIS

Human Resource Management is one important department in each and every


company .Managing employee is the costly work in all the companies. Our aim is to cut down
the cost of the human resource management.

HR Management System project is used in companies for organizing employee inside


organization. This system will look after employee recruitment , allocating new employees .For a
projecet , carrer module and admin module.HR Management System is managed by HR Team for
managing employee salaries, etc..

HR management aligns the employee skills with the present and future needs of the
Organization and Utilizes, it towards the archievement of the desired goal.

To Develop a software application that supports the applications specific to the HR


automation in an intranet specific to a company there by allowing the intragation of all the
employees pertaining to that organization. to keep of all the other departments related to that
organization such as marketing, development, etc…

To allow the HR of an organization to up data employee details when ever there is a


change in the employee profile pertaining to that organization.

Following are the modules in this Project:

 Employee management
 Payroll management
 Interview management
 Contractor management
 Reports
1.INTRODUCTION

1.1 OBJECTIVIES

 Selecting the best workforce from the labor market by using the recruitment
options like internal job portals, Job websites, Advertisements, Employment
agencies, etc.
 To understand that the employees are also Individual & have their own set of
needs.
 To assign the right job to the right employee if the Proper utilization of the talent is
needed.
 To ensure proper availability of latest tools & methods for Training the Employees
as required for their respective competencies.
 To ensure latest appraisal methods, fair & unbiased salary likes for keeping the
employees motivated.
 Ensuring employee health & safety by abiding to the employee safety & health
regulations.
1.2 HR MANAGEMENT OVERVIEW

HR Management has a role that supports organizations in goals by maintaining


effective employees. The HR manager is incharge of the staffing defining & benefits .

HR Management is a function of every Manager’s job. Whether (or) Not one works
in a formal HRM department, the fact remains that to effectively manage employees all
managers must handle the activities.

The goal for HR management is to make the most of the Production of an Organization
by improving the success of the employees.

HR management will deal with the changing world &how it relates to the work
field.HR manager must understand globalization, technology changes, workforce diversity,
labour shortages, changing skill requirements, continous improvement initiatives, the contingent
work force, decentralized work sites &employee involvement.

Health field Human resource management is defined as the function with in an


Organization that focus on recruitment of management of and Providing direction for the people
who work in the Organization.

Effective HRM enables employees to Contribute effectively and Productively to


the Overall company direction and the accomplishment of the Organization’s goals and
Objectives.

The project has been designed and developed using in VB 6.0 as frontend. The
ms-access as the backend for database creation and windows xp as platform.
2. SYSTEM SPECIFICATION

2.1 HARDWARE CONFIGURATION

Processor : Intel Pentium 4

RAM : 512 MB

Processor speed : 2.8 MHZ

Hard disk : 40 GB

Monitor : CRT

Keyboard : HCL 107

Mouse : Logitech

2.2 SOFTWARE CONFIGURATION

Operating system : Windows XP

Front-end : Visual Basic 6.0

Back-end : MS-Access
2.3 SOFTWARE DESCRIPTION

VISUAL BASIC 6.0

The visual part refers to the method used to create the graphical user interface (GUI).
The ‘Basic’ part refers to the BASIC (Beginners All – Purpose Symbolic Instruction Code)
Language. Visual Basic has evolved from the original basic language and now contains several
hundred statements functions and keyword, many of which relate directly to the Windows GUI.

The first tool to make Windows based programming easy the Microsoft Visual Basic
version 6.0 programming. System is now the leading tool for helping, developers create and use
Active X components, build Active Documents for intranet browsers, build client/server or multi
– tier solutions with high speed data access and built fast applications based on Windows version
6.0 adds a native code compiler, implicit multi – threading and integration with Microsoft
Transaction Server to bring a new level of scalability to server based components built with
Visual Basic.

Visual Basic 6.0 also provides developers with a new interface for faster programming.
The IDE now features Multiple Document Interface (MDI) with docking and linking. Windows
to eliminate unnecessary, mouse and keyboard actions and the code editors offers Intelli Sense
Technology such as Quick Tips, Data Tips, List Members and List Constants which eliminate the
need to memorize syntax and learn object models.

Visual Basic 6.0 is an application development tool used in developing Client/Server


applications. Before beginning with visual Basic 6, let’s have a look at the client/Server
architecture.

CLIENT APPLICATION

 Presenting an interface to the user so that the data in the table can be manipulated
with ease.
 Managing presentation logic, such as popup lists on a data entry form, bar graphs etc.
 Validating the data keyed in by the user.
 Requesting and receiving information to and from the database server.
IMPORTANT FEATURES

 The application is graphical user interface


 Event driven programming language where all the activities are triggered by one event or
the other.
 Quick development of object based window database application with little coding.
 Built in database support.
 Client server architecture benefits.
 Provides simple debugging tools.

STATES OF VISUAL BASIC


Visual Basic applications can be viewed in three distinct states:

 Design
 Execution
 Break
In Design State, you can edit user interface or add code to the application.In Execution State,
the application is running and only a few menu commands are available.

In Break State, the application is halted.

EVENT –DRIVEN PROGRAMMING


The two main themes in developing with Visual Basic are:

 Visual Design
 Event Driven Programming
Applications written in Visual Basic are Event Driven. It can be best understood by
comparing it with Procedural programming. When we program in Visual Basic, it must be first
decided how the application should interact with the user. In other words, we have to decide
how each control reacts to user actions, such as the click of a mouse; keystrokes and these
reactions must be programmed. This is called Event Driven Programming, as the event caused
by the user determines the flow of application.
HARDWARE REQUIREMENT
Visual Basic 6.0 for Windows requires at least Microsoft 95 / Windows NT 3.51, 486
processor and a minimum of 16MB of RAM. A complete installation of the most powerful
version of Visual Basic 6.0, enterprise edition, requires more than 250Mb of hard disk space.

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 applications, or even from the application itself.
The sequence of these events determines the sequence in which the code executes, thus the path
through the application's code differs each time the program runs.

Your code can also trigger events during execution. For example, programmatically
changing the text in a text box cause the text box's Change event to occur. This would cause the
code (if any) contained in the Change event to execute. If you assumed that this event would
only be triggered by user interaction, you might see unexpected results. It is for this reason that it
is important to understand the event-driven model and keep it in mind when designing your
application.
VISUAL BASIC CONTROLS

There are three broad categories of controls in visual basic:

 Intrinsic controls such as the command button and frame controls. These
controls are contained inside the visual basic .exe file. Intrinsic controls
are always included in the toolbox unlike ActiveX controls and insertable
objects, which cab be removed from added to the toolbox.

 ActiveX controls are those controls which exist as separate files with an
.ocx file name extension.

 Insertable objects, such as a Microsoft Excel worksheet object containing


a list of all employee details in a company, or a Microsoft project calendar
object containing the scheduling information for a project. Since these can
be added to the toolbox, they can be considered controls. Some of these
objects also support Automation (formerly called OLE Automation),
which allows you to program another application’s objects from within a
visual basic application.
FRONT END
The "Visual" part refers to the method used to create the graphical user interface (GUI).
Rather than writing numerous lines of code to describe the appearance and location of interface
elements, you simply add pre-built objects into place on screen. If you've ever used a drawing
program such as Paint, you already have most of the skills necessary to create an effective user
interface.

The "Basic" part refers to the BASIC (Beginners All-Purpose Symbolic Instruction Code)
language, a language used by more programmers than any other language in the history of
computing. Visual Basic has evolved from the original BASIC language and now contains
several hundred statements, functions, and keywords, many of which relate directly to the
Windows GUI. Beginners can create useful applications by learning just a few of the keywords,
yet the power of the language allows professionals to accomplish anything that can be
accomplished using any other Windows programming language.

The Visual Basic Scripting Edition (VBScript) is a widely used scripting language and a
subset of the Visual Basic language. The investment you make in learning Visual Basic will
carry over to these other areas. In developing applications with Visual Basic programming is
about new keywords and functions. I choose the topics that felt every programmer should learn
in order to master the language.

The Visual Basic programming language is not unique to Visual Basic. The Visual Basic
programming system, Applications Edition included in Microsoft Excel, Microsoft Access, and
many other Windows applications uses the same language. There is nothing new in VB 6.0 in
this area, but graphics are such an important part of the language that the related techniques had
to be explained in detail.
BACK END

Ms-Access is very useful for accessing the database to create records, deleting records,
modifying records and useful for listing records. It is used as back and tool for the Visual Basic.
A database server is the key to solving the problems of information management. In general, a
server must relating manages a large amount data in multi-user environment. So that many users
can concurrently access the same data.

All this must be accomplished while delivering high performance. A database server
must also prevent unauthorized access provide efficient solution for failure recovery.

Ms-Access is a Relational Database Management system for windows. A RDBMS stores


and retrieve information based on relationships. That have been specified relationship exist
almost everywhere in life. With Ms-Access, we can build relational database that stores related
data in one place.

 Ms-Access provides a very easy-to-use graphical interface.


 Ms-Access utilizes that full potential of windows giving a visual outlook a data
and information.
 Ms-Access provides a WIZARD for almost everything.
 Ms-Access hides the nuances of storage format location and fetches information
quickly.
 Ms-Access proves WYSIWYG effect for sophisticated reports and for generation.

MULTIPLE DOCUMENT INTERFACE

This application has one parent form that contains most of the other forms in the
program. Other forms can be child forms, which are contained within the parent, or standard
forms. In the MDI application, one can easily organize all the child forms or minimize the entire
group of forms just by minimizing the parent form. A single icon on the Windows taskbar
represents the MDI parent window and all child windows. If the parent form is minimized and
then restored, all the child forms are returned to the same layout as they had before the
application was minimized.
3.SYSTEM STUDY:

3.1 EXISTING SYSTEM:

Existing system is manual. the system consists of Books of Accounts that has to be
maintained in all aspects. Printing works is difficult.

In the existing system each and each and every time a reference should be made
manually. There are high possibilities to commit error and mistakes, which leads to produce the
wrong statements to the management. Report generation is also not an easy task.

Draw Backs of the Existing System:

 It is a long process.
 Security of information is low.
 Generation of report takes more time.
 It needs more man power.
 Which reterivingdata,error will occur.
 The Proposed System will overcome these difficulties.
3.2 PROPOSED SYSTEM:

The Proposed system avoids many difficulties involved in existing system. The
aim if this project is to format all the records maintained by computerized method.It
provides Quick access and retrieval of information at a required time.

Major Advantages of the Proposed System:

 Large volumes of data can be stored with case.


 Maintance of files is Flexible
 To generate reports takes less time
 Stored data and Procedures can be easily edited
 It is user friendly application.
 Accurate Calculation are made Retriving data With out error is possible.
4. SYSTEM DESIGN

4.1 DATA FLOW DESCRIPTION:

 DFD’s are versatile diagramming tools.


 With only four symbols you can use DFD’s are not as could as flow chart’s for depicting
the details of physical system.
 Flow chart’s are not very useful for depicting purely logical information flows.

Definition and symbols:

 There are two different standard sets of DFD’s symbols but each set consist of your
symbols, that represent the same things.
 Data stores, data flows, processes and source/sinks.

Symbols used in DFD:

1. Data flow

 A data flow can be best understood as data in motion, moving from one place in a
system to another.
 A data flow could represent a data on a customer order form or a pay roll check.
 A data flow could also represent the result of a query to a data base, the contents
of a printed report, or data on a data entry computer display form.
2. Data store

 A data store is data at rest.


 A data store may represent one of many different physical location for data.
 A data store might contain data about customers, students, customer order or
supplier invoices.
3. Process

 The process is the work or actions performed on data, so that they are
transformed, stored are distributed.
 When modeling the data processing of a system, it does not matter whether a
process is performed manually or by a computer.
4. Source/sink

 A source/sink is origin and destination of the data.


 It is sometimes refered to as external entities because they are outside the system.

SYMBOLS FOR DFD:

1. Process

2. Data store
3. Source/sink

4. Data flows

RULES GOVERNING DATA FLOW DIAGRAMMING:

1. Process:
 No process can have only outputs. It is making data from nothing. If an project
has only outputs then it must be a source.
 No process can have only inputs, if an object has only inputs then it must be sink.
 A process has a verb phrase label.
2. Data store:
 Data cannot move directly from one data store to another data store. Data must be
moved by a process.
 Data cannot move directly from an outside source to a data store. Data must be
moved by a process that receives data from the source and place the data into the
data store.
 Data cannot move directly to an outside sink from a data store. Data must be
moved by a process.
 A data store has a noun phrase label.
3. Source/sink:
 Data cannot move directly from a source to a sink.
 It must be moved by a process if the data are of any concern to our systems.
 Otherwise the data flow is not shown on the DFD.
4. Data flow:
 A data flow has only one direction of flow between symbols.
 It may flow in both direction between a process and a data store to show a read
before an output. The later is usually indicated however by two separate around
since these happen at different timer.
 A data flow cannot go directlyback to the same process, it leaves there must be
atleast one other process that handles the data flow produces some other data flow
and returns the original data flow to the beginning processes.
 A data flow to a data store means update.
 A data flow from a data store means retrieve or use.

4.2 INPUT DESIGN


Input design is the process of converting user-originated inputs to a computer-based
format input data are collected and organized into group of similar data. Once identified,
appropriate input media are selected for processing.

4.3 OUPUT DESIGN


Computer output is the most important and direct source of information to the user.
Efficient, intelligible output design should improve the system’s relationships with the user and
help in decision making. A major form of output is the hardcopy from the printer.
Output requirements are designed during system analysis. A good starting point for the
output design is the data flow diagram (DFD). Human factors educe issues for design involves
addressing internal controls to ensure readability.
4.4 DATABASE DESIGN
The database design involves creation of tables. Tables are represented in physical
database as stored files. They have their own independent existence. A table consists of rows
and columns. Each column corresponds to a piece of information called field. A set of fields
constitutes a record. The record contains the entire information specific to a particular Stock.
4.5 MODULE DESCRIPTION:
MODULES
 Log In
 Employee Management
 Pay roll Management
 Interview Management
 Contractor Management
 Reports
Log in:
Here administrator has to Login by using their unique Username and Password.
Administrator are the only authorized person to access this module.
Employee Management:
This module helps a company to manage all the employee working in their
company. When a new employee joins the company, there will be a registration Form
which helps the company to update the employee details. When a user wants to edit his
to do it. There will be category for employees. While registration the employees can
choose the category from the list available.
Pay Roll Management:
Pay roll Management will be a tedious process for a company to manage. But our
aim is to make this payroll management process a simple one. This module helps the
human resource department to manage the entire employee’s payroll through a single
module. This module will help the human resource department to manage all the
promotion activities of the employees of the company.
Interview Management:
Interview Management module help the human resource department to manage
all the interview details when a interview is conducted, the details of that interview will be
updated through this module. Date, place, number of Interview atiendedare someof the
details of this system.
Contract Management:
Each and every company will have some contract base work. Those work and the
workers working under contract will be managed through this module.
Reports:
A Report is used to views and print information from the database. the report can
ground records into many levels & compute totals and average by checking values from
many records at Once.

Also the report is Attractive & distinctive because we have control over the size &
appearance of it.
5. TESTING AND IMPLEMENTATION

It is the stage of implementation, which ensures that system works accurately and
effectively before the live operation Commences. It is a confirmation that all are correct and
opportunity to show the users that the system must be tested with data and show that the system
will operate successfully and produce expected results under expected conditions.

Before implementation, the proposed system must be tested with raw data to ensure that
the modules of the system works correctly and satisfactorily. The system must be tested with
valid data to achieve its objective.

The purpose of system testing is to identify and correct errors in the candidate system.
Testing is done to achieve the system goal. Testing is vital to the parts of the system are correct;
the goal will be successfully achieved. Inadequate testing or non-testing leads to errors that may
not appear until months later. The various types of testing done on the system are:

 Unit Testing
 Integration Testing
 Validation Testing
 Quality Assurance

UNIT TESTING

A program represents the logical elements of a system. For a program to run


satisfactorily, it must compile and test data correctly and tie in properly with other programs.
Achieving an error free program is the responsibility of the programmer. Program statement that
violates one or more rules of the language in which it is written. An improperly defined field
dimension or generated by the computer
INTEGRATION TESTING

Programs are invariable related to one another and interact in the total system. Each
program is tested to see whether it conforms to related programs in the system. Each portion of
the system is tested against the entire module with both the test data and the live data before the
entire system is tested as a whole.

VALIDATION TESTING

The validation testing is performed for all the data in the system. The data are completely
validated according to the companies request and requirement. The function or performance
characteristic’s is confirm specification is uncovered and efficiency list is created

QUALITY ASSURANCE

 The Project is tested completely and various errors found are rectified.

 Security is maintained by providing a separate login for the users.

 Duplication of records are not allowed.

 Various validations are performed to ensure that important data are not missed.

 Testing is performed with some sample inputs from the company and the output is
verified and found right.
6.CONCLUSION

The goal of the project “HUMAN RESOURCE MANAGEMENT SYSTEM”

defined has been successfully achieved. The implementation and testing has been done in a step-

by-step process. Each module has been developed and tested individually to obtain the

necessary required output in the desired form. The project has been done as user-friendly

software for easy handling of transactions.

The software developed has been designed and run to satisfy the requirements and needs

of the organization as well as the end users. The system reduces the manual work of maintenance

of the records. It has also resulted in quick retrieval and reference of required information,

which is vital to the degrees of the organization.

The entire system is documented and can be easily understood by the end users. The

forms are very user friendly and also easy to handle even by the beginners with very little effort

and guidance.
7. SCOPE FOR FUTURE ENHANCEMENT

The system has been designed flexible according to the current requirement of the users.
As the information requirements may still increase further in the near future, further
developments can be made.

System has been designed and developed according to the current requirements of the
users. By the same time system is much flexible and extensible. Hence further enhancement if
needed can be made without much difficulty. So new applications can be developed and it can be
integrated with the existing system very easily. It can be further expanded to add more modules
as the necessity arises.

Since MS ACCESS AND VB are flexible tools. Any modular program can be easily
incorporated into the application.
8. BIBLIOGRAPHY

 “Database System Concepts” , M.C. Graw Hill 1996, Abrasilberschaz Henry


F.Eorth.s. Sundar Shan.
 “ System Design in a Database Environment”, McGrawHil 1989 Keneth S. Brathwait.
 “ Visual Basic 6”, Corndex Computer Publishing 1998, Steven Holzner.
 “System Analysis and Design”,Galgotia Publications Pvt ltd.2001,
Elias.M.Awad.
 “VB6 Buildwindows&internet application step by step” Gray Cornell
 “Using Visual Basic 6.0” Brain siler and Jeff spots, PHI publications
 “Getting Results with Microsoft Office 97”,Stephen L. Nelson.
 “Mastering MS–Access for Windows 95”, Alan Simpson, BPB Publications.

REFERENCE WEBSITES:

www.cryptography.com

www.crypto.com

www.devvb.com

www.devaccess.com
9. APPENDICES

9.1 DATA FLOW DIAGRAM

HR
Manager

Log in
Payroll
Employee Salary Data Payroll Details
Details
Details
Information Store

Interview information

Data store Interview Data


Interview Details
Employee Details
Details Store

Contractor Information

Data
Contractor Details
Contractor
store
Details

Final Report

REPORT
B. TABLE STRUCTURE

TABLE-1

TABLE NAME: LOG IN FORM

PRIMARY KEY:user _id

S.NO FIELD NAME DATA TYPE


1 User_id Text
2 P_wd Text

TABLE DESCRIPTION:-

S.NO FIELD NAME DESCRIPTION


1 User_id User id for the users.
2 P_wd Password for the
users.

TABLE EXPLANATION:-

Log_in table contains two fields called user-id and password before user going to
the process user must login their id.
TABLE-2

TABLE NAME: EMPOYEE DETAILS

PRIMARY KEY:eid

s.no field name data type


1 Eid Number
2 Ename Text
3 Dob Date
4 Gen Text
5 Qual Text
6 Desi Text
7 Doj Date
8 Bpay Number
9 Addr Text
10 Cty Text
11 Pcode Number
12 Cno Text
13 Emid Text
TABLE DESCRIPTION:-

s.no field name Description


1 Eid Separate employee id for
all the users.
2 Ename Name of the employee.
3 Dob date of birth of the
employee.
4 Gen Gender of the employee.
5 Qual Qualification of the
employee.
6 Desi Desigination of the
employee.
7 Doj Employee date of joint to
work.
8 Bpay basic pay for the
employee.
9 Addr Address of the employee.
10 Cty City of the employee.
11 Pcode Pincode of the employee
12 Cno contact no of the
employee.
13 Emid e-mail id of the
employee.

TABLE EXPLANATION:-

Employee details table contains the information about the employees who are all join the
company.
TABLE-3

TABLE NAME: PAYROLL DETAILS

FOREIGN KEY:eid

s.no filed name data type


1 Eid number
2 Ename text
3 Yer number
4 Mnth number
5 Noofwrkdays number
6 Noofobstdays number
7 Tnofwrkdays number
8 Bpay number
9 Esi number
10 Pf number
11 Hra number
12 Da number
13 Ntpay number
14 Crspay number
TABLE DESCRIPTION:-

s.no filed name desicription


1 Eid Separate employee id
for all the employees.
2 Ename Name of the
employee.
3 Yer Year of joining to
work of an employee.
4 Mnth Month of joining to
work of an employee.
5 Noofwrkdays no of working days of
an employee.
6 Noofobstdays no of absent days of
an employee.
7 Tnofwrkdays Total of working days
of our company.
8 Bpay basic pay for an
employee.
9 Esi Esi for an employee.
10 Pf Pf for an employee.
11 Hra Hra for an employee.
12 Da Da for an employee.
13 Ntpay Netpay for an
employee.
14 Crspay crass pay for an
employee.
TABLE EXPLANATION:-

Payroll detail table contains the full details about the employee since they are
joining in the company.
TABLE-4

TABLE NAME:INTERVIEW DETAILS

PRIMARY KEY:cid

s.no filed name data type


1 cid Number
2 Invdate Date
3 Cname Text
4 Qual Text
5 Desi Text
6 Perfor Text
7 Stus Text
8 Addr Text
9 City Text
10 Stat Text
11 Pincod Number
12 Conta Text
13 Emai Text
TABLE DESCRIPTION:-

s.no filed name Description


1 cid Separate Candidate id
for all the employees.
2 Invdate Date of the interview.
3 Cname Name of the
candidate.
4 Qual Qualification of the
candidate.
5 Desi Desigination of the
candidate.
6 Perfor Perfomence of the
candidate.
7 Stus Status of the
candidate.
8 Addr Address of the
candidate.
9 City City of the candidate.
10 Stat State of the candidate.
11 Pincod Pincode of the
candidate.
12 Conta Contact no of the
candidate.
13 Emai Email id of the
candidate.

TABLE EXPLANATION:-

Interview detail table contains the information about the candidates who are all attend
the interview in the company.
TABLE-5

TABLE NAME:CONTRACTER DETAILS

PRIMARY KEY:coid

s.no field name data type


1 Coid number
2 Cname Text
3 Cstrdate Text
4 Cendate Text
5 Dept Text
6 Addr Text
7 City Text
8 Stat Text
9 Pincod number
10 Conta Text
11 Emai Text
TABLE DESCRIPTION:-

s.no field name Description


1 Coid Separate contracter id
for the contractor.
2 Cname Name of the
contracter.
3 Cstrdate Starting date of the
contract.
4 Cendate Ending date of the
contract.
5 Dept Department of the
contractor.
6 Addr Address of the
contractor.
7 City City of the contractor.
8 Stat State of the
contractor.
9 Pincod Pincode of the
contractor.
10 Conta contact no of the
contractor.
11 Emai email id of the
contractor.

TABLE EXPLANATION:-

Contractor detail table contains all informations about the employees, who are all
working for the contract.
C. SAMPLE CODING
Option Explicit

Dim con As New ADODB.Connection

Dim rs As New ADODB.Recordset

Private Sub Combo1_Click()

rs.Open "select * from empman where eid=" & Combo1.Text & ""

Text1.Text = rs.Fields(1)

Text2.Text = rs.Fields(2)

Combo2.Text = rs.Fields(3)

Combo3.Text = rs.Fields(4)

Combo4.Text = rs.Fields(5)

Text3.Text = rs.Fields(6)

Text4.Text = rs.Fields(7)

Text5.Text = rs.Fields(8)

Text6.Text = rs.Fields(9)

Text7.Text = rs.Fields(10)

Text8.Text = rs.Fields(11)

Text9.Text = rs.Fields(12)

rs.Close

End Sub

Private Sub Command1_Click()

rs.Open "select max(eid)+1 from empman"

Combo1.Text = rs.Fields(0)

rs.Close
End Sub

Private Sub Command2_Click()

con.Execute "insert into empman values(" & Combo1.Text & ",'" & Text1.Text & "','" & Text2.Text &
"','" & Combo2.Text & "','" & Combo3.Text & "','" & Combo4.Text & "','" & Text3.Text & "'," &
Text4.Text & ",'" & Text5.Text & "','" & Text6.Text & "'," & Text7.Text & ",'" & Text8.Text & "','" &
Text9.Text & "')"

MsgBox ("one record saved")

End Sub

Private Sub Command3_Click()

con.Execute "update empman set ename='" & Text1.Text & "',dob=' " & Text2.Text & "',gen='" &
Combo2.Text & "',qual='" & Combo3.Text & "',desi='" & Combo4.Text & "',doj=' " & Text3.Text &
"',bpay= " & Text4.Text & ",addr=' " & Text5.Text & "',cty=' " & Text6.Text & "',pcode= " & Text7.Text
& ",cno=' " & Text8.Text & "',emid=' " & Text9.Text & "' where eid=" & Combo1.Text & " "

MsgBox ("data edited")

End Sub

Private Sub Command4_Click()

con.Execute "delete from empman where eid= " & Combo1.Text & " "

MsgBox ("one record deleted")

End Sub

Private Sub Command5_Click()

Combo1.Text = ""

Combo2.Text = ""

Combo3.Text = ""

Combo4.Text = ""

Text1.Text = ""
Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

Text7.Text = ""

Text8.Text = ""

Text9.Text = ""

End Sub

Private Sub Command6_Click()

'con.Close

Me.Hide

End Sub

Private Sub Form_Load()

Combo2.AddItem "male"

Combo2.AddItem "female"

Combo3.AddItem "SSLC"

Combo3.AddItem "HSC"

Combo3.AddItem "DIPLOMO"

Combo3.AddItem "UG"

Combo3.AddItem "PG"

Combo4.AddItem "HR"

Combo4.AddItem "manager"

Combo4.AddItem "superviser"
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\HR MANAGEMENT\HRM.mdb;Persist
Security Info=False"

MsgBox "connected successfully"

rs.Open "select * from empman", con, adOpenDynamic, adLockOptimistic

While Not rs.EOF

Combo1.AddItem (rs.Fields(0))

rs.MoveNext

Wend

rs.Close

End Sub
D. SAMPLE INPUT

 LOGIN FORM
 MDI FORM
 EMPLOYEE MANAGEMENT
 INTERVIEW MANAGEMENT
 CONTRACTER MANAGEMENT
 PAYROLL MANAGEMENT
E. SAMPLE OUTPUT
 EMPLOYEE MANAGEMENT
 INTERVIEW MANAGEMENT
 CONTRACTER MANAGEMENT
 PAYROLL MANAGEMENT

Вам также может понравиться