stu sss project

84
PROJECT REPORT PROJECT REPORT ON ON MARKETING MANAGEMENT AT AUSTIN ENGINEERING PVT.LTD By Padaniya Amir. Patel Hardik. ACADEMIC YEAR 2006 SUBMITTED TO AUSTIN ENGINEERING PVT.LTD

Upload: hiren-kariya

Post on 09-Apr-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 1/84

PROJECT REPORTPROJECT REPORT

ONON

MARKETING MANAGEMENT

AT

AUSTIN ENGINEERING PVT.LTD

By

Padaniya Amir.

Patel Hardik.

ACADEMIC YEAR 

2006

SUBMITTED TO

AUSTIN ENGINEERING PVT.LTD

Page 2: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 2/84

Shastri Swami Shree Dharmajivandasji Institute of 

Information Technology - Junagadh

CERTIFICATE

TO WHOM SO EVER IT MAY CONCERN

This is to certify that Mr. Amir Padaniya and

Mr. Hardik Patel, students of  Bsc.IT have successfully completed the

assigned project on “Marketing Management System” satisfactorily in

 partial fulfillment of requirement for  completion of BSC IT-5 which is run

 by Saurashtra University, Rajkot in the year 2006.

  _____________

RajuBhagat Amir Padaniya.

(Director) Hardik Patel.

(Group Members)

 _______________ 

Rahul Pethani

(Project Guide)

PREFACE

Page 3: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 3/84

There is a wide difference between theory and practical. If one has only theoretical

 background of any subject, one would not succeed in own aim therefore it is necessary for 

any person to have adequate practical knowledge of the concerned subject. As we know B.Sc.

I.T. is a course based on “Information Technology” and it is totally practical field. With only

theoretical knowledge one can’t be succeed or one can’t be on the peak position.

In the course of B.Sc. I.T. designed by the “Saurashtra Univercity” they have taken

full care of this things and designed the course in such a manor with which student can get

theoretical and practical both type of knowledge perfectly. According to the rules &

regulation of “Software Development”. In which we have to create a software project of any

institute or industry.

As a B.Sc. I.T. student, we have visited “Austin Engineering Pvt.Ltd”. This project

entirely focuses on making different types of Bearings.

In this project report we have covered all the information, which are required for thesoftware project of B.Sc. I.T. student. We have rotated in making of Marketing Management

System, we have covered all the necessary information.

We have tried as our best present this project report in such a way that it makes easy

to understand the project work we have done for the “Austin Engineering Pvt.Ltd”.

Page 4: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 4/84

ACKNOWLEDGEMENT

We are very thankful to all, who have helped us in preparing this project. We are

much happy to present this “Project Report”. Before you, expecting that you will

acknowledge it. It is a matter of great pleasure for us that we had an opportunity to express

our view on the same.

As a part of our academic study as the student of 5’th semester of B.Sc. I.T. we are

required to undergo training for software project as institute or industry in order to obtain

 practical knowledge and broaden our view regarding the same.

As first, we would like to express our special & humble thanks and gratitude to the

director of S. S. S. D. Inst. of I.T. Shree Raju Bhagat who has provided us such a great, co-

operative and progressive environment.

Secondly, at this moment , we would like to express our deepest sense of gratitude toour deepest of gratitude to our professors as well as project guides Mr.Rahul Pethani who

have contributed their precious time for the purpose of giving us the correct information with

special interest and guidance through out our project work and treat us as their younger 

 brothers.

We would like to express our special thanks to Mr. Amit G. Joshi – Asst. HR 

Manager & ISO Co-ordinator and all the executive persons as well as staff members of 

“Austin Engineering Co. Ltd”, who have given their precious time for us and provided all

the possible information for our practical study.

Date: 16-10-2006

Place: Junagath.

Yours Faithfully.

Mr. Amir Padaniya.

Mr.Hardik Patel .

Page 5: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 5/84

Index

DETAILED LIFE CYCLE OF PROJECT

Sr. No Description Page No.

1 Objective & Scope Of Project

2 Theoretical Background

3 Definition Of Problem

4 Requirement Gathering

5 System Feasibilities

6 System Requirement Specification

7 System Planning

8 Methodology Adopted

9 Details Of Software Used

10 Cost Estimation

11 Detailed Life Cycle Of Project

12 Source Code Of Purchase

13 Source Code Of Sales

14 Source Code Of Process

15 Source Code Of Test

16 Source Code Of Stock  

17 User Manual (Help)

Page 6: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 6/84

 

Page 7: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 7/84

There is a wide difference between theory and practical. If one has only theoretical

 background of any subject, one would not succeed in own aim therefore it is necessary for 

any person to have adequate practical knowledge of the concerned subject. As we know B.Sc.

I.T. Is a course based on “Information Technology” and it is totally practical field. With only

theoretical knowledge one can’t be succeed or one can’t be on the peak position.

In the course of B.Sc.I.T. Designed by the “Saurashtra University” they have takenfull care of these things and designed the course in such a manor with which student can get

theoretical and practical both type of knowledge perfectly.

As a part of our academic study as the student of 5’Th semester of B.Sc.I.T. We have

a subject “Software Development” in which is required to undergo training for software

 project of an institute or industry in order to obtain practical knowledge and broaden our view

regarding the same. Also the project must be developed with the help of Visual Basic &

Oracle and with the concept of Client/Server architecture.

So, first we have to choose the right institute or industry for which we can develop a

software project. For that we have visited several institutes and industries as mentioned.

At last we have taken chance at “Austin Engineering Pvt.Ltd”. There we have meet

the planning head of the Austin Engineering Pvt.Ltd. We provide them the request letter of 

our college and then after studding all the things very carefully they have permitted us to

 proceed on our software project.

Also we have accept to do the project of “Marketing Management System” .Secondly,

they us to do software project on selected department only.

Page 8: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 8/84

THEORITICAL BACKGROUND

Page 9: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 9/84

With reference to prepare a “Software Project” We have undergone in the “Austin

Engineering Pvt.Ldt”. It is located at the Near Patala (JUNAGADH). The Austin Engineering

Pvt.Ldt covered more than 300 types of Bearings, because it is the biggest company that

 prepared all type of Bearings.

At the time of project development, We have tried out level best to collect more &

more information about the Marketing of the AEC regarding our project work.

Currently there are 5 Departments over there as mentioned bellow.

1. Information Technology Department

2. Marketing Department

3. Manufacturing Department

4. Production Department

5. Sales Department

Thus, we have collected all the information related to our project from the “MarketingDepartment”.

Page 10: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 10/84

DEFINATION OF PROBLEM

Page 11: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 11/84

Visiting the “Austin Engineering Pvt.Ltd” We come to know that they are using

“Computer Software” developed in “VB – SQL server” for the “Marketing Department”. But

there is no any software for the Marketing Department.

Also we come to know that the HOD computer – Mr. Raju Thanki is currently

working to develop the new computer software with the use of “Visual Basic & Oracle”,

which can provide GUI Environment & also can be friendly to the get change & can work more effectively & easily.

Mr. Raju Thanki offered us to develop quite perfect system so his work gone reduce

and he can directly add our software project to the main one with minor necessary changes.

We replay him that we will try out best for his offer but at present we are student and we

can’t develop such big software because of lack of experience.

Thus these are the several problem & also some requirements from the user & also

from the management to get software with GUI Environment, User Friendly software, More

Efficient & which provides Easy working environment.

Page 12: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 12/84

REQUIREMENT GATHERING

Page 13: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 13/84

There are four main requirements – gatherings techniques mentioned in “System

