0% found this document useful (0 votes)
114 views42 pages

10 Dhinesh Documentation 2007

The document describes a proposed computerized system for an organization that currently uses a manual process. The proposed system will use Visual Basic 6.0 for the front end and MS Access for the back end, running on Windows 98 on a Pentium PC with 128MB RAM. The system aims to overcome the drawbacks of the manual system such as erroneous data entry, slow processing, and loss of records. Input screens are designed to computerize key processes such as customer details, purchases, checking, dyeing, garments, customer orders, and sales. Overall, the system aims to automate the organization's processes and reduce errors.

Uploaded by

manikmathi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
114 views42 pages

10 Dhinesh Documentation 2007

The document describes a proposed computerized system for an organization that currently uses a manual process. The proposed system will use Visual Basic 6.0 for the front end and MS Access for the back end, running on Windows 98 on a Pentium PC with 128MB RAM. The system aims to overcome the drawbacks of the manual system such as erroneous data entry, slow processing, and loss of records. Input screens are designed to computerize key processes such as customer details, purchases, checking, dyeing, garments, customer orders, and sales. Overall, the system aims to automate the organization's processes and reduce errors.

Uploaded by

manikmathi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 42

1.

INTRODUCTION
The main purpose of this project is to computerize the human process held in the
organization. The process sequence was studied and required inputs were gathered, processed
and output and reports were produced.
The number of customers arrival is on a alarming rate on the manual calculations always
results in a errors which are great loss to the store.The new system will replace the existing
manual processing to overcome the drawbacks.
Visual Basic programming language is not unique to visual basic. The Visual Basic
programming systems, applications, edition included in Microsoft Excel, Microsoft Access and
many other applications use the same language.

1.1 SYSTEM SPECIFICATION

1.1.1 HARDWARE CONFIGURATION

PROCESSOR :

PENTIUM

RAM

128 MB

FDD

1.44 MB 3.5 INCH

HDD

20 GB

MONTIOR

SVGA COLOR MONITOR

KEYBOARD

104 KEYS SAMSUNG KBD

MOUSE

LOGITECH MOUSE

1.1.2 SOFTWARE SPECIFICATION

FRONT END

VISUAL BASIC 6.0

BACK END

MS ACCESS

PLATFORM

WINDOWS 98

SOFTWARE DESCRIPTION

VISUAL BASIC 6.0


Visual Basic is an ideal programming language for developing sophisticated professional
applications for Microsoft windows. Microsoft Visual Basic is the fastest and easiest tool to
create application for Microsoft Windows.

The VISUAL part refers to the method used to create the Graphical User screen
Interface (GUI). Rather than writing numerous lines of codes to describe the appearance &
location of interface elements, pre built objects can be simply added in the light place on.

The Basic part refers to the BASIC language used by most programmers language than
any other language. Visual Basic has evolved from the original BASIC & now contains several
hundred statements, functions & keywords, many of which relate directly to the windows GUI.

Visual Basic 6.0 for Windows required at least Microsoft Windows NT 3.51 or later with
a very fast 486 or Pentium processors computer & at least 10MB of RAM. A complete
installation of the moist powerful version of Visual Basic 6.0, the enterprise edition requires
more than 140MB of hard disk space.

Visual Basic programming language is not unique to visual basic. The Visual Basic
programming systems, applications, edition included in Microsoft Excel, Microsoft Access and
many other applications use the same language. The Visual Basic scripting edition is widely used
scripting language & a subset of the visual basic language.

MS-ACCESS

Access can be used to develop both simple and complex database. Its wonderfully
designed built-in wizard makes allow look like a product that anyone can use. Although it is true
that the simplest of the access application can be produced without any thought of design and
without a single line of code written by the user, most applications require at least some
designing and customer codes.

It can be develop five general types of applications.

1. Personal applications
2. Applications used to run small business
3. Departmental applications
4. Corporation wide applications
5. Client / Server applications.