Analysis & Design” theories. The techniques are as listed bellow.

• Questionnaires

• Interview

• Observation

• Record Reviewing

From this above four we have used the following methods.

• Observation

• Record Review

First we start with “Observation” because we do not know anything about Marketing

Department. So, we want to know that how they are work in current manual system. After 

observing their manual system, we got some idea about their working style. Then we check 

all the register they prepare and some other application forms.

We have tried our best to collect all the information & requirements from the HOD of 

Marketing Department, Clerk and some other officer. Also we have meet the end users to get

more and clear information that what are the problems with the current system they have to

face, additional facilities they want in their software & other requirements.

We collect the information about whole currently working system, flow of process,

registers entries, processes, input, outputs & reports needed. Also we have said them several

 points, which can be more beneficial for them.

Marketing Department

SALES DEPARTMENT PURCHASE DEPARTMENT

INFORMATON DEPARTMENT

PLANNING DEPARTMENT

Page 14: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 14/84

SYSTEM FEASIBILITIES

Page 15: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 15/84

In the study of feasibilities we will consider four main feasibilities as listed bellow.

• Technical Feasibility

• Operational Feasibility

• Economical Feasibility

• Social Feasibility

Let us discuss them all four feasibility in details.

Technical Feasibility

First of all in the part of “Technical Feasibility” We study that whether this software

 project is technically feasible or not. Means to study that whether the necessary software &

hardware are available or not. Also study that whether the current software project can be

completed with the technology available in the office or in the market or not. So, all these

above factors are being considered in

The study of “Technical Feasibility”.

o

In the office they already have computers with latest genuine configuration.o Secondly, they have Windows XP operating system in all the computer.

o Also they have Oracle to manage all the data & all computers are on the networks.

Operational Feasibility

o First of all here as we have noted that the office has already computer system &

software too. It means that the employees of the office are able to use the

computer and they can easily operate the given software or can be easily trained to

use the new given software.

o Also the HOD computer Mr. Raju Thanki is already working on the software with

Visual Basic & Oracle. Means that the users or the office are capable the new &

upgraded software.

Economical Feasibility

o The office has already all the necessary technical equipments. So that they will not

have to spend money for all those.

o Secondly, the employees don’t need any special training about the computer &

can easily train for the new software. Office can easily effort this expense.

o At last the cost of software is there. We have convinced the office that We will

develop the software in the given time period & as per necessity of the office

against the reasonable price.

Social Feasibility

o Here We are going to make a software project for the employees of the office.

With this new software the employees will get more effective, more user friendly ,

more efficient software.

o Also the workload of the employees will be decreased.

Page 16: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 16/84

SYSTEM REQUIREMENT

SPECIFICATION

Page 17: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 17/84

In the documentation of “Software Requirements Specification – S. R. S.” We have to

specify about all the requirements of the Clerks. Those requirements can be of inputs,

outputs, report, form layout, some extra facility etc. Here we have prepared S. R. S.

documents as per the requirements o the users of the “Austin Engineering Pvt.Ltd” as given

 bellow.

Detailed life cycle of the Projects

In the discussion of “Detailed Life Cycle of Project” we have to

concentrate on D.F.D. (Data Flow Diagram). Here we have work on it while

developing this software project.

DATA FLOW DIAGRAM

D.F.D. – Data Flow Diagram is a graphical view of all system

  processing and transactions. With the D.F.D. unknown person also can easily

understand the system in short time period. Also it is useful to find out problems or 

any complications with the system we are going to develop.

We can easily get that whether we have understood the system as per the

requirements of the customer or not by showing them diagram. Thus D.F.D. is a

necessary while developing software.

Page 18: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 18/84

Physical DFD

 

MARKETING

SYSTEM

LIENT 1 CLIENT 2

Data for 

 

Message from

Server approved

or not

Request for 

create new id

Message from

Server that Id

created or not

CLIENT - N

Page 19: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 19/84

Methodology Adoption

To develop any project there are several methodology given in theory of 

“Software Engineering”. These methodologies are the part of S.D.L.C. method

System Development Life Cycle Method. The methodologies are as listed below: -

1. Waterfall Model.

2. Iterative Waterfall Model.

3. Prototype Model.

4. Spiral Model.

5. Evolutionary Model.

Out of these we have used prototype model for developing

communication system project.

First of all we have worked with the “Prototype Model “. In prototype

Model we have to develop small part of the project and the show them to the client

and if any problem occurs then rebuilt it. Also until the client is being satisfied we

have to work on the same.

Thus we can say that for this software project we have gone through two

S.D.L.C. Methods “Prototype Model.

Page 20: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 20/84

SYSTEM PLANNING

In the phase of “System Planning” we have to do time scheduling for the

requested project. The popular methods to do the time scheduling are.

Gantt Chart

PERT Chart

We have done time scheduling using this both methods are as given in this

documentation.

1. Gantt Charts

Gantt Charts are useful for scheduling budgeting & resource planning. A

Gantt chart is a special type of bar chart where each bar represents as activity. These bars are drawn along a time line. The length of each bar is proportional to the duration

of time planned of time planned for the corresponding activity.

July 30 Aug 10 Aug 20 Sep10 Oct 2 Oct 20

Specification

Design Database Part

Design GUI

Part

Code GUI Part

Code

Database Part

Integrate &

Testing

Documentation

- Estimated Time - Slack / Latest Time

Page 21: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 21/84

2. PERT Chants

Pert charts consist of network of boxes an arrow. The boxes represent activities

& the arrow represents task dependencies. PERT charts are a more sophisticated from

of activity chart, where instead of making a single estimate for each task; pessimistic

likely & optimistic estimates are mode.

Aug 10-Aug 20 Aug 20-Sep 10

July 30

Aug 10-Aug 20 Sep 10-Oct 2 Oct 2-Oct 20

Design

Database

Part

Code

Database

Part

Design

GUI Part

Code GUI

Part

Write

Documentation

SpecificationFinish

Page 22: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 22/84

DETAIL OF SOFTWARE USED

We have developed this software project with use of,

Visual Basic 6.0 Oracle 9i

We have used “Visual Basic 6.0 “as a front – end application and Oracle 9i as

Back – end application. Let us see about all these aspect in details.

Visual Basic 6.0

Visual Basic 6.0 is mainly used for application programming for

“Microsoft Windows“. It provides GUI, for building the application software.

The basic refers to the basic language “Visual Basic “is developed from

“Basic” Language. The latest version of V.B. is V.B. Net. V.B. provides facilities to

connect any database like Oracle 9i, SQL Server, and many more application and used

as front – end. It also supports various Active-X controls, and gives facility to develop

our own Active-X controls.

Oracle 9i

In 1979 a ting “Silicon Valley Company” introduced “Oracle”, the first commercial

relational database incorporating the SQL data access language. Today “Oracle” is word’s

largest supplier of database management systems and associated produces (TheCollection of tools, utilities and application that “Constituent the Oracle RDBMS helps

you to manipulate an Oracle database).

“Oracle 9i” release in 2001 has extended its capabilities, the fields as well as database

limits. It also provides the facilities for the auto user area expands which decrease the space

management task of the DBA. Now available “Oracle 11i” which is more advanced version

in Oracle Lab.

1. Database & Information Management: - 

Database management software is the key to solving the problem of information

management. In general a database management system (DBM) must be able to reliably

manage a large amount of data in a multi user environment so that many users can

concurrently access the same data. All this must be accomplished while developing high

 performance to the users to the database. A DBMS must also be secure from unauthorized

access and provide efficient solution fro failure recovery.

The “Oracle Server” provides efficient and effective solution for major 

database features.

Page 23: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 23/84

2. Manageable Security: - 

To project against unauthorized database access and use, “Oracle” Provides

failsafe security to limit and monitor data access. These features make it easy to manage even

the most complex design for data access.

3. Client / Server (Distributed processing environment)To take full advantage of a given computer system or networks, “Oracle” allows

 processing to be split between the database server and the client application programs. All

responsibility or shared data management can be processed by the computer running the

database system while the workstation running the database applications concentrate on the

interpretation and display of data

Why Microsoft Visual Basic 6.0 is used for this project ?

Visual Basic syntax is identically suited for the producing the windows

application. Ms-word, Ms – Access and Ms – PowerPoint all share VB for theapplication and exact same language syntax in VB 6.0.

VB continues the tradition of simple powerful and easy to learn the

 programming language yet adds enough extended capabilities to satisfy the most jaded

developer.

Several significant facts contributes to VB has bright bring future.

First is VB 6.0 huge product. Million of developers of all skills levels are

 producing application with Visual Basic.

Second thing is VB is more powerful development system. It contains built – in

  – function and subroutines for dozens of different common tasks. In the

addition to its intrinsic features VB provides the capability to custom

libraries and object that can be leaded at run the distributable

application.

Third VB is also well supported by the third party products just like oracle.

Finally, VB is a Microsoft product and Microsoft is independently the largest

software company in the world.

For all these and many more Visual Basic is independently the most attractive

development environment currently available.

In contrast to the absolute system of the past, VB has an undesirable bright and

shining future.

Page 24: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 24/84

  DATA BASE INFORMATION

CONTACT MASTER 

NAME TYPE CONATRAINS

CONTACT_ID VARCHAR2(10) NOT NULL

FIRST_NAME VARCHAR2(10)

LAST_NAME VARCHAR2(10)

ADDRESS VARCHAR2(50)

CITY VARCHAR2(20)

PIN_CODE NUMBER  

COMP_NAME VARCHAR2(30)

STATE VARCHAR2(20)COUNTRY VARCHAR2(10)

PHONE_NO NUMBER  

MOBILE_NO NUMBER  

CUSTOMER MASTER 

NAME TYPE CONATRAINS

CUST_ID VARCHAR2(10) NOT NULL

COMP_NAME VARCHAR2(20)

FIRST_NAME VARCHAR2(10)

LAST_NAME VARCHAR2(10)

ADDRESS VARCHAR2(50)

CITY VARCHAR2(10)

COUNTRY VARCHAR2(20)

PIN_CODE NUMBER  

PHONE_NO NUMBER  

CONTACT_TITLE VARCHAR2(20)

MOBILE_NO NUMBER 

EMAIL_ADD VARCHAR2(50)

FAX_NO NUMBER  

Page 25: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 25/84

DELIVERY MASTER 

NAME TYPE CONATRAINSDELI_ID VARCHAR2(10) NOT NULL

CUST_ID VARCHAR2(10) NOT NULL

EMP_ID VARCHAR2(10) NOT NULL

DESTI_ADD VARCHAR2(50)

DEST_CITY VARCHAR2(10)

DEST_STATE VARCHAR2(10)

DEST_PIN NUMBER 

DEST_COUNTRY VARCHAR2(10)

ARRIVAL_DATE DATECURR_LOCATION VARCHAR2(10)

PACK_DIME VARCHAR2(10)

PACK_WEIGHT NUMBER 

PICK_LOCA VARCHAR2(10)

PICK_DATE DATE

PICK_TIME VARCHAR2(10)

RECEIVEDBY VARCHAR2(10)

FREIGHT_CHARGE VARCHAR2(10)

NOTES VARCHAR2(50)

PRODUCT NUMBER 

NAME TYPE CONATRAINS

PROD_ID VARCHAR2(10) NOT NULLPROD_NAME VARCHAR2(10)

CATE_ID VARCHAR2(10) NOT NULL

SERIAL_NO NUMBER 

PROD_DESC VARCHAR2(50)

UNIT_STOCK NUMBER 

UNIT_ORDER NUMBER 

UNIT_PRICE NUMBER  

LEAD_TIME VARCHAR2(10)

Page 26: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 26/84

USER MASTER 

NAME TYPE CONATRAINS

USER NAME VARCHAR2(10)USER PASSWORD NUMER  

CUSTOMER ORDER MASTER 

NAME TYPE CONATRAINS

ORDER _ID VARCHAR2(10) NOT NULL

CUST_ID VARCHAR2(10) NOT NULL

EMPL_ID VARCHAR2(10) NOT NULL

ORDER _DATE DATEPHONE_NO NUMBER  

REQUIRE_DATE DATE

SHIP_NAME VARCHAR2(10)

SHIP_ADD VARCHAR2(50)

SHIP_COUNTRY VARCHAR2(10)

SHIP_CITY VARCHAR2(10)

SHIP_STATE VARCHAR2(10)

SHIP_DATE DATE

SALES_TAX NUMBER  

CATEGORY MASTER 

NAME TYPE CONATRAINS

CATE_ID NUMBER NOT NULLCATE_NAME VARCHAR2(10)

Page 27: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 27/84

Page 28: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 28/84

Page 29: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 29/84

Private Sub Label2_Click ()

Unload Me

frmLogin.Show

End Sub

‘Private Sub Timer1_Timer ()

'If Label1.Visible = False Then‘Label1.Visible = True

'Else

‘Label1.Visible = False

'End If 

'End Sub

Private Sub Form_Resize ()

Image1.Top = 0

Image1.Left = 0

Image1.Height = Me. Height

Image1.Width = Me. WidthEnd Sub

Page 30: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 30/84

Option Explicit

Dim rs As New ADODB.Recordset

Dim I as Integer 

Private Sub cmdcancel_Click ()

End

End Sub

Private Sub cmdCancel_MouseMove (Button As Integer, Shift as Integer,

X As Single, Y as Single)

cmdCancel.BackColor = RGB (Rnd * 255, Rnd * 255, Rnd * 255)

End Sub

Private Sub cmdchange_Click ()

CHANGE. Show

End Sub

Private Sub cmdchange_MouseMove (Button As Integer, Shift as Integer,

X As Single, Y as Single)

cmdchange.BackColor = RGB (Rnd * 255, Rnd * 255, Rnd * 255)

End Sub

Page 31: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 31/84

Private Sub cmdok_Click ()rs.MoveFirst

'rs.Find "User_name = '" & txtUserName.Text & "'"

 

For I = 0 to rs.RecordCount - 1

If LCase(rs (0)) = LCase(txtUserName.Text) Then

If LCase (rs (1)) = LCase (txtPassword.Text) Then

If rs (2) = "administrator" Then

MsgBox "Logged in successfully"

TYPES. Showrs.Close

Unload Me

Exit Sub

Else

MsgBox "Logged in successfully"

TYPES.Show

rs.Close

Unload Me

Exit Sub

End If 

Else

MsgBox "username or password not found"

End If 

Else

rs.MoveNext

If rs.EOF = True Then

MsgBox "User not found"

Exit Sub

End If End If 

Next I

End Sub

Page 32: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 32/84

Private Sub cmdok_MouseMove (Button As Integer, Shift as Integer, X As

Single, Y as Single)

cmdOK.BackColor = RGB (Rnd * 255, Rnd * 255, Rnd * 255)

End Sub

Private Sub Form Activate ()

rs.Open "select * from lodin", Cnn, adOpenKeyset, adLockOptimistic