2. SYSTEM STUDY
2.1 EXISTING SYSTEM
The existing system is manual one .The major activities are related to clients or
customers are usually carried out in a hectic way. The number of customers arrival is on a
alarming rate on the manual calculations always results in a errors which are great loss to the
store. Even though mostly nowadays the computers find there place everywhere.
Here, there has been confusion on the installation of system and what kind of software
they were going to use. And of lately this package which was proposed that they have thought of
implementing a change so the existing system has been manual one and it has been burden on
various activities where all needed to carry out the existing system.

2.1.1 DRAWBACKS OF EXISTING SYSTEM


1.

Erroneous data entry due to human errors.

2.

Searching and verifying of exact data are more time consuming.

3.

Reports are not in a presentable form.

4.

Loss of past records due to mishandling and improper storage facilities.

5.

Slow processing.

2.2 PROPOSED SYSTEM

In order to conduct a success project we must understand the scope of work to be done,
the risk to be incurred the resources, the required task to be accomplished the mile stones to be
tracked the fort it be expended and the schedules to be followed. It begins before technical work
starts, continues as a software evolutes from the concept of reality and only on the software is
retired.

The system use less amount of time to produce report. In the computerization of the
concern, the errors can be rectified. The proposed system is used mainly to maintain the
organization. The new system will replace the existing manual processing to overcome the
drawbacks. It maintains all the customer details, order details and the checking process through
the system.

2.2.1 FEATURES OF PROPOSED SYSTEM

It is very accurate

It can store larger amount of data i.e., memory is very large and can have a back
up copy when needed.

Very good at repeated calculations.

All the process has done at high speed.

It does the work very efficiently.

It is cost effective.

Reduced paper work.

3. SYSTEM DESIGN AND DEVELOPMENT

3.1 INPUT DESIGN

The main objective in input design is to specify how the information is put into a
term that is acceptable to computer. The files and database information, frequency and
certification requirements are considered in the selection of input format. Another objective is to
ensure that input is acceptable and understandable to user.
Input design is the process of converting user-originated inputs to a computer- based
format. The goal of input is to make data-entry as easy and it shall be free from error as possible.

A well-designed input should serve five purposes


1.control workflow.
2.To reduce redundancies in recording data.
3.controlling errors.
4.To allow easier checking of data.
5.controlling the amount of input required.

When the data is fed into a system, the operator must receive the data in a form that
can be understood readily. The operator should key the data in the order in which it occurs on the
form and the computer should reformat it as required.

The following input design forms are presented in the project:


1.Customer
2.Purchase
3.Checking
4.Dyeing
5.Garments
6.Customer Order
7.Sales

1.CUSTOMER FORM:
This form contains five fields such as CUSTCODE,ADDRESS,CUSTNAME,PHONE
EMAILID.This screen is attached on page no:31.

-CUSTCODE is used to store the customer code.


-CUSTNAME is used to store the customer name.
-ADDRESS is used to store the customer address.
-PHONE used to store the customer phone number.
-EMAILID used to store the customer email id.

2.PURCHASE FORM:
This form contains eight fields such as PURDT,COUNTS,VARIETY,QTY,
PRICE,TOTAL,COMP,ADDRESS. This screen is attached on page no:32.

-PURDT is used to store the purchase date.


-COUNTS is used to store the purchase counts.
-VARIETY is used to store the purchase varity.
-QTY is used to store the purchase quality.
-PRICE is used to store the purchase price.
- TOTAL is used to store the purchase total.
- COMP is used to store the purchase company.
-ADDRESS is used to store the address.

3.CHECKING FORM:
This form contains eight fields such as CHKDT, COUNTS, VARIETY, LOOMNO,
ROLLQTY, DAMAGEQTY, WARHOUSEQTY, DESIGN. This screen is attached on page
no:33.

-CHKDT is used to store the checking date.


- COUNTS is used to store the counts.
- VARIETY is used to store the variety.
- LOOMNO is used to store the loom number.
-ROLLQTY is used to store the roll quality.
- DAMAGEQTY is used to store the damage quality.
- WARHOUSEQTY is used to store the warhouse quality.
- DESIGN is used to store the design.

4.DYEING FORM:
This form contains eight fields such as DYINGDT, COUNTS, VARIETY,
BUNDLENO, QTY ,DESIGNING, OUTPUTQTY ,OUTPUTBUNDLENO. This screen is
attached on page no:34.