If rs.BOF = True Then

‘MsgBox "no records"

'End

End If 

End Sub

Page 33: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 33/84

Dim rs As New ADODB.Recordset

Private Sub cmdok_Click()

If txtolduser.Text = "" Or txtnewpass.Text = "" Then

MsgBox "can't leave field empty"txtolduser.SetFocus

Else

For I = 0 To rs.RecordCount - 1

If txtolduser.Text = rs(0) Then

rs(1) = txtnewpass.Text

rs.Update

rs.Close

Set rs = Nothing

MsgBox "successfully"Unload Me

  Exit Sub

  Else

rs.MoveNext

If rs.EOF = True Then

MsgBox "username not found"

End If 

End If 

Next I

End If 

End Sub

Page 34: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 34/84

Private Sub Form_Load()

rs.Open "select * from login", Cnn, adOpenKeyset, adLockOptimistic

rs.MoveFirstEnd Sub

Private Sub Form_Resize()

Image1.Top = 0

Image1.Left = 0

Image1.Height = Me.Height

Image1.Width = Me.Width

End Sub

Page 35: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 35/84

Private Sub Cmdnonstandard_Click()

Nonstandard. Show

Unload Me

End Sub

Private Sub Cmdstandard_Click ()

Unload Me

SUBTYPES.Show

End Sub

Private Sub Form_Resize ()

Image1.Top = 0

Image1.Left = 0

Image1.Height = Me.Height

Image1.Width = Me.Width

End Sub

Page 36: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 36/84

Private Sub Label1_Click()

STANDARD.Show

End Sub

Private Sub Label2_Click()

STANDARD.ShowEnd Sub

Private Sub Label3_Click()

STANDARD.Show

End Sub

Private Sub Label4_Click()STANDARD.Show

End Sub

Private Sub Label5_Click()

Unload Me

End Sub

Private Sub Label6_Click()

STANDARD.Show

End Sub

Page 37: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 37/84

 

Page 38: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 38/84

Private Sub CATE_Click()

cate_mast.Show

End Sub

Private Sub contact_Click()

cont_mast.Show

End Sub

Private Sub cust_Click()

cust_mast.Show

End Sub

Private Sub delivery_Click()deli_mast.Show

End Sub

Private Sub exit_Click ()

Unload Me

End Sub

Private Sub order_Click()

order_mast1.ShowEnd Sub

Private Sub product_Click()

 product_mast.ShowEnd Sub

Page 39: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 39/84

 

Page 40: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 40/84

Dim add As Boolean

Private Sub cmdadd_Click() 

If cmdadd.Caption = "&Add" Then

ena_control True

cmdadd.Caption = "&Save"

clear_text

 

Else

If check_empty = True Then

MsgBox "Incomplete Entry"Exit Sub

 

End If 

 

If cmdadd.Caption = "&Save" Then rs_cust_mast.AddNew

text_to_db

rs_cust_mast.Update

cmdadd.Caption = "&Add"

MsgBox "Saved Successfully"

ena_control False 

End If 

End Sub

Private Sub cmdcancel_Click()

 

If rs_cust_mast.RecordCount > 0 Then db_to_text

cmdadd.Caption = "&Add"ena_control False

 

End Sub

Page 41: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 41/84

Private Sub cmddelete_Click ()

If rs_cust_mast.RecordCount > 0 Then

rs_cust_mast.Delete

rs_cust_mast.MoveNext

If rs_cust_mast.EOF Thenrs_cust_mast.MovePrevious

If rs_cust_mast.BOF Then

MsgBox "Last record"

clear_text

 

Exit Sub

 

End If 

 End If 

db_to_text

Else

 

MsgBox "Not Found Any Record"

End If 

 End Sub

Private Sub Cmdedit_Click()

If rs_cust_mast.RecordCount > 0 Then

cmdadd.Caption = "&Update"

ena_control True

 

Else

 MsgBox "No current record"

 

End If 

 

End Sub

Page 42: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 42/84

Private Sub cmdexit_Click ()

Unload Me

End Sub

Private Sub cmdexit_MouseMove (Button As Integer, Shift As Integer, XAs Single, Y As Single)

cmdexit.BackColor = vbRed

End Sub

Private Sub cmdfirst_Click ()

If rs_cust_mast.RecordCount > 0 Then

rs_cust_mast.MoveFirst

db_to_text

 Else

clear_text

MsgBox "No record"

 

End If 

End Sub

Private Sub cmdlast_Click()

If rs_cust_mast.RecordCount > 0 Then

rs_cust_mast.MoveLast

db_to_text 

Else

 

clear_text

MsgBox "No record"

 End If 

End Sub

Page 43: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 43/84

Private Sub cmdnext_Click ()

If rs_cust_mast.RecordCount > 0 Then

rs_cust_mast.MoveNext

If rs_cust_mast.EOF Thenrs_cust_mast.MoveLast

MsgBox "Last Record"

End If 

db_to_text

 

Else

 

clear_text

MsgBox "No record"End If 

End Sub

Private Sub cmdprevious_Click()

If rs_cust_mast.RecordCount > 0 Then

rs_cust_mast.MovePrevious

If rs_cust_mast.BOF Then

rs_cust_mast.MoveFirst

MsgBox "First Record"

 End If 

db_to_text

 

Else

clear_text

MsgBox "No record"

End If 

End Sub

Page 44: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 44/84

Sub db_to_text ()

txtid.Text = rs_cust_mast (0)

txtco_name.Text = rs_cust_mast(1)

txtfirst_name.Text = rs_cust_mast (2)txtlast_name.Text = rs_cust_mast (3)

txtbui_addr.Text = rs_cust_mast (4)

txtcity.Text = rs_cust_mast (5)

txtpincode.Text = rs_cust_mast (6)

txtcountry.Text = rs_cust_mast (7)

txtcontact_title.Text = rs_cust_mast (8)

txtphone_no.Text = rs_cust_mast (9)

txtmobile_no.Text = rs_cust_mast (10)

txtfax_no.Text = rs_cust_mast (11)txtemail_addr.Text = rs_cust_mast (12)

End Sub

Sub clear_text ()

Dim ele

For Each ele In Me. Controls

If TypeOf ele Is Textbox Then ele.Text = ""

 

 NextEnd Sub

Sub text_to_db ()

rs_cust_mast (0) = Val(txtid.Text)

rs_cust_mast (1) = txtco_name.Text

rs_cust_mast(2) = txtfirst_name.Text

rs_cust_mast(3) = txtlast_name.Text

rs_cust_mast(4) = txtbui_addr.Text

rs_cust_mast(5) = txtcity.Textrs_cust_mast(6) = txtcountry.Text

rs_cust_mast (7) = txtpincode.Text

rs_cust_mast (8) = txtcontact_title.Text

rs_cust_mast (9) = txtphone_no.Text

rs_cust_mast (10) = txtemail_addr.Text

rs_cust_mast (11) = txtmobile_no.Text

rs_cust_mast (12) = Val (txtfax_no.Text)

 

End Sub

Page 45: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 45/84

Private Sub Form_Load()

If rs_cust_mast.RecordCount > 0 Then cmdfirst_Click 

Ena_control False

End Sub

Sub ena_control (flag As Boolean)

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then ele.Enabled = flag

If TypeOf ele Is CommandButton Then ele.Enabled = Not flag

If ele.Tag = "enable" Then ele.Enabled = True

   Next

 

End Sub

Function check_empty() As Boolean

 

Dim ele

For Each ele In Me.Controls

If TypeOf ele is TextBox Then

If ele.Tag <> "not" And Trim(ele.Text) = "" Then

ele.SetFocus

check_empty = True

Exit Function

End If 

End If 

Next

check_empty = False

End Function

Private Sub Form_Resize()

Image1.Top = 0

Image1.Left = 0

Image1.Height = Me.Height

Image1.Width = Me.Width

End Sub

Page 46: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 46/84

Private Sub Image1_MouseMove (Button As Integer, Shift as Integer, X As

Single, Y as Single)

cmdexit.BackColor = RGB (200, 200, 200)End Sub

Private Sub txtemail_addr_Change ()

End Sub

Page 47: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 47/84

 

Page 48: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 48/84

Dim add As Boolean

Private Sub cmdadd_Click()

 

If cmdadd.Caption = "&Add" Then

ena_control True

cmdadd.Caption = "&Save"

clear_text

Else

 

If check_empty = True ThenMsgBox "Incomplete Entry"

Exit Sub

 

End If 

 

If cmdadd.Caption = "&Save" Then rs_cate_mast.AddNew

text_to_db

rs_cate_mast.Update

cmdadd.Caption = "&Add"

MsgBox "Saved Sucesfully"

ena_control False

  End If 

End Sub

Private Sub cmdcancel_Click()

 

If rs_cate_mast.RecordCount > 0 Then db_to_text

cmdadd.Caption = "&Add"

ena_control False 

End Sub

Page 49: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 49/84

Private Sub cmddelete_Click ()

If rs_cate_mast.RecordCount > 0 Then

rs_cate_mast.Deleters_cate_mast.MoveNext

If rs_cate_mast.EOF Then

rs_cate_mast.MovePrevious

If rs_cate_mast.BOF Then

MsgBox "Last record"

clear_text

Exit Sub

End If 

End If db_to_text

Else

 

MsgBox "Not Found Any Record"

End If 

 

End Sub

Private Sub Cmdedit_Click()

 

If rs_cate_mast.RecordCount > 0 Then

cmdadd.Caption = "&Update"

ena_control True

  Else

 

MsgBox "No current record"

 End If 

 

End Sub

Private Sub cmdexit_Click()

 

Unload Me

End Sub

Page 50: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 50/84

Private Sub cmdfirst_Click()

If rs_cate_mast.RecordCount > 0 Then

rs_cate_mast.MoveFirst

db_to_text 

Else

 

clear_text

MsgBox "No record"

 

End If 

End Sub

Private Sub cmdlast_Click ()

If rs_cate_mast.RecordCount > 0 Then

rs_cate_mast.MoveLast

db_to_text

 

Else

 

clear_text

MsgBox "No record"

End If 

End Sub

Private Sub cmdnext_Click()

If rs_cate_mast.RecordCount > 0 Then

rs_cate_mast.MoveNextIf rs_cate_mast.EOF Then

rs_cate_mast.MoveLast

MsgBox "Last Record"

End If 

db_to_text

Else

clear_text

MsgBox "No record"

End If 

End Sub

Page 51: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 51/84

Private Sub cmdprevious_Click()

If rs_cate_mast.RecordCount > 0 Then

rs_cate_mast.MovePrevious

If rs_cate_mast.BOF Thenrs_cate_mast.MoveFirst

MsgBox "First Record"

 

End If 

 

db_to_text

 

Else

 clear_text

MsgBox "No record"

End If 

End Sub

Sub db_to_text ()

txtcate_id.Text = rs_cate_mast (0)

txtcate_name.Text = rs_cate_mast(1)

End Sub

Sub clear_text ()

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then ele.Text = ""

 

 NextEnd Sub

Sub text_to_db ()

rs_cate_mast (0) = txtcate_id.Text

rs_cate_mast (1) = txtcate_name.Text

End Sub

Private Sub Command1_Click ()

Unload MeEnd Sub

 

Page 52: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 52/84

Private Sub Form_Load ()

If rs_cate_mast.RecordCount > 0 Then cmdfirst_Click 

ena_control False

End Sub

Sub ena_control (flag As Boolean)

 

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then ele.Enabled = flag

If TypeOf ele Is CommandButton Then ele.Enabled = Not flag

If ele.Tag = "enable" Then ele.Enabled = True 

 Next

 

End Sub

Function check_empty() As Boolean

 

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then

If ele.Tag <> "not" And Trim(ele.Text) = "" Then

ele.SetFocus

check_empty = True

Exit Function

End If 

End If 

Next

check_empty = False

End Function

Private Sub Form_Resize ()

Image1.Top = 0

Image1.Left = 0

Image1.Height = Me.Height

Image1.Width = Me.WidthEnd Sub

Page 53: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 53/84

 

Page 54: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 54/84

Dim add As Boolean

Private Sub cmdadd_Click () 

If cmdadd.Caption = "&Add" Then

ena_control True

cmdadd.Caption = "&Save"

clear_text

Else

 

If check_empty = True Then

MsgBox "Incomplete Entry" 

Exit Sub

End If 

 

If cmdadd.Caption = "&Save" Then rs_cont_mast.AddNew

 

text_to_db

rs_cont_mast.Update

cmdadd.Caption = "&Add"

MsgBox "Saved Sucesfully"

ena_control False

End If End Sub

Private Sub cmdcancel_Click ()

If rs_cont_mast.RecordCount > 0 Then db_to_text

cmdadd.Caption = "&Add"

ena_control False

 

End Sub

Page 55: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 55/84

Private Sub cmddelete_Click ()

If rs_cont_mast.RecordCount > 0 Then

rs_cont_mast.Delete

rs_cont_mast.MoveNextIf rs_cont_mast.EOF Then

rs_cont_mast.MovePrevious

If rs_cont_mast.BOF Then

MsgBox "Last record"

clear_text

  Exit Sub

 

End If 

 End If 

db_to_text

Else

MsgBox "Not Found Any Record"

End If 

 

End Sub

Private Sub Cmdedit_Click()

If rs_cont_mast.RecordCount > 0 Then

cmdadd.Caption = "&Update"

ena_control TrueElse

 

MsgBox "No current record"

End If 

 

End Sub

Private Sub cmdexit_Click()

Unload Me

End Sub

Page 56: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 56/84

Private Sub cmdfirst_Click ()

If rs_cont_mast.RecordCount > 0 Then

rs_cont_mast.MoveFirst

db_to_text 

Else

clear_text

MsgBox "No record"

  End If 

End Sub

Private Sub cmdlast_Click()If rs_cont_mast.RecordCount > 0 Then

rs_cont_mast.MoveLast

db_to_text

Else

 

clear_text

MsgBox "No record"

 

End If 

End Sub

Private Sub cmdnext_Click ()

If rs_cont_mast.RecordCount > 0 Then

rs_cont_mast.MoveNext

If rs_cont_mast.EOF Then

rs_cont_mast.MoveLast

MsgBox "Last Record"End If 

 

db_to_text

 

Else

clear_text

MsgBox "No record"

End If 

End Sub

Page 57: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 57/84

Private Sub cmdprevious_Click()

If rs_cont_mast.RecordCount > 0 Then

rs_cont_mast.MovePrevious

If rs_cont_mast.BOF Thenrs_cont_mast.MoveFirst

MsgBox "First Record"

 

End If 

db_to_text

 

Else

  clear_text

MsgBox "No record"

End If 

End Sub

Sub db_to_text()

 

txtcon_id.Text = rs_cont_mast(0)

txtfn.Text = rs_cont_mast (1)

txtln.Text = rs_cont_mast(2)

txtaddr.Text = rs_cont_mast (3)