- DYINGDT is used to store the dyeing date.


- COUNTS is used to store the dyeing counts.
-VARIETY is used to store the dyeing variety.
- BUNDLENO is used to store the bundle number.
- QTY is used to store the dyeing quality.
- DESIGNING is used to store the dyeing designing.
-OUTPUTQTY is used to store the dyeing output quality.
- OUTPUTBUNDLENO is used to store the dyeing output bundle number.

5.GARMENTS FORM:
This form contains ten fields such as GARDT,COUNTS ,VARIETY ,DESIGNING,
ITEMTYPE, REQMINQTY, NOOFPIECES, REQTOTQTY, PRICE, TOTAMT. This screen is
attached on page no:35.

- GARDT is used to store the garment date.


- COUNTS is used to store the garment counts.
- VARIETY is used to store the garment variety.
- DESIGNING is used to store the garment designing.
- ITEMTYPE is used to store the garment item type.
- REQMINQTY is used to store the garment require minimum quality.
-NOOFPIECES is used to store the garment number of pieces.
- REQTOTQTY is used to store the garment required total quality.
-PRICE is used to store the garment price.
-TOTAMT is used to store the garment total amount.

6.CUSTOMER ORDER FORM:


This form contains eleven fields such as ORDDT, DESIGNING, NOOFPIECES,
PRICE, TOTAMT, DELDT, CUSTCODE, CUSTNAME, ADDRESS ,PHONE, ORDNO. This
screen is attached on page no:36.

-ORDDT is used to store the order date.


-DESIGNING is used to store the designing.
-NOOFPIECES is used to store the number of pieces.
-PRICE is used to store the price.
-TOTAMT is used to store the total amount.
-DELDT is used to store the delivery date.
-CUSTCODE is used to store the customer code.
-CUSTNAME is used to store the customer name.
-ADDRESS is used to store the address.

-PHONE is used to store the phone.


-ORDNO is used to store the order number
- REQTOTQTY is used to store the garment required total quality.
- PRICE is used to store the garment price.
- TOTAMT is used to store the garment total amount.

7.SALES FORM:
This form contains eleven fields such as INVNO, INVDT,CUSTCODE, CUSTNAME,
ADDRESS, DESIGNING, NOOFPIECES, PRICE ,TOTAMT, ORDDT, ORDNO. This screen
is attached on page no:37.

-INVNO is used to store the invoice number.


-INVDT is used to store the invoice date.
-CUSTCODE is used to store the customer code.
-CUSTNAME is used to store the customer name.
-ADDRESS is used to store the address.
-DESIGNING is used to store the designing.
-NOOFPIECES is used to store the number of pieces.
-PRICE is used to store the price.
-TOTAMT is used to store the total amount.
-ORDDT is used to store the order date.
-ORDNO is used to store the order number.

10

3.2 OUTPUT DESIGN

The primary considerations in output design is to arrange the data in a form most
convenient to the user in dealing with output, the basic elements of a form, are Pre-printed
information and data to be filled in by the user must again be considered.
Computer programmers are expected to have fairly good concept of how to display
computers output for users to readily understand it. Since the computer can store and print
deceptive information as well as data, an important task of both the system analyst and the
programmer is to determine which pre-printed are respective information should be provided on
each page or printed output or each visual display of output

The following output design reports are presented in the project:


1.Purchase
2.Checking
3.Dyeing
4.Garments
5.Customer Order

1.PURCHASE REPORT
This report is viewed in date wise.This output display the purchase details like purchase
date,company,address.counts.price,varity.quality,total. This report is attached on page no:38.

2.CHECKING REPORT
This report is viewed in date wise.This output display the checking date,varity,counts,
loom number,roll quality,damage quality,warhouse quality,design.This report is attached on page
no:39

11

3.DYEING REPORT
This report is viewed in date wise.This output display the dyeing date,counts ,varity,
bundle number,quality,design,output quality,output bundle number.This report is attached on
page no:40.

4.GARMENTS REPORT
This report is viewed in date wise.This output display the garment date,count,varity,
designing,item type,number of pieces,required total quality,price,total amount.This report is
attached on page no:41.