txtcity.Text = rs_cont_mast(4)

txtstate.Text = rs_cont_mast(5)

txtpin_code.Text = rs_cont_mast(6)

txtcountry.Text = rs_cont_mast(7)

txtcom_name.Text = rs_cont_mast(8)

txtphone_no.Text = rs_cont_mast(9)

txtmobileno.Text = rs_cont_mast(10)

  End Sub

Sub clear_text ()

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then ele.Text = ""

 

 Next

End Sub

Page 58: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 58/84

Sub text_to_db ()

 

rs_cont_mast (0) = txtcon_id.Text

rs_cont_mast (1) = txtfn.Textrs_cont_mast (2) = txtln.Text

rs_cont_mast (3) = txtaddr.Text

rs_cont_mast (4) = txtcity.Text

rs_cont_mast (5) = txtstate.Text

rs_cont_mast (6) = txtpin_code.Text

rs_cont_mast (7) = txtcountry.Text

rs_cont_mast (8) = txtcom_name.Text

rs_cont_mast (9) = txtphone_no.Text

rs_cont_mast (10) = txtmobile.TextEnd Sub

Private Sub Command1_Click()

Unload Me

End Sub

Private Sub Form_Load()

If rs_cont_mast.RecordCount > 0 Then cmdfirst_Click 

ena_control FalseEnd Sub

Sub ena_control(flag As Boolean)

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then ele.Enabled = flag

If TypeOf ele Is CommandButton Then ele.Enabled = Not flag

If ele.Tag = "enable" Then ele.Enabled = True

 

 Next 

End Sub

Page 59: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 59/84

Function check_empty () as Boolean

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox ThenIf ele.Tag <> "not" And Trim(ele.Text) = "" Then

ele.SetFocus

MsgBox ele.TabIndex

check_empty = True

Exit Function

End If 

End If 

Next

check_empty = FalseEnd Function

Private Sub Form_Resize()

Image1.Top = 0

Image1.Left = 0

Image1.Height = Me.Height

Image1.Width = Me.Width

End Sub

Page 60: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 60/84

Page 61: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 61/84

Dim add As Boolean

Private Sub cmdexit_Click ()

Unload MeEnd Sub

Private Sub cmdadd_Click ()

If cmdadd.Caption = "&Add" Then

Ena_control True

cmdadd.Caption = "&Save"

clear_text

  Else

If check_empty = True ThenMsgBox "Incomplete Entry"

Exit Sub

End If 

If cmdadd.Caption = "&Save" Then rs_cust_mast.AddNew

 

text_to_db

rs_deli_mast.Update

cmdadd.Caption = "&Add"

MsgBox "Saved Sucesfully"

ena_control FalseEnd If 

End Sub

Private Sub cmdcancel_Click ()

If rs_deli_mast.RecordCount > 0 Then db_to_text

cmdadd.Caption = "&Add"

Ena_control False

 

End Sub

Page 62: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 62/84

Private Sub cmddelete_Click ()

If rs_deli_mast.RecordCount > 0 Then

rs_deli_mast.Deleters_deli_mast.MoveNext

If rs_deli_mast.EOF Then

rs_deli_mast.MovePrevious

If rs_deli_mast.BOF Then

MsgBox "Last record"

clear_text

  Exit Sub

  End If 

End If  

db_to_text

Else

MsgBox "Not Found Any Record"

End If 

End Sub

Private Sub Cmdedit_Click ()

 

If rs_deli_mast.RecordCount > 0 Then

cmdadd.Caption = "&Update"

Ena_control True

  Else

MsgBox "No current record"

End If 

 

End Sub

Private Sub cmdfirst_Click ()

If rs_deli_mast.RecordCount > 0 Then

rs_deli_mast.MoveFirst

db_to_text

  Else

clear_text

MsgBox "No record"

End If End Sub

Page 63: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 63/84

Private Sub cmdlast_Click ()

If rs_cust_mast.RecordCount > 0 Then

rs_cust_mast.MoveLast

db_to_text

Elseclear_text

MsgBox "No record"

End If 

End Sub

Private Sub cmdnext_Click ()

If rs_deli_mast.RecordCount > 0 Then

rs_deli_mast.MoveNext

If rs_deli_mast.EOF Thenrs_deli_mast.MoveLast

MsgBox "Last Record"

End If 

db_to_text

Else

clear_text

MsgBox "No record"

End If 

End Sub

Private Sub cmdprevious_Click ()

If rs_deli_mast.RecordCount > 0 Then

rs_deli_mast.MovePrevious

If rs_deli_mast.BOF Then

rs_deli_mast.MoveFirst

MsgBox "First Record"

End If 

db_to_text  Else

clear_text

MsgBox "No record"

End If 

End Sub

Page 64: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 64/84

Sub db_to_text ()

 

txtdeli_id.Text = rs_deli_mast (0)

txtorder_id.Text = rs_deli_mast (1)

txtemployee_id.Text = rs_deli_mast (2)txtcust_id.Text = rs_deli_mast (3)

txtdes_city.Text = rs_deli_mast (4)

txtdes_state.Text = rs_deli_mast (5)

txtdes_add.Text = rs_deli_mast (6)

txtdes_coun.Text = rs_deli_mast (7)

txtarr_date.Text = rs_deli_mast (8)

txtpin_code.Text = rs_deli_mast (9)

txtpack_dime.Text = rs_deli_mast (10)

txtpack_weight.Text = rs_deli_mast (11)txtcurr_loca.Text = rs_deli_mast (12)

txtpick_date.Text = rs_deli_mast (13)

txtrece_by.Text = rs_deli_mast (14)

txtpick_loca.Text = rs_deli_mast (15)

txtfre_charge.Text = rs_deli_mast (16)

txtnotes.Text = rs_deli_mast (17)

End Sub

Sub clear_text ()

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then ele.Text = ""

 

 Next

End Sub

Sub text_to_db ()

rs_deli_mast (0) = txtdeli_id.Text

rs_deli_mast (1) = txtorder_id.Text

rs_deli_mast (2) = txtemployee_id.Text

rs_deli_mast (3) = txtcust_id.Text

rs_deli_mast (4) = txtdes_city.Text

rs_deli_mast (5) = txtdes_state.Text

rs_deli_mast (6) = txtdes_add.Text

rs_deli_mast (7) = txtdes_coun.Text 

Page 65: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 65/84

 

rs_deli_mast (8) = txtarr_date.Text

rs_deli_mast (9) = txtpin_code.Text

rs_deli_mast (10) = txtpack_dime.Text

rs_deli_mast (11) = txtpack_weight.Text

rs_deli_mast (12) = txtcurr_loca.Textrs_deli_mast (13) = txtpick_date.Text

rs_deli_mast (14) = txtrece_by.Text

rs_deli_mast (15) = txtpick_loca.Text

rs_deli_mast (16) = txtfre_charge.Text

rs_deli_mast (17) = txtnotes.Text

 

End Sub

Private Sub Form_Load ()

If rs_deli_mast.RecordCount > 0 Then cmdfirst_Click 

Ena_control False

End Sub

Sub ena_control (flag As Boolean)

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then ele.Enabled = flag

If TypeOf ele Is CommandButton Then ele.Enabled = Not flag

If ele.Tag = "enable" Then ele.Enabled = True

 Next

 

End Sub

Function check_empty () as Boolean

Dim ele

For Each ele In Me.ControlsIf TypeOf ele Is TextBox Then

If ele.Tag <> "not" And Trim (ele.Text) = "" Then

ele.SetFocus

check_empty = True

Exit Function

End If 

End If 

Next

check_empty = FalseEnd Function

Page 66: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 66/84

 

Page 67: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 67/84

Dim add As Boolean

Private Sub cmdexit_Click ()Unload Me

End Sub

Private Sub cmdadd_Click ()

If cmdadd.Caption = "&Add" Then

Ena_control True

cmdadd.Caption = "&Save"

clear_text

ElseIf check_empty = True Then

MsgBox "Incomplete Entry"

Exit Sub

  End If 

If cmdadd.Caption = "&Save" Then rs_order_mast1.AddNew

 

text_to_db

rs_order_mast1.Update

cmdadd.Caption = "&Add"

MsgBox "Saved Sucesfully"

Ena_control FalseEnd If 

End Sub

Private Sub cmdcancel_Click()

If rs_order_mast1.RecordCount > 0 Then db_to_text

cmdadd.Caption = "&Add"

ena_control False

 End Sub

Private Sub cmddelete_Click ()

If rs_order_mast1.RecordCount > 0 Then

rs_order_mast1.Delete

rs_order_mast1.MoveNext

 

Page 68: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 68/84

If rs_order_mast1.EOF Then

rs_order_mast1.MovePrevious

If rs_order_mast1.BOF Then

MsgBox "Last record"

clear_textExit Sub

End If 

End If 

db_to_text

Else

MsgBox "Not Found Any Record"

End If 

End Sub

Private Sub Cmdedit_Click()

If rs_order_mast1.RecordCount > 0 Then

cmdadd.Caption = "&Update"

ena_control True

Else

MsgBox "No current record"

End If 

 End Sub

Private Sub cmdfirst_Click()

If rs_order_mast1.RecordCount > 0 Then

rs_order_mast1.MoveFirst

db_to_text

Else

clear_text

MsgBox "No record"End If 

End Sub

Private Sub cmdlast_Click ()

If rs_order_mast1.RecordCount > 0 Then

rs_order_mast1.MoveLast

db_to_text

Else

clear_text

MsgBox "No record"End If 

End Sub

Page 69: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 69/84

Private Sub cmdnext_Click ()

If rs_order_mast1.RecordCount > 0 Then

rs_order_mast1.MoveNext

If rs_order_mast1.EOF Then

rs_order_mast1.MoveLastMsgBox "Last Record"

  End If 

db_to_text

Else

clear_text

MsgBox "No record"

End If 

End Sub

Private Sub cmdprevious_Click ()

If rs_order_mast1.RecordCount > 0 Then

rs_order_mast1.MovePrevious

If rs_order_mast1.BOF Then

rs_order_mast1.MoveFirst

MsgBox "Last Record"

End If 

db_to_textElse

clear_text

MsgBox "No record"End If 

End Sub

Sub db_to_text ()

txtorder_id.Text = rs_order_mast1 (0)

txtcust_id.Text = rs_order_mast1 (1)

txtemp_id.Text = rs_order_mast1 (2)txtorder_date.Text = rs_order_mast1 (3)

txtphone_no.Text = rs_order_mast1 (4)

txtrequire_date.Text = rs_order_mast1(5)

txtship_name.Text = rs_order_mast1 (6)

txtship_add.Text = rs_order_mast1 (7)

txtship_country.Text = rs_order_mast1 (8)

txtship_city.Text = rs_order_mast1 (9)

txtship_state.Text = rs_order_mast1 (10)

txtship_date.Text = rs_order_mast1 (11)txtsales_tax.Text = rs_order_mast1 (12)

End Sub

Page 70: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 70/84

Sub clear_text ()

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then ele.Text = ""

  Next

End Sub

Sub text_to_db ()

 

rs_order_mast1(0) = txtorder_id.Text

rs_order_mast1 (1) = txtcust_id.Text

rs_order_mast1 (2) = txtemp_id.Text

rs_order_mast1 (3) = Format (txtorder_date.Text, "mm/dd/yy")rs_order_mast1 (4) = txtphone_no.Text

rs_order_mast1 (5) = Format (txtrequire_date.Text, "mm/dd/yy")

rs_order_mast1 (6) = txtship_name.Text

rs_order_mast1 (7) = txtship_add.Text

rs_order_mast1 (8) = txtship_country.Text

rs_order_mast1 (9) = txtship_city.Text

rs_order_mast1 (10) = txtship_state.Text

rs_order_mast1 (11) = Format (txtship_date.Text, "mm/dd/yy")

rs_order_mast1 (12) = txtsales_tax.TextEnd Sub

Private Sub Command1_Click ()

Unload MeEnd Sub

Private Sub Form_Load ()

If rs_order_mast1.RecordCount > 0 Then cmdfirst_Click 

Ena_control FalseEnd Sub

Sub ena_control (flag As Boolean)

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then ele.Enabled = flag

If TypeOf ele Is CommandButton Then ele.Enabled = Not flag

If ele.Tag = "enable" Then ele.Enabled = True

NextEnd Sub

Page 71: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 71/84

Function check_empty () as Boolean

Dim ele

For Each ele In Me.Controls

If TypeOf ele is TextBox Then

If ele.Tag <> "not" And Trim (ele.Text) = "" Thenele.SetFocus

check_empty = True

Exit Function

End If 

End If 

Next

check_empty = False

End Function

Page 72: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 72/84

Page 73: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 73/84

Dim add As Boolean

Private Sub cmdadd_Click ()

If cmdadd.Caption = "&Add" Then

ena_control True

cmdadd.Caption = "&Save"

clear_text

Else

If check_empty = True Then

MsgBox "Incomplete Entry"

  Exit SubEnd If 

If cmdadd.Caption = "&Save" Then rs_cust_mast.AddNew

text_to_db

rs_prod_mast.Update

cmdadd.Caption = "&Add"

MsgBox "Saved Sucesfully"

ena_control False

End If 

End Sub

Private Sub cmdcancel_Click ()

If rs_prod_mast.RecordCount > 0 Then db_to_text

cmdadd.Caption = "&Add"

ena_control False

  End Sub

Private Sub cmddelete_Click ()

If rs_prod_mast.RecordCount > 0 Then

rs_prod_mast.Delete

rs_prod_mast.MoveNext

If rs_prod_mast.EOF Thenrs_prod_mast.MovePrevious

If rs_prod_mast.BOF Then

MsgBox "Last record"

clear_text

Exit Sub

End If 

End If 

db_to_text

ElseMsgBox "Not Found Any Record"

End If 

Page 74: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 74/84

  End Sub

Private Sub Cmdedit_Click ()

If rs_prod_mast.RecordCount > 0 Thencmdadd.Caption = "&Update"

Ena_control True

Else

MsgBox "No current record"

End If 

 

End Sub

Private Sub cmdexit_Click ()Unload Me

End Sub

Private Sub cmdfirst_Click ()

If rs_prod_mast.RecordCount > 0 Then

rs_prod_mast.MoveFirst

db_to_text

Else

clear_text

MsgBox "No record"End If 

End Sub

Private Sub cmdlast_Click()

If rs_prod_mast.RecordCount > 0 Then

rs_prod_mast.MoveLast

db_to_text

Else

clear_textMsgBox "No record"

End If 

End Sub

Page 75: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 75/84

Private Sub cmdnext_Click ()

If rs_prod_mast.RecordCount > 0 Then

rs_prod_mast.MoveNext

If rs_prod_mast.EOF Thenrs_prod_mast.MoveLast

MsgBox "Last Record"

End If 

db_to_text

Else

clear_text

MsgBox "No record"

End If 

End Sub