5.CUSTOMER ORDER
This report is viewed in date wise.This output is display the order date,customer code,
number,order,customer name,address,phone number,designing,number of pieces,price,total
amount,delivery date.This report is attached on page no:42.

12

3.3 DATABASE DESIGN


A table may be defined as a collection of items of data recognized in to records in such a
way that specific items of data or records can be retrieved and accommodated in main storage
required for processing. Table design is an important activity in the design stage. Various factors
such as purpose of files, availability of the hardware , method of access, the activity and size of
the file etc, are considered during the table design.
This project use six database design that are ,
1.Customer
2.Purchase
3.Checking
4.Dyeing
5.Garments
6.Customer Order

1.CUSTOMER

This database is used to store the customer deatails.It use many fields like customer code
as text,name as text,address as text,phone number as number,e mail id as text/number.This table
is attached in the page no:24

2.PURCHASE

This database is used to store the customer deatails.It use many fields like purchase date
as date/time,company as text,address as text,count as number,price as number,varity as
text,quality as number,total as number. This table is attached in the page no:24

13

3.CHECKING
Ihis database is used to store the customer deatails.It use many fields like checking date
as date/time,count as text,varity as text,loom number as number,roll quality as number, damage
quality as number,warhouse as number,design as text. This table is attached in the page no:25

4.DYEING

This database is used to store the customer deatails.It use many fields like dyeing date as
date/time,counts as number,varity as text.bundle number as number,quality as number ,design as
text,output quality as number,output bundle as number. This table is attached in the page no:26

5.GARMENTS
This database is used to store the customer deatails.It use many fields like garment date
as date/time,counts as number,varity as text,designing as text,item type as text,number of pieces
as number,required total quality as number,price as number,total amount as number. This table is
attached in the page no:26

6.CUSTOMER ORDER

This database is used to store the customer deatails.It use many fields like order number
as number,order date as text/number,customer code as number,customer name as text,address as
text,phone number as number,designing as text,number of pieces as number,price as
number,total amount as number,delivery date as number/text. This table is attached in the page
no:25

14

3.4 SYSTEM DEVELOPEMENT

3.4.1 DESCRIPTION OF MODULES

MODULES:
1.

Customer

2.

Purchase

3.

Checking

4.

Customer order

5.

sales

1. CUSTOMER

This module is used to maintain the customer details. This page is used for storing,
Displaying and modifying the customers information. The page should display the Display
informations in a grid and it should also allow the user to find out a customer from the database
depending upon his name or id. It should provide the necessary controls for data entry.

2. PURCHASE

This module is used to maintain the purchase details.This page is used to enter the
purchases made from the garment companies and the suppliers. Proper tracking of all purchases
are very essential. Also take care to update the stock.This page is used for enter the purchase
information such as purdt, county, verity , qty, price, total amount etc.,

15

3.CHECKING

This module is used to maintain the checking details. This is also a master entry form to
enter the details of the daily expense. All the details of the daily expense of the user can be
entered in this form.

4. CUSTOMER ORDER

This module is used to maintain the customer order details. It can used for easily view
and update the customer orders. It have the fields like orddt, designing noofpieces, price, totamt,
etc.

5.SALES

This module is used to maintain the sales details. Sales entry form is used to enter the
sales made to the distributors and customers. Proper tracking of all sales is very essential. Also
take care to update the stock. This page is used to enter the sales information such as invno,
invdt, noofpieces, price, totamt, etc.

16

4.TESTING AND IMPLEMENTATION

SYSTEM TESTING

When the staffs have been trained, a full system test can be aimed to ensure that the
system works accurately and efficiently before live operation commences. System providing is
and ongoing activity thoroughly and continually examined on paper to ensure that they will work
when implemented.

When the programmers have tested each programs individually using test data designed
by themselves and have verified that these programs unit specification. The complete system
and its environment must be tested to the satisfaction of the system analysts and the user. The
results of the processed test data should be maintained as a permanent manual subsequent major
amendment. This stage in the development of system is to test the developed system with data
(Trial Run) and then make necessary changes. Testing is done in three steps.
Testing the functional performance of each individual modular component.
Testing the function and interface of the software.
Testing to find out weather all requirements have been met.