Private Sub cmdprevious_Click()

If rs_prod_mast.RecordCount > 0 Then

rs_prod_mast.MovePrevious

If rs_prod_mast.BOF Then

rs_prod_mast.MoveFirst

MsgBox "First Record"

End If 

db_to_textElse

clear_text

MsgBox "No record"End If 

End Sub

Sub db_to_text ()

txtprod_id.Text = rs_prod_mast (0)

txtprod_name.Text = rs_prod_mast (1)txtprod_desc.Text = rs_prod_mast (2)

txtcate_id.Text = rs_prod_mast(3)

txtsupp_id.Text = rs_prod_mast(4)

txtserial_no.Text = rs_prod_mast(5)

txtunit_stock.Text = rs_prod_mast(6)

txtunit_order.Text = rs_prod_mast(7)

txtunit_price.Text = rs_prod_mast(8)

txtlead_time.Text = rs_prod_mast(9)

End Sub

Page 76: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 76/84

Sub clear_text()

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then ele.Text = "" 

 Next

End Sub

Sub text_to_db ()

rs_prod_mast (0) = Val (txtprod_id.Text)

rs_prod_mast (1) = txtprod_name.Text

rs_prod_mast (2) = txtcate_id.Text

rs_prod_mast (3) = txtsupp_id.Textrs_prod_mast (4) = txtserial_no.Text

rs_prod_mast (5) = txtprod_desc.Text

rs_prod_mast (6) = txtunit_stock.Text

rs_prod_mast (7) = txtunit_order.Text

rs_prod_mast (8) = txtunit_price.Text

rs_prod_mast (9) = Format (txtlead_time.Text, "mm/dd/yy")

 

End Sub

Private Sub Command1_Click ()

Unload MeEnd Sub

Private Sub Form_Load ()

If rs_prod_mast.RecordCount > 0 Then cmdfirst_Click 

ena_control False

End Sub

Sub ena_control (flag As Boolean)Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then ele.Enabled = flag

If TypeOf ele Is CommandButton Then ele.Enabled = Not flag

If ele.Tag = "enable" Then ele.Enabled = True

 

 Next

 

End Sub

Page 77: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 77/84

Function check_empty () as Boolean

Dim ele

For Each ele In Me.Controls

If TypeOf ele is TextBox ThenIf ele.Tag <> "not" And Trim (ele.Text) = "" Then

ele.SetFocus

check_empty = True

Exit Function

End If 

End If 

Next

check_empty = False

End Function

Page 78: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 78/84

Page 79: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 79/84

 

Page 80: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 80/84

Dim add As Boolean

Private Sub cmdadd_Click ()

If cmdadd.Caption = "&Add" Thenena_control True

cmdadd.Caption = "&Save"

clear_text

Else

If check_empty = True Then

MsgBox "Incomplete Entry"

  Exit Sub

End If 

If cmdadd.Caption = "&Save" Then rs_detail_mast1.AddNew 

text_to_db

rs_detail_mast1 .Update

cmdadd.Caption = "&Add"

MsgBox "Saved Sucesfully"

ena_control False

End If 

End Sub

Private Sub cmdcancel_Click()

If rs_detail_mast1.RecordCount > 0 Then db_to_text

cmdadd.Caption = "&Add"

ena_control False

 

End Sub

Private Sub cmddelete_Click()

If rs_detail_mast1.RecordCount > 0 Thenrs_detail_mast1.Delete

rs_detail_mast1.MoveNext

If rs_detail_mast1.EOF Then

rs_detail_mast1.MovePrevious

If rs_detail_mast1.BOF Then

MsgBox "Last record"

clear_text

Exit Sub

End If End If 

db_to_text

Page 81: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 81/84

Else

MsgBox "Not Found Any Record"

End If 

 

End Sub

Private Sub Cmdedit_Click()

If rs_detail_mast1.RecordCount > 0 Then

cmdadd.Caption = "&Update"

ena_control True

Else

MsgBox "No current record"  End If 

 

End Sub

Private Sub cmdexit_Click()

Unload Me

End Sub

Private Sub cmdexit_MouseMove(Button As Integer, Shift As Integer, X

As Single, Y As Single)

cmdexit.BackColor = vbRedEnd Sub

Private Sub cmdfirst_Click()

If rs_detail_mast1.RecordCount > 0 Then

rs_detail_mast1.MoveFirst

db_to_text

Else

clear_textMsgBox "No record"

End If 

End Sub

Private Sub cmdlast_Click()

If rs_detail_mast1.RecordCount > 0 Then

rs_detail_mast1.MoveLast

db_to_text

  Elseclear_text

MsgBox "No record"

Page 82: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 82/84

End If 

End Sub

Private Sub cmdnext_Click ()

If rs_detail_mast1.RecordCount > 0 Then

rs_detail_mast1.MoveNextIf rs_detail_mast1.EOF Then

rs_detail_mast1.MoveLast

MsgBox "Last Record"

End If 

db_to_text

Else

clear_text

MsgBox "No record"

End If 

End Sub

Private Sub cmdprevious_Click ()

If rs_detail_mast1.RecordCount > 0 Then

rs_detail_mast1.MovePrevious

If rs_detail_mast1.BOF Then

rs_detail_mast1.MoveFirst

MsgBox "First Record"

End If 

db_to_text

Else

clear_text

MsgBox "No record"End If 

End Sub

Sub db_to_text ()

txtorder_id.Text = rs_detail_mast1 (0)txtprod_id.Text = rs_detail_mast1 (1)

txtdate_sold.Text = rs_detail_mast1 (2)

txtquantity.Text = rs_detail_mast1 (3)

txtunit_price.Text = rs_detail_mast1 (4)

txtdiscount.Text = rs_detail_mast1(5)

txtsale_price.Text = rs_detail_mast1(6)

txtsales_tax.Text = rs_detail_mast1(7)

End Sub

Page 83: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 83/84

Sub clear_text()

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then ele.Text = "" 

 Next

End Sub

Sub text_to_db ()

rs_detail_mast1 (0) = txtorder_id.Text

rs_detail_mast1 (1) = txtprod_id.Text

rs_detail_mast1 (2) = txtdate_sold.Text

rs_detail_mast1 (3) = txtquantity.Textrs_detail_mast1 (4) = txtunit_price.Text

rs_detail_mast1(5) = txtdiscount.Text

rs_detail_mast1(6) = txtsale_price.Text

rs_detail_mast1(7) = txtsales_tax.Text

 

End Sub

Private Sub Form_Load()

If rs_detail_mast1.RecordCount > 0 Then cmdfirst_Click 

ena_control False

End Sub

Sub ena_control(flag As Boolean)

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox Then ele.Enabled = flag

If TypeOf ele Is CommandButton Then ele.Enabled = Not flag

If ele.Tag = "enable" Then ele.Enabled = True

 

 Next 

End Sub

Page 84: STU Sss Project

8/8/2019 STU Sss Project

http://slidepdf.com/reader/full/stu-sss-project 84/84

Function check_empty() As Boolean

Dim ele

For Each ele In Me.Controls

If TypeOf ele Is TextBox ThenIf ele.Tag <> "not" And Trim(ele.Text) = "" Then

ele.SetFocus

check_empty = True

Exit Function

End If 

End If 

Next

check_empty = False

End Function

Private Sub Form_Resize()

Image1.Top = 0

Image1.Left = 0

Image1.Height = Me.Height

Image1.Width = Me.Width

End Sub

Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As

Single, Y As Single)

cmdexit.BackColor = RGB(200, 200, 200)End Sub