The purpose of testing is to discover errors. Testing is the process of trying to


discover every conceivable fault or weakness in a work product. It provides a way to check the
functionality of components, sub assemblies, assemblies and/or a finished product It is the
process of exercising software with the intent of ensuring that the
Software system meets its requirements and user expectations and does not fail in an
unacceptable manner. There are various types of test. Each test type addresses a specific testing
requirement.

17

TYPES OF TESTING

unit testing

integration testing

functional test

system test

white box testing

black box testing

UNIT TESTING
Unit testing involves the design of test cases that validate that the internal program logic is
functioning properly, and that program inputs produce valid outputs. All decision branches and
internal code flow should be validated. It is the testing of individual software units of the
application .it is done after the completion of an individual unit before integration. This is a
structural testing, that relies on knowledge of its construction and is invasive. Unit tests perform
basic tests at component level and test a specific business process, application, and/or system
configuration. Unit tests ensure that each unique path of a business process performs accurately
to the documented specifications and contains clearly defined inputs and expected result.

INTEGRATION TESTING
Integration tests are designed to test integrated software components to determine if they
actually run as one program. Testing is event driven and is more concerned with the basic
outcome of screens or fields. Integration tests demonstrate that although the components were
individually satisfaction, as shown by successfully unit testing, the combination of components is
correct and consistent. Integration testing is specifically aimed at exposing the problems that
arise from the combination of components.

18

FUNCTIONAL TEST

Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user manuals.
Functional testing is centered on the following items:
Valid Input

: identified classes of valid input must be accepted.

Invalid Input

: identified classes of invalid input must be rejected.

Functions

: identified functions must be exercised.

Output

: identified classes of application outputs must be exercised.

Systems/Procedures : interfacing systems or procedures must be invoked.

SYSTEM TEST
System testing ensures that the entire integrated software system meets requirements. It tests a
configuration to ensure known and predictable results. An example of system testing is the
configuration oriented system integration test. System testing is based on process descriptions
and flows, emphasizing pre-driven process links and integration points.

WHITE BOX TESTING


White Box Testing is a testing in which in which the software tester has knowledge of the
inner workings, structure and language of the software, or at least its purpose. It is purpose. It is
used to test areas that cannot be reached from a black box level.

BLACK BOX TESTING


Black Box Testing is testing the software without any knowledge of the inner workings,
structure or language of the module being tested. Black box tests, as most other kinds of tests,
must be written from a definitive source document, such as specification or requirements
document, such as specification or requirements document. It is a testing in which the software
under test is treated, as a black box .Tester cannot see into it. The test provides inputs and
responds to outputs without considering how the software works.

19

SYSTEM IMPLEMENTATION
System Implementation is an important stage of the project where the theoretical design
is turned into the practical system. The main stages of implementation are as follows:
1. Implementation Planning
2. Training User Staff
Implementation Planning is the first task in system implementation, planning means
deciding on the methods and time scale to be adopted. Once the planning is over the major effort
in the Computer department is to ensure that the programs in the system are working properly.
During the Training the user department should concentrate on training user staff. When
the staffs in the user department have been trained a full system test can be carried out, involving
both computer and clerical problems.

20

5.CONCLUSION

This system has been developed for the conditions existing at present and other
difficulties at runtime. This system is easy and flexible. Also it is implemented successfully.

This project may applicable for other General Purpose Stores to maintain the stocks and
for billing. Any suggestions regarding the improvement of this project are easily extended in
future.
The number of customers arrival is on a alarming rate on the manual calculations always
results in a errors which are great loss to the store.The system use less amount of time to produce
report. In the computerization of the concern, the errors can be rectified.

The proposed system is used mainly to maintain the organization. The new system will
replace the existing manual processing to overcome the drawbacks.

21

6.BIBLIOGRAPHY

1. Elias M.Awad, System Analysis and Design Galgotia Publications Pvt. ltd, 1997,
Second Edition.
2. Richard Fairly, Software Engineering, McGraw-Hill, International Edition.
3. Rob Thayer , Unleased Visual Basic 6.0.
4. John Paul Meller, The Complete Reference Visual Basic 6.0.
5. Visual Basic Reference Book Material Integrity Solutions
6. Visual Basic 5.0 Training guide Murray.
7. Visual Basic Black book-Steven Holzner.
8. Mastering Visual Basic 6.0-Evangelos Petroutsos.
9. Visual Basic 6-Rajendra saiokhie.

WEBSITES :

www.dotnetmasters.com

www.gfxtra.com

www.a1vbcode.com

www.google.co.in

22

7.APPENDIX

A) DATAFLOW DIAGRAM

23

B) TABLE STRUCTURE

CUSTOMER TABLE

S.No

Field Name

Type

Description

Customer code

Number

CUSTOMER CODE

Customer Name

Text

CUSTOMER NAME

Address

Text

ADDRESS

Ph

Number

PHONE NUMBER

Mail id

Text

EMAIL ID

PURCHASE DETAILS

S.No

Field Name

Type

Description

Purchase Date

Date/Time

PURCHASE DATE

Purchase Item

Text

PURCHASE ITEM

Address

Text

ADDRESS

Count

Number

COUNT

Price

Number

PRICE

Quantity

Number

QUANTITY

Total

Number

TOTAL

24

CHECKING DETAILS

S.No

Field Name

Type

Description

ChkDt

Date/Time

CHECK DATE

Counts

Text

COUNTS

Variety

Text

VARIETY

LoomNo

Number

LOOM NUMBER

RollQty

Number

ROLL QUALITY

DamageQty

Number

DAMAGE QUALITY

WarhouseQty

Number

WARHOUSE QUALITY

Design

Text

DESIGN

CUSTEMER ORDER DETAILS

S.No

Field Name

Type

Description

OrdDt

Date/Time

ORDER DATE

Designing

Text

DESIGNING

NoOfPieces

Number

NUMBER OF PIECES

price

Number

PRICE

TotAmt

Number

TOTAL AMOUNT

DelDt

Date/Time

DELIVERY DATE

CustCode

Text

CUSTOMER CODE

CustName

Text

CUSTOMER NAME

Address

Text

ADDRESS

10

Phone

Text

PHONE NUMBER

11

OrdNo

Text

ORDER NUMBER

25

DYEING DETAILS

S.No

Field Name

Type

Description

DYINGDT

Date/Time

DYEING DATE

Counts

Text

COUNTS

Variety

Text

VARIETY

BundleNo

Number

BUNDLE NUMBER

Qty

Number

QUALITY

Designing

Text

DESIGNING

OutputQty

Number

OUTPUT QUALITY

OutputBundleNo

Number

OUTPUT BUNDLE NUMBER

GARMENTS DETAILS

S.No

Field Name

Type

Description

GarDt

Date/Time GARMENT DATE

Counts

Text

COUNTS

Variety

Text

VARIETY

Designing

Text

DESIGNING

ItemType

Text

ITEM TYPE

ReqMinQty

Number

REQUIRED MINIMUM QUALITY

NoOfPieces

Number

NUMBER OF PIECES

ReqTotQty

Number

REQUIRED TOTAL QUALITY

Price

Number

PRICE

10

TotAmt

Number

TOTAL AMOUNT

26

C) SAMPLE CODING

Dim WithEvents adoPrimaryRS As Recordset


Dim mbChangedByCode As Boolean
Dim mvBookMark As Variant
Dim mbEditFlag As Boolean
Dim mbAddNewFlag As Boolean
Dim mbDataChanged As Boolean
Private Sub Combo1_Click()
txtFields(1).Text = Combo1.Text
End Sub
Private Sub Combo2_Click()
txtFields(2).Text = Combo2.Text
End Sub
Private Sub Combo3_Click()
txtFields(7).Text = Combo3.Text
End Sub
Private Sub Form_Load()
Dim db As Connection
Set db = New Connection
db.CursorLocation = adUseClient
db.Open "PROVIDER=Microsoft.Jet.OLEDB.3.51;Data Source=" & App.Path &
"\Garments.mdb;"
Set adoPrimaryRS = New Recordset
adoPrimaryRS.Open "select
ChkDt,Counts,Variety,LoomNo,RollQty,DamageQty,WarhouseQty,Design from Checking
Order by ChkDt", db, adOpenStatic, adLockOptimistic
Dim oText As TextBox
'Bind the text boxes to the data provider
For Each oText In Me.txtFields
Set oText.DataSource = adoPrimaryRS
Next

27

Module1.ConConnection
Module1.ComboItems "Purchase", "Counts", "Combo1", Me
Module1.ComboItems "Purchase", "Variety", "Combo2", Me
Combo3.AddItem "Plain Satin"
Combo3.AddItem "Flower Checked"
Combo3.AddItem "Twil Satin"
Combo3.AddItem "Strips"
Combo3.AddItem "Checked with Colors"
Combo3.AddItem "Torkey Towell"
mbDataChanged = False
End Sub
Private Sub Form_Resize()
On Error Resume Next
lblStatus.Width = Me.Width - 1500
cmdNext.Left = lblStatus.Width + 700
cmdLast.Left = cmdNext.Left + 340
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If mbEditFlag Or mbAddNewFlag Then Exit Sub
Select Case KeyCode
Case vbKeyEscape
cmdClose_Click
Case vbKeyEnd
cmdLast_Click
Case vbKeyHome
cmdFirst_Click
Case vbKeyUp, vbKeyPageUp
If Shift = vbCtrlMask Then
cmdFirst_Click
Else
cmdPrevious_Click
End If
Case vbKeyDown, vbKeyPageDown
If Shift = vbCtrlMask Then
cmdLast_Click
Else
cmdNext_Click
End If
End Select
End Sub

28

Private Sub Form_Unload(Cancel As Integer)


Screen.MousePointer = vbDefault
End Sub
Private Sub adoPrimaryRS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum,
ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As
ADODB.Recordset)
'This will display the current record position for this recordset
lblStatus.Caption = "Record: " & CStr(adoPrimaryRS.AbsolutePosition)
End Sub
Private Sub adoPrimaryRS_WillChangeRecord(ByVal adReason As
ADODB.EventReasonEnum, ByVal cRecords As Long, adStatus As ADODB.EventStatusEnum,
ByVal pRecordset As ADODB.Recordset)
'This is where you put validation code
'This event gets called when the following actions occur
Dim bCancel As Boolean
Select Case adReason
Case adRsnAddNew
Case adRsnClose
Case adRsnDelete
Case adRsnFirstChange
Case adRsnMove
Case adRsnRequery
Case adRsnResynch
Case adRsnUndoAddNew
Case adRsnUndoDelete
Case adRsnUndoUpdate
Case adRsnUpdate
End Select
If bCancel Then adStatus = adStatusCancel
End Sub
Private Sub cmdAdd_Click()
On Error GoTo AddErr
With adoPrimaryRS
If Not (.BOF And .EOF) Then
mvBookMark = .Bookmark
End If

29

.AddNew
lblStatus.Caption = "Add record"
mbAddNewFlag = True

SetButtons False
End With
txtFields(0).Text = Format(Date, "dd/mmm/yyyy")
Exit Sub
AddErr:
MsgBox Err.Description
End Sub
Private Sub cmdDelete_Click()
On Error GoTo DeleteErr
With adoPrimaryRS
.Delete
.MoveNext
If .EOF Then .MoveLast
End With
Exit Sub
DeleteErr:
MsgBox Err.Description
End Sub
Private Sub cmdEdit_Click()
On Error GoTo EditErr
lblStatus.Caption = "Edit record"
mbEditFlag = True
SetButtons False
Exit Sub

30

D) SAMPLE INPUT

CUSTOMER

31

PURCHASE

32

CHECKING

33

DYEING

34

GARMENT

35

CUSTOMER ORDER

36

SALES

37

E) SAMPLE OUTPUT

PURCHASE REPORT

38

DYEING REPORT

39

CHECKING REPORT

40

GARMENT REPORT

41

CUSTOMER ORDER REPORT

42

You might also like