165
A PROJECT REPORT ON COMPUTER –SHOP MANAGEMENT SYSTEM Ewing Christian Institute of Management and Technology

Computer -Shop Management System

Embed Size (px)

DESCRIPTION

This is Srs Document Prepared by me fot partial complite of MCA 4th sem. This was my firs project. It includes software requirement details and screenshots of system, and source codes etc.

Citation preview

Page 1: Computer -Shop Management System

A PROJECT REPORT

ON

COMPUTER –SHOP MANAGEMENT

SYSTEM

Master of Computer Application

Prepared by:- AMIT KUMAR YADAV MCA 4th Sem. Roll no. 0715514006

Ewing Christian Institute of Management and Technology Allahabad

Under the guidance of:-

Mr. Prabhat Kardam (Lectur

er)

Page 2: Computer -Shop Management System

PREFACE

The computer-shops are increasing day by day.There is lot of work as to sell computer system/part, to store new computer system/part, to maintain customer balance and his information, to mantain user account, to maintain and manage shop’s information and to maintain report of sold computer system/part. But if these works is done manually, takes to much time and hard work. So there is need of a computer-software that provide good interface to done these work very efficiently. So I decide to develop software in visual-basic 6.0 for computer-shop. I give the name to my software “COMPUTER-SHOP MANAGEMENT SYSTEM”.This is self contained software.

This project report provide all the detail view of the software “Computer-shop management system”.From my point of view, there is no further system or subsystem explained elsewhere.This project report containts the introduction, objective, purpose, project scope, product perspective, product features, h/w and s/w reqirements, frontend and backend tool, product feature, process logic, logic diagram, data flow diagram, ER diagram, database detail and data structure, and bibliography.

I have exerted a conscious effort to make software user-oriented and user-friendly.I hope the users would find the software not only interested but also useful.

1

AMIT KUMAR YADAV MCA 4th Sem. Roll no:-0715514006

Page 3: Computer -Shop Management System

ACKNOWLEDGEMENTS

First of al l I would l ike to thank almighty God who gave me the inspiration to take up this task. I would l ike to thank Mr. Prabhat kardam (Lecturer) Ewing Christian institute of management and technology, Allahabad, for his able guidance and all the pains he took for the completion of my project. Special thanks to Mr. Sharad Emmanual , Lab Administrator of ECIMT, who helped us at every step in the project. I would also like to thanks Mr.Anurag sewak (Head of department, MCA, ECIMT, Allahabad), who gave precious suggestions at every step in the project. I would also like to thank Dr. M. Massey, Director, Dr. L.C.T. Esubius, Deputy Director and Dr. (Mrs.) Kusumlata Pandey, Academic Advisor of MCA (Master of Computer Application).

I would also l ike to thank Mr.Anshul Cutting (Asst. System Administrator) & Mr. Jayant Sheth , Librarian of my college without whose cooperation, this project could not have been a success. I express my gratefulness and appreciation to all my academic colleagues who gave me valuable suggestions during the development of this software.

2

AMIT KUMAR YADAV MCA 4th Sem. Roll no:-0715514006

Page 4: Computer -Shop Management System

Certificate

This is to certify that Mr. AMIT KUMAR YADAV (Roll No. -

0715514006) s/o SHRI SUKHARAJ YADAV is MCA 4 t h semester student

of Ewing Christian Institute of Management & Technology, Allahabad. He is enrolled

in three year Master of computer application.

He has satisfactorily completed the project entitled

“COMPUTER-SHOP MANAGEMENT SYSTEM” in VISUAL BASIC 6.0 for

the partial fulfi l lment of 4 t h semester.

This application package is the original one and is never

submitted elsewhere for the same purpose.

I wish him all success in future.

3

Ewing Christian institute of management & technologyTurner Building, 711- mutthigang, Allahabad-211003, U.P.

Mr. Prabhat kardam (Lecturer)

Ewing Christian Institute of management & technology

Allahabad

Date:

Page 5: Computer -Shop Management System

Table of Contents

Table of Contents……………………………………………………………………………….4

Introduction………………………………………………………………………………………5

Objective………………………………………………………………...……………………….6

Operating environment…………………………………………………………………………6

1) Harware requirement…………..…………………………………………………………6

2) Sowtware requirement……………………………………………………………………6

Front end tool……………………………………………………………………………6

Back end tool…………….………………………………………………………………5

Platform used……………………………………………………………………………5

Purpose ………………….………………………………………………………………………5

Project Scope …………...………………………………………………………………………5

Product Perspective………………………………………………………………………………………5

Product Features ………………….……………………………………………………………5

Process logic....................................................................................................................2

Logic diagram……………….…………………………………………………………………..7

Data flow diagram………….……………………………………………………………………8

ER diagram…...……………..…………………………………………………………………11

Data structure…………………………………………………………………………………..12

Sreenshots ………………………………………………………………………………….. 3

1) Login form……………………………………………………………………………….3

2) Main form….…………………………………………………………………………….4

4

Page 6: Computer -Shop Management System

3) Sell computer part form………………………………………………………………….5

4)make quotation form….………………………………………………………………….3

5) Update customer balance……………………………………………………………….4 6) Sell computer system form……………………..……………………………………….5

7) Change password………………………….…………………………………………….5

8) Create user account….………………………………………………………………….3

9) Add company form……………………………………………………………………….4 10) Add new product form …………………………………………………………….5

11) Add computer system………………………………………………………………….

12) Update shop information form….…………………………….……………………….3

Test-case…………………………………………………………………….4 Coding …………………………………………………………….5

Future Scope…………………………………………………………

Bibliography …………………………………………………………………………………

5

Page 7: Computer -Shop Management System

Introduction

Computer-shop management System is a project which assist in keeping the Record of what ever the sales from shop (whole seller), also it keep track of remaining balance which due after selling the product. Through this project we maintain the warranty given on particular products along with complete information related to that product. Computer-shop management System is software for store billing management. Sell hardware systems components and accessories (keep track of sold configurations, create system configuration, sell accessories and computer components, supplying company’s administration, and many more...). Computer-shop management System is a windows based billing software designed for uses in computer stores.

Objective

The objective of my project to provides management facility to

computer-shop. We have given many facilities for users in this project.

1) Welcome screen (Formsplash)

2) Login screen

3) Main form

4) Sell Computer System form

5) Sell Computer Parts form

6) Update customer Balance form

7) Product Price Report form

8) Change password form

9) Make quotation form

10) Add computer part form

11) Add computer system form

12) Create user account form

13) Update shop information form

14) Report of sold computer part 15) Report of sold computer system

6

Page 8: Computer -Shop Management System

Operating Environment

1) Hardware Requirement

1) 20 GB HDD Free Space2) 128 MB RAM3) P IV or above Processor4) Monitor 5) Keyboard: Standard6) Mouse: Optional

2) Software Requirement

1) MS-office-2003 2) MS Visual Basic6.0

Front End Tool: MS Visual Basic6.0

Back End Tool: MS Access

PLATFORM USED: Windows XP, Windows 2000.

Purpose

It is the project about Computer-shop management System. It automates the Systems records, their Selling and Maintenance, Balance evaluation, due to calculation other functions. In other words you can say it a complete computer-shop management System. In this project we can easily maintain systems sales details. It gives information’s of Annual Transaction of products, its services, daily sales, daily Receipt & Balance. We can see the Systems details before selling the particular items & view for our requirement-satisfying item detail.

Project Scope

The scope of project ‘Computer-shop management system’ is to Develop Visual Basic based software to support for daily sale, receipt & Balance of products and maintain the all information of System related items. This software will be very useful for the Big Computer Shop as well as the customer. It will perform as the required task of Automation of product by itself in a systematic way.

7

Page 9: Computer -Shop Management System

It will also save lots of time, as system will perform all tasks in quick time profiting customer and shop owner as well, so it will prove very economical in every respect.

Product Perspective The Computer-shop Management System is the new, self-contained product. The Computer-shop management system is using vb6.0 platform. All components follow Model-View-Controller pattern. The user can retrieve information of their shop progress.

All pages of the system are following a consistent theme and clear structure. The occurrence of errors should be minimized through the use of checkboxes and scroll down in order to reduce the amount of text input from user. Error message should be located beside the error input which clearly highlight and tell user how to solve it. If system error, it should provide the contact methods. The page should display the project process in different color to clearly reflect the various states. Each level of user will have its own interface and privilege to mange and modify the project information.

User interface elements are easy to understand. Part of user interface is well-organized on screen and the parts are concatenated right. When users look at the interface, they understand which pane is used for which purpose. Each task of an interface is specified clearly and users use them correctly. For example, when users press to any button on interface, they can know which operations are done by pressing this button.

The user interface is easy to learn. When users use the user interface, they can know which element is used to which operations. The interface actions and elements is consistent. When users press any button, required actions is done by the system.

The screen layout and color of the user interface is appealing. When users look at the screen, it will have a nice vision. Colors will be selected clearly, thus eyes of users won’t be tired.To inhance the graphical user interface I use xp button, lv button and vk frame. Since the application must run on the PC, all the hardware shall require to connect the PC will be hardware interface for the system.The main interface would be the monitor, Keyboard and mouse.

Product Features

• NETWORK SUPPORT. You can use more than one computer to work with Computer-shop Maintenance System.• Support for VAT tax system. Also you can -

8

Page 10: Computer -Shop Management System

• make system configuration • Create System configuration and use it later for selling purposes!• Quickly create database backup!• Enter and print (optionally) component serial numbers when you selling systems!• Customize bills that you print!• Create estimates and latter convert it into bills!• Reports to make comparisons between months (total sum, or sum by employees)!• User can see profit of a sold computer system during bill creating!• Manufacturers administration.• Print bills with currency sign.• See number of available components (for selected component in group) when you selling system configuration!• Different kind of reports.• Keep track of you suppliers!• Check out earnings and get information about charged items!• Each sold system is registered in database with date of sale and notification if customer has paid!• Computer- shop management software provides full billing and income control andSupports different password protected employee accounts!• Server database is protected from unauthorized modifications!• Process payments quickly and efficiently!• Unique design with very functional user interface!• Improve your store business with various reports and statistics!And many more...

Process Logic

1. Login Form In this form, existing user/administrator enters the user-name and password and access the main form. If user forgets his password then he can click on button forget password and then entering his e-mail id can get user name and password. This form contains user name and password as sub module.2. Main Form If administrator accesses this form using authentic login-name and password then the administrator has administrative power as add the product, create user account, add new branded computer system, add company, change the shop record . Administrator have full power But user have some restricted power only which is provided by administrator. In this main form user can sell computer part/assemble computer system/branded computer system, update customer record, change the password, make quotation. Using this form the user/administrator can see the report of sold computer part, branded computer system in any time duration. In this form, there is option to exit & log-off

3. Sell Computer System Module There are two sub modules:

9

Page 11: Computer -Shop Management System

1) Sell branded computer system2) Sell assembled computer system/computer part In sell branded computer system module, user/administrator can sell available branded computer system. In this form, the user/administrator enters the customer name, address & phone number and chooses any branded computer system to sell. This form also so the all information of chosen branded computer system as category, model number, monitor type, hard-disk range, ram, processor, price etc. After selling, the user/administrator can print and save the receipt. In sell assembled computer system/computer part module, user/administrator can sell available computer part and assembled computer system. In this form, the user/administrator enters the customer name, address & phone number and chooses all computer part to sell according to request of customer. The user/administrator can chose any product, its type, range, its serial number using combo-box. After choosing the serial number of product the price of the product and total price (including vat, tax) automatically generate. After selling, the user/administrator can print and save the receipt. The invoice number and customer number automatically generate by this software when this form is loaded.

4. Update Customer Balance Module In this module, there is information related to balance of customer, customer name and address. In future if any customer paid the balance amount then it can be update. 5. Make Quotation Module In this module, the user/administrator makes quotation according to request of the customer. This quotation provide information about the price, range, type & company name of all product to customer before purchasing the computer parts/assembled computer system. This quotation also provides total price (including vat) assembled computer system.

6. Change Password Module In this module, the user/administrator can change his/her password by entering login-name and old password and new password. So this provide security from unauthorized access.

7. Create user account Module In this module, the administrator can create new user by providing him login-name and password. In this module, the administrator can update user information as name, address and phone number of exiting user. He can delete exiting user account. The administrator can see the entire exiting user. The administrator can also give administrator power to any user. In this module, there is information related to the entire user working in the computer-shop as name, address, e-mail id, phone number etc. Here admin can take information related to user.

8. Add Product Module

10

Page 12: Computer -Shop Management System

In this module, the administrator can add new product by entering its name, company name, range, type, serial number, and its price. Here administrator can also see the available product and its information. And the administrator can also delete any product.

9. Add computer system Module In this module, the administrator can add new branded computer system by entering its category, model number, company name, ram capacity and its speed, monitor type, Hard-disk capacity and its interface, processor clock speed and its L2cach, motherboard company-name and its chipset, its selling and buying price and other description. Here administrator can also see the available computer system and its information. And the administrator can also delete any computer system.

10. Add company Module In this module, the administrator can add any company information whose product are available at the computer shop. This module contains the name of company, contact person, address, phone number, website, and fax number.

11. Change Shop information Module In this module, the administrator save/update the information related to his computer-shop as name of computer-shop, address, phone-number, and registration number.

12. Product Price Report: This report shows the price of all available products and its detail as item-name, company-name, type, range, and serial-number.

13. Sold computer part Report: This report show the sold computer part in any time duration. The administrator/user can see the detail of sold computer part in specified time duration. This report show the name of customer, item-name, company-name, type, range, serial-number, and price of sold product.

14. Sold computer system Report: This report shows the sold computer system in any time duration. The administrator/user can see the detail of sold computer system in specified time duration. This report shows the name of customer, category, company-name, model-number, ram capacity and its speed, monitor type, Hard-disk capacity and its interface, processor clock speed and its L2cach, motherboard company-name and its chipset, its price and other description.

11

Page 13: Computer -Shop Management System

LOGICAL DIAGRAM

LOGIN FORM

Sell computer system

AdministratorMake quotation

Assemble computer/Computer part

Change password

REPORT

Branded computer system

Add Computer part

Update customer Balance

Add computer system

Add company

Create user account

Sold computer system report

Price Report

MAIN FORM

Sold Computer part report

Change password

Add company

Change shop information

12

START

Page 14: Computer -Shop Management System

Data Flow Diagram:

Zero Level DFD:

Req. Resp.

First Level DFD:

Sold computer part History sold computer system history

I sold computer system detail

Login Issue detail

Login Detail Rep. Detail

Search criteria Update History

Search detail

13

Customer

Computer-shop management System

Customer

Sold compute

r part Item

UpdateLogin

Report

User/admin

Customer

Add computer part

Search

Add compute

r system

Sold Computer system

Page 15: Computer -Shop Management System

Customer detail

Customer

Computer part Record

Second Level DFD:

1. Sell computer part/system

Computer part/system Record

Issue detail Customer

Customer detail Comp.part/system detail

Verify sold detail

Sell computer part/system

Sold History

14

Computer part/system

User

Customer

CompterPart Detail

Computer Part Detail

Comptersystem Detail

Page 16: Computer -Shop Management System

2.Update customer balance:

Sold computer part/system History

Issue detail

Balance detail

Verify balance detail

Balance Record of customer

3. Search The Item:

Sold History

Sold detail

Balance History

Search Detail Balance Detail

Customer Detail

15

Update Balance

User

Search User

Page 17: Computer -Shop Management System

Customer & Item Info.

Customer Record

Item Detail

Computer part/system Record

ER Diagram:-

16

Customer

user_address

user_ph.no.

user_name

Login-name&password

Item_price

Item_name

Brand_name

Item_type

Warranty.perd

Serial.No.

BALANCE

Balance Date

C_name

Computer system_detail

system_name

Brand_nameconfiguration

Warranty_period

serial_no.

Warranty_periodItem_price

Page 18: Computer -Shop Management System

n

DATA STRUCTURE

1. Balance Table Key Column Name Data Type WidthPrimary key InvoiceNo. Alphanumeric 5

Customername Alphanumeric 25Customer address Alphanumeric 6Customer phone no. Numeric 6Paidamount Numeric 8Totalamount NumericDate Date

2. Computer part Detail Column Name Data Type WidthItemname Alphanumeric 15Brandname Alphanumeric 25

Sell computer system/part

17

User Computer part_DETAIL

Invoiceno.

Tot.amount

Paid_amount

PaidAmount

Customer

c_name

c_address

c_Balance c_ph.no.

Invoice no.

Page 19: Computer -Shop Management System

Type Alphanumeric 5Price Numeric 6

Primary key Serialno. Alphanumeric 5warranty Numeric 1

3. Customer key Column Name Data Type Width

Customer_name Alphanumeric 25Customer_Address Alphanumeric 30

Primary key Customer_Phone.no. Numeric 10Customer_Balance Numeric 8

44 4omput r s4st m t l e e de ai key Column Name Data Type Width

Systemname Alphanumeric 15Brandname Alphanumeric 25Categary Alphanumeric 5Price Numeric 6

Primary key Model no. Alphanumeric 5warranty Numeric 1Ram Alphanumeric 8Mother-board Alphanumeric 10Monitor Alphanumeric 10Processor Alphanumeric 10Other description Alphanumeric 45

5.Troubleshoot key Column Name Data Type WidthPrimary key Invoice no Alphanumeric 5

Customer_name Alphanumeric 25Customer_Address Alphanumeric 30Customer_phoneno. Numeric 10Problem Alphanumeric 25Service_date Date 8Charge Numeric 10

6.Employee Table

18

Page 20: Computer -Shop Management System

Key Column Name Data Type WidthPrimary key Employee-id Alphanumeric 12

Employee_name Alphanumeric 15Employee_address Alphanumeric 45Employee_phoneno Numeric 10Email_id Alphanumeric 20

7.Warranty Key Column Name Data Type Width

Invoice_no. Alphanumeric 8

Primary key Serial_no. Alphanumeric 20

Bill_no. Alphanumeric 10

New_Serial no Alphanumeric 15

Problem Alphanumeric 25

Service_date Date 8

Delivery_date Date 8

SCREENSHOTSLoginform

19

Page 21: Computer -Shop Management System

Main form

Sold computer Parts

20

Page 22: Computer -Shop Management System

Make quotation

Update customer balance

21

Page 23: Computer -Shop Management System

Change password form

Create user account

22

Page 24: Computer -Shop Management System

Add company Form

Add New Product form

23

Page 25: Computer -Shop Management System

Add computer system form

Update shop-information form

24

Page 26: Computer -Shop Management System

25

Page 27: Computer -Shop Management System

Test case

If connection of database is not closed at unload of this form then this error occurred.so needs to close connection of database as Private Sub Form_Unload(Cancel As Integer) con.Close End Sub

In database setsold table has p2 field, this field have to allow zero lenth.

26

Page 28: Computer -Shop Management System

I the database there is field name “login name’ have no value so this error occurred. So insert login name and password.

This error occure when in database the data type is not matching. So need to give correct data type.

27

Page 29: Computer -Shop Management System

There is not any item in the database in the requested field. So need to insert a item or generate a message.

The insert into command have syntax error. So need to write correct syntax.

28

Page 30: Computer -Shop Management System

When execute the insert into statement, there is any extra parameter.

In database customeaddressfield not found because I have write wrong table name.

29

Page 31: Computer -Shop Management System

Conection to database should be open when we execute any database statment.

I dcrease the size of all text field and labels to correct this error

30

Page 32: Computer -Shop Management System

31

Page 33: Computer -Shop Management System

32

Page 34: Computer -Shop Management System

33

Page 35: Computer -Shop Management System

34

Page 36: Computer -Shop Management System

35

Page 37: Computer -Shop Management System

36

Page 38: Computer -Shop Management System

37

Page 39: Computer -Shop Management System

38

Page 40: Computer -Shop Management System

Login form

Private Sub Form_Load()Call connectdatabasers.ActiveConnection = conrs.CursorLocation = adUseClientrs.CursorType = adOpenDynamicrs.Source = "select *from usertable"rs.OpenFrame1.Left = -8000End Sub

Private Sub lvButtons_H1_Click()a = MsgBox("Do you really want to quit?", vbYesNo, "Endnow")If a = 6 ThenEndEnd IfEnd Sub

Private Sub lvButtons_H2_Click()If Text1.Text = "" And Text2.Text = "" ThenMsgBox "Please enter the Login name & password!"Exit SubEnd IfIf Text2.Text = "" And Text1.Text <> "" Then MsgBox "Enter Your Password" Text2.SetFocus Exit Sub End IfIf Text2.Text <> "" And Text1.Text = "" Then MsgBox "Enter Your Username" Exit Sub End If

rs.MoveFirstFor i = 1 To rs.RecordCount If rs.Fields(2) = Text1.Text And rs.Fields(3) = Text2.Text Then If rs.Fields(6) = ("admin") Then mainfrm.Show Unload Me con.Close Exit Sub End If If rs.Fields(6) = ("employee") Then mainfrm.Show mainfrm.admin.Visible = False

39

Page 41: Computer -Shop Management System

Unload Me con.Close Exit Sub End If End Ifrs.MoveNext

Next iIf rs.EOF = True ThenMsgBox "Invalid login name & password!"Text2.Text = ""Text2.SetFocusEnd IfEnd Sub

Private Sub Text1_Change()Text1.BackColor = &HC0FFC0End SubPrivate Sub Text1_Click()Text1.BackColor = &H80000009Text2.BackColor = &HC0FFC0End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)If KeyAscii = 13 ThenText2.SetFocusEnd IfEnd Sub

Private Sub Text2_Change()Text2.BackColor = &HC0FFC0End SubPrivate Sub Text2_Click()Text2.BackColor = &H80000009Text1.BackColor = &HC0FFC0End SubPrivate Sub Text2_KeyPress(KeyAscii As Integer)If KeyAscii = 13 ThenCall lvButtons_H2_ClickEnd IfEnd Sub

Private Sub Timer2_Timer()Frame1.Left = Frame1.Left + 200If Frame1.Left = 3000 ThenTimer2.Enabled = False

40

Page 42: Computer -Shop Management System

End IfEnd Sub

Main form

Private Sub about_Click()aboutfrm.ShowEnd Sub

Private Sub asssembled_Click()sellcomputer.ShowEnd Sub

Private Sub bronded_Click()Sellbrondedcom.ShowEnd Sub

Private Sub brondedreport_Click()reportcomputersys.ShowEnd Sub

Private Sub company_Click()addcompany.ShowEnd Sub

Private Sub component_Click()DataReport1.ShowEnd Sub

Private Sub computersystem_Click()addcomputersystem.ShowEnd Sub

Private Sub customer_Click()customeraccount.ShowEnd Sub

Private Sub emloyee_Click()user.ShowEnd SubPrivate Sub Exit_Click()b = MsgBox("Do you really want to quit?", vbYesNo, "Conformation")If b = 6 ThenEnd

41

Page 43: Computer -Shop Management System

ElseEnd IfEnd Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)Frame1.BackColor = &H404040End Sub

Private Sub group_Click()

End Sub

Private Sub logo_Click()shop.ShowEnd Sub

Private Sub logoff_Click()loginform.ShowUnload MeEnd Sub

Private Sub part_Click()sellcomputerpart.ShowEnd Sub

Private Sub monthly_Click()

End Sub

Private Sub pass_Click()changepasswd.ShowEnd Sub

Private Sub payment_Click()

End Sub

Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)Frame1.BackColor = &H40&End Sub

Private Sub product_Click()addproduct.ShowEnd Sub

42

Page 44: Computer -Shop Management System

Private Sub quatation_Click()quotation.ShowEnd Sub

Private Sub soldcom_Click()reportpart.ShowEnd Sub

Private Sub Timer1_Timer()ibldate.Caption = Format(Date, "dd-mmm-yyyy")iblday.Caption = Format(Date, "dddd")ibltime.Caption = TimeEnd Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)Select Case Button.IndexCase 1: Case 2: asssembled_ClickCase 3: bronded_ClickCase 4: logoff_ClickCase 5: Exit_ClickEnd SelectEnd Sub

Sell computer partDim price As DoubleDim temp As StringDim bool As BooleanDim p1, p2 As DoubleDim w1, w2 As Integer

Private Sub Clearall_Click()

End Sub

Private Sub Combo19_Click()Combo27.Cleartemp = "RAM"If rs3.State = adStateOpen Then rs3.Close

43

Page 45: Computer -Shop Management System

rs3.Open "select Range from itemdetail where Itemname='" & temp & "' and Company='" & Comboram.Text & "' and Type='" & Combo19.Text & "'"While rs3.EOF = False Combo27.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combo20_Click()Combo28.Cleartemp = "Processor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Range from itemdetail where Itemname='" & temp & "' and Company='" & ComboProcessor.Text & "' and Type='" & Combo20.Text & "'"While rs3.EOF = False Combo28.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combo21_Click()Combo29.Cleartemp = "MotherBoard"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Range from itemdetail where Itemname='" & temp & "' and Company='" & Combomotherboard.Text & "' and Type='" & Combo21.Text & "'"While rs3.EOF = False Combo29.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combo22_Click()temp = "Mouse"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combomouse.Text & "' and Type='" & Combo22.Text & "'"While rs3.EOF = False Combo45.AddItem rs3(0) rs3.MoveNextWendEnd Sub

44

Page 46: Computer -Shop Management System

Private Sub Combo23_Click()Combo30.Cleartemp = "Speaker"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Range from itemdetail where Itemname='" & temp & "' and Company='" & Combospeaker.Text & "' and Type='" & Combo23.Text & "'"While rs3.EOF = False Combo30.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combo24_Click()Combo31.Cleartemp = "Monitor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Range from itemdetail where Itemname='" & temp & "' and Company='" & Combomonitor.Text & "' and Type='" & Combo24.Text & "'"While rs3.EOF = False Combo31.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combo25_Click()temp = "Modem"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combomodem.Text & "' and Type='" & Combo25.Text & "'"While rs3.EOF = False Combo49.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combo27_Click()temp = "RAM"Combo38.ClearIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Comboram.Text & "' and Type='" & Combo19.Text & "' and Range='" & Combo27.Text & "'"While rs3.EOF = False Combo38.AddItem rs3(0) rs3.MoveNext

45

Page 47: Computer -Shop Management System

WendEnd SubPrivate Sub Combo28_Click()Combo39.Cleartemp = "Processor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & ComboProcessor.Text & "' and Type='" & Combo20.Text & "' and Range='" & Combo28.Text & "'"While rs3.EOF = False Combo39.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combo29_Click()Combo40.Cleartemp = "MotherBoard"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combomotherboard.Text & "' and Type='" & Combo21.Text & "' and Range='" & Combo29.Text & "'"While rs3.EOF = False Combo40.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combo30_Click()temp = "Speaker"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combospeaker.Text & "' and Type='" & Combo23.Text & "' and Range='" & Combo30.Text & "'"While rs3.EOF = False Combo46.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combo31_Click()temp = "Monitor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combomonitor.Text & "' and Type='" & Combo24.Text & "' and Range='" & Combo31.Text & "'"While rs3.EOF = False Combo47.AddItem rs3(0) rs3.MoveNext

46

Page 48: Computer -Shop Management System

WendEnd SubPrivate Sub Combo34_Click()temp = "Printer"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Comboprinter.Text & "' and Type='" & Combo34.Text & "'"While rs3.EOF = False Combo51.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combo35_Click()Static i As IntegerStatic hdprice As DoubleIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo35.Text & "'"text4.Text = rs3(0)If i = 0 Then hdprice = Val(text4) price = price + hdpriceElse price = price - hdprice hdprice = Val(text4) price = price + hdpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo36_Click()Static cdrprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo36.Text & "'"Text5.Text = rs3(0)If i = 0 Then cdrprice = Val(Text5) price = price + cdrpriceElse price = price - cdrprice cdrprice = Val(Text5)

47

Page 49: Computer -Shop Management System

price = price + cdrpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End SubPrivate Sub Combo37_Click()Static cdwprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo37.Text & "'"Text6.Text = rs3(0)If i = 0 Then cdwprice = Val(Text6) price = price + cdwpriceElse price = price - cdwprice cdwprice = Val(Text6) price = price + cdwpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End SubPrivate Sub Combo38_Click()Static ramprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo38.Text & "'"Text7.Text = rs3(0)If i = 0 Then ramprice = Val(Text7) price = price + rampriceElse price = price - ramprice ramprice = Val(Text7) price = price + rampriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End Sub

48

Page 50: Computer -Shop Management System

Private Sub Combo39_Click()Static proprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo39.Text & "'"Text8.Text = rs3(0)If i = 0 Then proprice = Val(Text8) price = price + propriceElse price = price - proprice proprice = Val(Text8) price = price + propriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End SubPrivate Sub Combo40_Click()Static mbprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo40.Text & "'"Text9.Text = rs3(0)If i = 0 Then mbprice = Val(Text9) price = price + mbpriceElse price = price - mbprice mbprice = Val(Text9) price = price + mbpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End SubPrivate Sub Combo41_Click()Static fdprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo41.Text & "'"Text10 = rs3(0)

49

Page 51: Computer -Shop Management System

If i = 0 Then fdprice = Val(Text10) price = price + fdpriceElse price = price - fdprice fdprice = Val(Text10) price = price + fdpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End SubPrivate Sub Combo42_Click()Static dvdrprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo42.Text & "'"Text11.Text = rs3(0)If i = 0 Then dvdrprice = Val(Text11) price = price + dvdrpriceElse price = price - dvdrprice dvdrprice = Val(Text11) price = price + dvdrpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End SubPrivate Sub Combo43_Click()Static dvdwprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo43.Text & "'"Text12.Text = rs3(0)If i = 0 Then dvdwprice = Val(Text12) price = price + dvdwpriceElse price = price - dvdwprice dvdwprice = Val(Text12) price = price + dvdwpriceEnd If

50

Page 52: Computer -Shop Management System

i = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End Sub

Private Sub Combo44_Click()Static kbdprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo44.Text & "'"Text13.Text = rs3(0)If i = 0 Then kbdprice = Val(Text13) price = price + kbdpriceElse price = price - kbdprice kbdprice = Val(Text13) price = price + kbdpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo45_Click()Static msprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo45.Text & "'"Text14.Text = rs3(0)If i = 0 Then msprice = Val(Text14) price = price + mspriceElse price = price - msprice msprice = Val(Text14) price = price + mspriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

51

Page 53: Computer -Shop Management System

End Sub

Private Sub Combo46_Click()Static spkprice As DoubleStatic i As Integer'temp = "Speaker"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo46.Text & "'"Text15.Text = rs3(0)If i = 0 Then spkprice = Val(Text15) price = price + spkpriceElse price = price - spkprice spkprice = Val(Text15) price = price + spkpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo47_Click()Static monprice As DoubleStatic i As Integer'temp = "Monitor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo47.Text & "'"Text16.Text = rs3(0)If i = 0 Then monprice = Val(Text16) price = price + monpriceElse price = price - monprice monprice = Val(Text16) price = price + monpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End Sub

Private Sub Combo48_Click()

52

Page 54: Computer -Shop Management System

Static upsprice As DoubleStatic i As Integer'temp = "UPS"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo48.Text & "'"Text17.Text = rs3(0)If i = 0 Then upsprice = Val(Text17) price = price + upspriceElse price = price - upsprice upsprice = Val(Text17) price = price + upspriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End Sub

Private Sub Combo49_Click()Static modprice As DoubleStatic i As Integer'temp = "Modem"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo49.Text & "'"Text18.Text = rs3(0)If i = 0 Then modprice = Val(Text18) price = price + modpriceElse price = price - modprice modprice = Val(Text18) price = price + modpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

53

Page 55: Computer -Shop Management System

Private Sub Combo50_Click()Static lcardprice As DoubleStatic i As Integer'temp = "LAN Card"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo50.Text & "'"Text19.Text = rs3(0)If i = 0 Then lcardprice = Val(Text19) price = price + lcardpriceElse price = price - lcarddprice lcardprice = Val(Text19) price = price + lcardpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo51_Click()Static prprice As DoubleStatic i As Integer

If rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo51.Text & "'"Text20.Text = rs3(0)If i = 0 Then prprice = Val(Text20) price = price + prpriceElse price = price - prprice prprice = Val(Text20) price = price + prpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

54

Page 56: Computer -Shop Management System

Private Sub Combo52_Click()Static scnprice As DoubleStatic i As Integer'temp = "Scanner"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo52.Text & "'"Text27.Text = rs3(0)If i = 0 Then scnprice = Val(Text27) price = price + scnpriceElse price = price - scnprice scnprice = Val(Text27) price = price + scnpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo53_Click()Static cabprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo53.Text & "'"Text28.Text = rs3(0)If i = 0 Then cabprice = Val(Text28) price = price + cabpriceElse price = price - cabprice cabprice = Val(Text28) price = price + cabpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End Sub

Private Sub Combocabinet_Click()temp = "Cabinet"If rs3.State = adStateOpen Then rs3.Close

55

Page 57: Computer -Shop Management System

rs3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combocabinet.Text & "'"While rs3.EOF = False Combo53.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combocdrom_Click()Combo36.Cleartemp = "CD ROM"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combocdrom.Text & "'"While rs3.EOF = False Combo36.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combocdwriter_Click()Combo37.Cleartemp = "CD Writer"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combocdwriter.Text & "'"While rs3.EOF = False Combo37.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combodvdrom_Click()temp = "DVD ROM"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combodvdrom.Text & "'"While rs3.EOF = False Combo42.AddItem rs3(0) rs3.MoveNextWendEnd Sub

56

Page 58: Computer -Shop Management System

Private Sub Combodvdwriter_Click()temp = "DVD Writer"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combodvdwriter.Text & "'"While rs3.EOF = False Combo43.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combofloppy_Click()Combo41.Cleartemp = "Floppy Drive"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combofloppy.Text & "'"While rs3.EOF = False Combo41.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Comboharddisk_Click()temp = "Hard Disk"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Comboharddisk.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Comboharddisk.Text Then bool = True For i = 0 To Comboharddisktype.ListCount If Comboharddisktype.List(i) = rs3(1) Then bool = False Next If bool = True Then Comboharddisktype.AddItem rs3(1) Else bool = True End If rs3.MoveNextWendEnd Sub

57

Page 59: Computer -Shop Management System

Private Sub Comboharddiskrange_Click()Combo35.Cleartemp = "Hard Disk"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Comboharddisk.Text & "' and Type='" & Comboharddisktype.Text & "' and Range='" & Comboharddiskrange.Text & "'"While rs3.EOF = False Combo35.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Comboharddisktype_Click()Comboharddiskrange.Clearharddiskprice = ""temp = "Hard Disk"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Range from itemdetail where Itemname='" & temp & "' and Company='" & Comboharddisk.Text & "' and Type='" & Comboharddisktype.Text & "'"While rs3.EOF = False Comboharddiskrange.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combokeyboard_Click()temp = "Keyboad"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combokeyboard.Text & "'"While rs3.EOF = False Combo44.AddItem rs3(0) rs3.MoveNextWendEnd Sub

58

Page 60: Computer -Shop Management System

Private Sub Combolan_Click()temp = "LAN Card"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combolan.Text & "'"While rs3.EOF = False Combo50.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combomodem_Click()temp = "Modem"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Combomodem.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Combomodem.Text Then bool = True For i = 0 To Combo25.ListCount If Combo25.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo25.AddItem rs3(1) Else bool = True End If rs3.MoveNextWendEnd Sub

Private Sub Combomonitor_Click()temp = "Monitor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Combomonitor.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Combomonitor.Text Then bool = True For i = 0 To Combo24.ListCount If Combo24.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo24.AddItem rs3(1)

59

Page 61: Computer -Shop Management System

Else bool = True End If rs3.MoveNextWend

End Sub

Private Sub Combomotherboard_Click()temp = "MotherBoard"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Combomotherboard.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Combomotherboard.Text Then bool = True For i = 0 To Combo21.ListCount If Combo21.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo21.AddItem rs3(1) Else bool = True End If rs3.MoveNextWendEnd Sub

Private Sub Combomouse_Click()temp = "Mouse"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Combomouse.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Combomouse.Text Then bool = True For i = 0 To Combo22.ListCount If Combo22.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo22.AddItem rs3(1) Else bool = True End If rs3.MoveNextWend

60

Page 62: Computer -Shop Management System

End SubPrivate Sub Comboprinter_Click()temp = "Printer"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Comboprinter.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Comboprinter.Text Then bool = True For i = 0 To Combo34.ListCount If Combo34.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo34.AddItem rs3(1) Else bool = True End If rs3.MoveNextWendEnd Sub

Private Sub ComboProcessor_Click()temp = "Processor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & ComboProcessor.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = ComboProcessor.Text Then bool = True For i = 0 To Combo20.ListCount If Combo20.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo20.AddItem rs3(1) Else bool = True End If rs3.MoveNextWendEnd Sub

Private Sub Comboram_Click()

temp = "RAM"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Comboram.Text & "'"While rs3.EOF = False

61

Page 63: Computer -Shop Management System

If rs3.Fields(0).Value = Comboram.Text Then bool = True For i = 0 To Combo19.ListCount If Combo19.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo19.AddItem rs3(1) Else bool = True End If rs3.MoveNextWend

End SubPrivate Sub Comboscanner_Click()temp = "Scanner"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Comboscanner.Text & "'"While rs3.EOF = False Combo52.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combospeaker_Click()temp = "Speaker"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Combospeaker.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Combospeaker.Text Then bool = True For i = 0 To Combo23.ListCount If Combo23.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo23.AddItem rs3(1) Else bool = True End If rs3.MoveNextWendEnd Sub

Private Sub Comboups_Click()temp = "UPS"If rs3.State = adStateOpen Then rs3.Close

62

Page 64: Computer -Shop Management System

rs3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Comboups.Text & "'"While rs3.EOF = False Combo48.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Form_Load()

Call connectdatabaseCall setsoldrecordsetCall itemdetailCall customerrecordsetReciept.Visible = Falsetext4.Enabled = FalseText5.Enabled = FalseText6.Enabled = FalseText7.Enabled = FalseText8.Enabled = FalseText9.Enabled = FalseText10.Enabled = FalseText11.Enabled = FalseText12.Enabled = FalseText13.Enabled = FalseText14.Enabled = FalseText15.Enabled = FalseText16.Enabled = FalseText17.Enabled = FalseText18.Enabled = FalseText19.Enabled = FalseText20.Enabled = FalseText21.Enabled = FalseText22.Enabled = FalseText23.Enabled = FalseText27.Enabled = FalseText25.Enabled = FalseText28.Enabled = FalseText26.Enabled = FalseLabel32.Visible = FalseText25.Visible = Falseibldate.Caption = Date

'If rs2.State = 1 Then rs2.Close'rs2.Open "Select * from setsold", cs, adOpenKeyset, adLockOptimisticinvoice.Caption = "S" & (rs2.RecordCount + 1)

63

Page 65: Computer -Shop Management System

invoice.FontBold = TrueLabel38.Caption = "cust" & (rs2.RecordCount + 1)price = 0Dim bool As BooleanWhile rs3.EOF = False If rs3.Fields(0).Value = "Hard Disk" Then bool = True For i = 0 To Comboharddisk.ListCount If Comboharddisk.List(i) = rs3(1) Then bool = False Next If bool = True Then Comboharddisk.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "CD ROM" Then bool = True For i = 0 To Combocdrom.ListCount If Combocdrom.List(i) = rs3(1) Then bool = False Next If bool = True Then Combocdrom.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "CD Writer" Then bool = True For i = 0 To Combocdwriter.ListCount If Combocdwriter.List(i) = rs3(1) Then bool = False Next If bool = True Then Combocdwriter.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "RAM" Then bool = True For i = 0 To Comboram.ListCount If Comboram.List(i) = rs3(1) Then bool = False Next If bool = True Then Comboram.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Processor" Then

64

Page 66: Computer -Shop Management System

bool = True For i = 0 To ComboProcessor.ListCount If ComboProcessor.List(i) = rs3(1) Then bool = False Next If bool = True Then ComboProcessor.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "MotherBoard" Then bool = True For i = 0 To Combomotherboard.ListCount If Combomotherboard.List(i) = rs3(1) Then bool = False Next If bool = True Then Combomotherboard.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Floppy Drive" Then bool = True For i = 0 To Combofloppy.ListCount If Combofloppy.List(i) = rs3(1) Then bool = False Next If bool = True Then Combofloppy.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Cabinet" Then bool = True For i = 0 To Combocabinet.ListCount If Combocabinet.List(i) = rs3(1) Then bool = False Next If bool = True Then Combocabinet.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "DVD ROM" Then bool = True For i = 0 To Combodvdrom.ListCount If Combodvdrom.List(i) = rs3(1) Then bool = False Next If bool = True Then Combodvdrom.AddItem rs3(1)

65

Page 67: Computer -Shop Management System

Else bool = True End If ElseIf rs3.Fields(0).Value = "DVD Writer" Then bool = True For i = 0 To Combodvdwriter.ListCount If Combodvdwriter.List(i) = rs3(1) Then bool = False Next If bool = True Then Combodvdwriter.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Keyboad" Then bool = True For i = 0 To Combokeyboard.ListCount If Combokeyboard.List(i) = rs3(1) Then bool = False Next If bool = True Then Combokeyboard.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Mouse" Then bool = True For i = 0 To Combomouse.ListCount If Combomouse.List(i) = rs3(1) Then bool = False Next If bool = True Then Combomouse.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Speaker" Then bool = True For i = 0 To Combospeaker.ListCount If Combospeaker.List(i) = rs3(1) Then bool = False Next If bool = True Then Combospeaker.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Monitor" Then bool = True For i = 0 To Combomonitor.ListCount

66

Page 68: Computer -Shop Management System

If Combomonitor.List(i) = rs3(1) Then bool = False Next If bool = True Then Combomonitor.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "UPS" Then bool = True For i = 0 To Comboups.ListCount If Comboups.List(i) = rs3(1) Then bool = False Next If bool = True Then Comboups.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Modem" Then bool = True For i = 0 To Combomodem.ListCount If Combomodem.List(i) = rs3(1) Then bool = False Next If bool = True Then Combomodem.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "LAN Card" Then bool = True For i = 0 To Combolan.ListCount If Combolan.List(i) = rs3(1) Then bool = False Next If bool = True Then Combolan.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Printer" Then bool = True For i = 0 To Comboprinter.ListCount If Comboprinter.List(i) = rs3(1) Then bool = False Next If bool = True Then Comboprinter.AddItem rs3(1) Else bool = True

67

Page 69: Computer -Shop Management System

End If ElseIf rs3.Fields(0).Value = "Scanner" Then bool = True For i = 0 To Comboscanner.ListCount If Comboscanner.List(i) = rs3(1) Then bool = False Next If bool = True Then Comboscanner.AddItem rs3(1) Else bool = True End If End If rs3.MoveNextWend

End Sub

Private Sub Form_Unload(cancel As Integer)con.CloseEnd Sub

Private Sub lvButtons_H2_Click()Unload MeEnd SubPrivate Sub Reciept_Click()On Error Resume Next:sellcomputer.PrintFormEnd SubPrivate Sub save_Click()b = (MsgBox("are you sure you want to save?", vbYesNo, conformation))If b <> 6 ThenExit SubEnd IfIf Combo35.Text = "" ThenEnd IfIf Combo36.Text = "" ThenEnd IfIf Combo37.Text = "" ThenEnd IfIf Combo38.Text = "" ThenEnd IfIf Combo39.Text = "" ThenEnd IfIf Combo40.Text = "" ThenEnd IfIf Combo41.Text = "" Then

68

Page 70: Computer -Shop Management System

End IfIf Combo42.Text = "" ThenEnd IfIf Combo43.Text = "" ThenEnd IfIf Combo44.Text = "" ThenEnd IfIf Combo45.Text = "" ThenEnd IfIf Combo46.Text = "" ThenEnd IfIf Combo47.Text = "" ThenEnd IfIf Combo48.Text = "" ThenEnd IfIf Combo49.Text = "" ThenEnd IfIf Combo50.Text = "" ThenEnd IfIf Combo51.Text = "" ThenEnd IfIf Combo52.Text = "" ThenEnd IfIf Combo53.Text = "" ThenEnd IfIf vkTextBox1.Text = "" Then MsgBox " Customer Name is Empty" vkTextBox1.SetFocus Exit SubElseIf vkTextBox2.Text = "" Then MsgBox " Customer Address is Empty" vkTextBox2.SetFocusExit SubElseIf vkTextBox3.Text = "" Then MsgBox " Customer Pnone No is Empty" vkTextBox3.SetFocus Exit Sub

End IfIf text4.Text = "" And Text5.Text = "" And Text6.Text = "" And Text7.Text = "" And Text8.Text = "" _And Text9.Text = "" And Text10.Text = "" And Text11.Text = "" And Text12.Text = "" And Text13.Text = "" _And Text14.Text = "" And Text15.Text = "" And Text16.Text = "" And Text17.Text = "" And Text18.Text = "" _

69

Page 71: Computer -Shop Management System

And Text19.Text = "" And Text20.Text = "" And Text27.Text = "" And Text28.Text = "" ThenMsgBox "Any product is not choosen by you. Please choose any product."Exit SubEnd If

If Text24.Text = "" Then MsgBox " Payment Amount is Empty", vbInformation Text24.SetFocus Exit SubElseIf Not IsNumeric(Text24) Then MsgBox " Payment Amount should be numaric", vbInformation Text24.Text = "" Text24.SetFocus Exit Sub Elsecon.BeginTranscon.Execute "Insert into setsold values('" & invoice.Caption & "','" & ibldate.Caption & "','" & Combo35.Text & "','" & Combo36.Text & "','" & Combo37.Text & "','" & Combo38.Text & "','" & Combo39.Text & "','" & Combo40.Text & "','" & Combo41.Text & "','" & Combo42.Text & "','" & Combo43.Text & "','" & Combo44.Text & "','" & Combo45.Text & "','" & Combo46.Text & "','" & Combo47.Text & "','" & Combo48.Text & "','" & Combo49.Text & "','" & Combo50.Text & "','" & Combo51.Text & "','" & Combo52.Text & "','" & Combo53.Text & "'," & Text23.Text & ")"con.CommitTranscon.BeginTranscon.Execute "Insert into Balance values('" & vkTextBox1.Text & "','" & invoice.Caption & "'," & Text23.Text & "," & Text24.Text & ",'" & ibldate.Caption & "','" & Text26.Text & "')"con.CommitTranscon.BeginTranscon.Execute "Insert into customer values('" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Text26.Text & "','" & invoice.Caption & "')"con.CommitTransIf Text26.Visible = True And Val(Text26.Text) > 0 Then If rs4.State = 1 Then rs4.Close rs4.Open "Select Customername from Customer where Customername='" & vkTextBox1.Text & "'" If rs4.EOF = False Then con.BeginTrans con.Execute " Update Customer set Balance= Balance + " & Text26.Text & " where Customername='" & vkTextBox1.Text & "'" con.CommitTrans

70

Page 72: Computer -Shop Management System

Else con.BeginTrans' cs.Execute "Insert into Customer values('" & Text1.Text & "','" & Text2.Text & "','" & Text3.Text & "'," & Text26.Text & ")" con.CommitTrans End IfEnd IfIf Combo35.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo35.Text & "'"p1 = rs3(0)w1 = rs3(1)

sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,type,range,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label11.Caption & "','" & Comboharddisk.Text & "','" & Comboharddisktype.Text & "','" & Comboharddiskrange.Text & "','" & p1 & "','" & text4.Text & "','" & Combo35.Text & "','" & w1 & "')"

Call insertqueryEnd IfIf Combo36.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo36.Text & "'"p2 = rs3(0)w2 = rs3(1)

sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label12.Caption & "','" & Combocdrom.Text & "','" & p2 & "','" & Text5.Text & "','" & Combo36.Text & "','" & w2 & "')"

Call insertqueryEnd IfIf Combo37.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo37.Text & "'"p30 = rs3(0)w30 = rs3(1)

71

Page 73: Computer -Shop Management System

sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label4.Caption & "','" & Combocdwriter.Text & "','" & p30 & "','" & Text6.Text & "','" & Combo37.Text & "','" & w30 & "')"

Call insertqueryEnd IfIf Combo38.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo38.Text & "'"p31 = rs3(0)w31 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,type,range,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label14.Caption & "','" & Comboram.Text & "','" & Combo19.Text & "','" & Combo27.Text & "','" & p31 & "','" & Text7.Text & "','" & Combo38.Text & "','" & w31 & "')"

Call insertqueryEnd IfIf Combo39.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo39.Text & "'"p3 = rs3(0)w3 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,type,range,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label15.Caption & "','" & ComboProcessor.Text & "','" & Combo20.Text & "','" & Combo28.Text & "','" & p3 & "','" & Text8.Text & "','" & Combo39.Text & "','" & w3 & "')"

Call insertqueryEnd IfIf Combo40.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo40.Text & "'"p4 = rs3(0)

72

Page 74: Computer -Shop Management System

w4 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,type,range,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label16.Caption & "','" & Combomotherboard.Text & "','" & Combo21.Text & "','" & Combo29.Text & "','" & p4 & "','" & Text9.Text & "','" & Combo40.Text & "','" & w4 & "')"

Call insertqueryEnd IfIf Combo41.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo41.Text & "'"p5 = rs3(0)w5 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label17.Caption & "','" & Combofloppy.Text & "','" & p5 & "','" & Text10.Text & "','" & Combo41.Text & "','" & w5 & "')"

Call insertqueryEnd IfIf Combo42.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo42.Text & "'"p6 = rs3(0)w6 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label19.Caption & "','" & Combodvdrom.Text & "','" & p6 & "','" & Text11.Text & "','" & Combo42.Text & "','" & w6 & "')"

Call insertqueryEnd IfIf Combo43.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo43.Text & "'"p7 = rs3(0)

73

Page 75: Computer -Shop Management System

w7 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label20.Caption & "','" & Combodvdwriter.Text & "','" & p7 & "','" & Text12.Text & "','" & Combo43.Text & "','" & w7 & "')"

Call insertqueryEnd IfIf Combo44.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo44.Text & "'"p8 = rs3(0)w8 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label21.Caption & "','" & Combokeyboard.Text & "','" & p8 & "','" & Text13.Text & "','" & Combo44.Text & "','" & w8 & "')"

Call insertqueryEnd IfIf Combo45.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo45.Text & "'"p9 = rs3(0)w9 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,type,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label22.Caption & "','" & Combomouse.Text & "','" & Combo22.Text & "', '" & p9 & "','" & Text14.Text & "','" & Combo45.Text & "','" & w9 & "')"

Call insertqueryEnd IfIf Combo46.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo46.Text & "'"p10 = rs3(0)

74

Page 76: Computer -Shop Management System

w10 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,type,range,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label23.Caption & "','" & Combospeaker.Text & "','" & Combo23.Text & "','" & Combo30.Text & "','" & p10 & "','" & Text15.Text & "','" & Combo46.Text & "','" & w10 & "')"

Call insertqueryEnd IfIf Combo47.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo47.Text & "'"p11 = rs3(0)w11 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,type,range,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label26.Caption & "','" & Combomonitor.Text & "','" & Combo24.Text & "','" & Combo31.Text & "','" & p11 & "','" & Text16.Text & "','" & Combo47.Text & "','" & w11 & "')"

Call insertqueryEnd IfIf Combo48.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo48.Text & "'"p12 = rs3(0)w12 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label24.Caption & "','" & Comboups.Text & "','" & p12 & "','" & Text17.Text & "','" & Combo48.Text & "','" & w12 & "')"

Call insertqueryEnd IfIf Combo49.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo49.Text & "'"

75

Page 77: Computer -Shop Management System

p13 = rs3(0)w13 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,type,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label25.Caption & "','" & Combomodem.Text & "','" & Combo25.Text & "','" & p13 & "','" & Text18.Text & "','" & Combo49.Text & "','" & w13 & "')"

Call insertqueryEnd IfIf Combo50.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo50.Text & "'"p14 = rs3(0)w14 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label35.Caption & "','" & Combolan.Text & "','" & p14 & "','" & Text19.Text & "','" & Combo50.Text & "','" & w14 & "')"

Call insertqueryEnd IfIf Combo51.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo51.Text & "'"p15 = rs3(0)w15 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,type,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label36.Caption & "','" & Comboprinter.Text & "','" & Combo34.Text & "','" & p15 & "','" & Text20.Text & "','" & Combo51.Text & "','" & w15 & "')"

Call insertqueryEnd IfIf Combo52.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Close

76

Page 78: Computer -Shop Management System

rs3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo52.Text & "'"p16 = rs3(0)w16 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label18.Caption & "','" & Comboscanner.Text & "','" & p16 & "','" & Text27.Text & "','" & Combo52.Text & "','" & w16 & "')"

Call insertqueryEnd IfIf Combo53.Text <> "" ThenIf rs3.State = adStateOpen Then rs3.Closers3.Open "select buyingprice,warenty from itemdetail where Serialno='" & Combo53.Text & "'"p17 = rs3(0)w17 = rs3(1)sql = "insert into sold(invoice,selldate,customername,address,customerphone,itemname,company,buyingprice,price,serialno,warenty) values('" & invoice.Caption & "','" & ibldate.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Label11.Caption & "','" & Combocabinet.Text & "','" & p17 & "','" & Text28.Text & "','" & Combo53.Text & "','" & w17 & "')"

Call insertqueryEnd IfMsgBox "Data is Saved Properly"End Ifsave.Visible = FalseReciept.Visible = TrueEnd SubPrivate Sub sellnew_Click()save.Enabled = TrueUnload Mesellcomputer.ShowEnd Sub

Private Sub Text24_Change()If Text24.Text = "" ThenExit SubEnd If

If Not IsNumeric(Text24) Then MsgBox " Payment Amount should be numaric"

77

Page 79: Computer -Shop Management System

Text24.Text = "" Text24.SetFocus End IfLabel33.Visible = TrueText26.Visible = Trueprice = Val(Text23) - Val(Text24)If price < 0 ThenMsgBox "Payment can not much than total price.", vbCritical Label33.Visible = False Text26.Visible = False Text24.Text = "" Exit SubElse Text26 = priceEnd If

End SubPrivate Sub vkOptionButton1_Change(Value As CheckBoxConstants)Label32.Visible = FalseText25.Visible = FalseEnd Sub

Private Sub vkOptionButton2_Change(Value As CheckBoxConstants)Label33.Visible = True Text26.Visible = True Text26 = Val(Text23) Text24 = 0 save.SetFocusEnd Sub

Private Sub vkOptionButton3_Change(Value As CheckBoxConstants) Label32.Visible = True Label32.Caption = "Cheque Number" Text25.Visible = True

End Sub

Private Sub vkOptionButton4_Change(Value As CheckBoxConstants) Label32.Visible = True Label32.Caption = "Demand Draft Number" Text25.Visible = TrueEnd Sub

Private Sub vkTextBox1_KeyPress(KeyAscii As Integer)If KeyAscii = 13 Then

78

Page 80: Computer -Shop Management System

If rs4.State = 1 Then rs4.Close rs4.Open " Select Customeraddress,Customerphone from Customer where Customername='" & Text1.Text & "'", cs If rs4.EOF = False Then vkTextBox2.Text = rs4(0) vkTextBox2.Text = rs4(1) Comboharddisk.SetFocus Else Text2.SetFocus End IfEnd IfEnd Sub

Private Sub vkTextBox3_Change()If vkTextBox3.Text = "" ThenExit SubEnd IfIf Not IsNumeric(vkTextBox3.Text) Then MsgBox " Customer Phone should be numaric" vkTextBox3.Text = "" vkTextBox3.SetFocus Exit Sub End If End Sub

Private Sub vkTextBox3_LostFocus()If Len(vkTextBox3.Text) < 10 Or Len(vkTextBox3.Text) > 12 ThenMsgBox "Please Enter a valid Mobile number"vkTextBox3.Text = ""vkTextBox3.SetFocusExit SubEnd IfEnd Sub

Sell computer systemDim p As Double

Private Sub Form_Load()Call connectdatabaseCall computersysrecordsetCall systemsoldrecordsetCall customerrecordset

lvButtons_H8.Visible = False

79

Page 81: Computer -Shop Management System

ibldate.Caption = Dateinvoice.Caption = "Sbronded" & (rs7.RecordCount + 1)invoice.FontBold = TrueEnd Sub

Private Sub Form_Unload(cancel As Integer)con.CloseEnd Sub

Private Sub lvButtons_H1_Click()Unload MeEnd Sub

Private Sub lvButtons_H2_Click()b = (MsgBox("are you sure you want to sell?", vbYesNo, conformation))If Combocompany.Text = "" And model.Text = "" And categary.Text = "" And combohard.Text = "" And comboram.Text = "" _And Combomother.Text = "" And ComboProcessor.Text = "" And Combomonitor.Text = "" And txtsell.Text = "" ThenMsgBox "Any product is not choosen by you. Please choose any product."Exit SubEnd IfIf vkTextBox1.Text = "" Then MsgBox " Customer Name is Empty" vkTextBox1.SetFocus Exit SubElseIf vkTextBox2.Text = "" Then MsgBox " Customer Address is Empty" vkTextBox2.SetFocusExit SubElseIf vkTextBox3.Text = "" Then MsgBox " Customer Pnone No is Empty" vkTextBox3.SetFocus Exit Sub End If

If Text1.Text = "" Then MsgBox " Payment Amount is Empty" Text1.SetFocus Exit Sub End If

con.BeginTrans

80

Page 82: Computer -Shop Management System

con.Execute "Insert into Balance values('" & vkTextBox1.Text & "','" & invoice.Caption & "','" & txtsell.Text & "','" & Text1.Text & "','" & ibldate.Caption & "','" & Text2.Text & "')"con.CommitTranscon.BeginTranscon.Execute "Insert into customer values('" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & Text2.Text & "','" & invoice.Caption & "')"con.CommitTrans

If rs1.State = adStateOpen Then rs1.Closers1.Open "select buying_value from computersys where Serialno=" & serial.Text & ""p = rs1(0)

sql = "insert into systemsold(seriel,invoice,customername,address,phone,selldate,buyingvalue,price,companyname,categary,model,harddisk,ram,motherboard,processor,monitor,other,warranty) values('" & serial.Text & "','" & invoice.Caption & "','" & vkTextBox1.Text & "','" & vkTextBox2.Text & "','" & vkTextBox3.Text & "','" & ibldate.Caption & "','" & p & "','" & txtsell.Text & "','" & Combocompany.Text & "','" & categary.Text & "','" & model.Text & "','" & combohard.Text & "','" & comboram.Text & "','" & Combomother.Text & "','" & ComboProcessor.Text & "','" & Combomonitor.Text & "','" & other.Text & "','" & txtwarranty.Text & "')"MsgBox (sql)Call insertquery

MsgBox "Data is Saved Properly"lvButtons_H2.Visible = FalselvButtons_H8.Visible = True

End Sub

Private Sub lvButtons_H3_Click()rs1.MoveLast

serial.Text = rs1!serialnoCombocompany.Text = rs1!companymodel.Text = rs1!modelcategary.Text = rs1!categarycombohard.Text = rs1!harddiskcomboram.Text = rs1!ramCombomother.Text = rs1!motherboardComboProcessor.Text = rs1!processorCombomonitor.Text = rs1!monitor

81

Page 83: Computer -Shop Management System

other.Text = rs1!other

txtsell.Text = rs1!selling_valuetxtwarranty.Text = rs1!warranty

End Sub

Private Sub lvButtons_H4_Click()On Error Resume NextIf rs1.EOF = False Thenrs1.MoveNextserial.Text = rs1!serialnoCombocompany.Text = rs1!companymodel.Text = rs1!modelcategary.Text = rs1!categarycombohard.Text = rs1!harddiskcomboram.Text = rs1!ramCombomother.Text = rs1!motherboardComboProcessor.Text = rs1!processorCombomonitor.Text = rs1!monitorother.Text = rs1!othertxtsell.Text = rs1!selling_valuetxtwarranty.Text = rs1!warrantyEnd IfEnd Sub

Private Sub lvButtons_H5_Click()On Error GoTo l1If rs1.BOF = False Thenrs1.MovePreviousserial.Text = rs1!serialnoCombocompany.Text = rs1!companymodel.Text = rs1!modelcategary.Text = rs1!categarycombohard.Text = rs1!harddiskcomboram.Text = rs1!ramCombomother.Text = rs1!motherboardComboProcessor.Text = rs1!processorCombomonitor.Text = rs1!monitorother.Text = rs1!other

txtsell.Text = rs1!selling_valuetxtwarranty.Text = rs1!warrantyEnd IfExit Subl1:

82

Page 84: Computer -Shop Management System

MsgBox "You are at the first record..."

End Sub

Private Sub lvButtons_H6_Click()rs1.MoveFirst

serial.Text = rs1!serialnoCombocompany.Text = rs1!companymodel.Text = rs1!modelcategary.Text = rs1!categarycombohard.Text = rs1!harddiskcomboram.Text = rs1!ramCombomother.Text = rs1!motherboardComboProcessor.Text = rs1!processorCombomonitor.Text = rs1!monitorother.Text = rs1!other

txtsell.Text = rs1!selling_valuetxtwarranty.Text = rs1!warrantyEnd Sub

Private Sub lvButtons_H8_Click()On Error Resume Next:Sellbrondedcom.PrintFormEnd Sub

Private Sub Text1_Change()If Text1.Text = "" ThenExit SubEnd If

If Not IsNumeric(Text1) Then MsgBox " Payment Amount should be numaric" Text1.Text = "" Text1.SetFocus End IfLabel21.Visible = TrueText2.Visible = Trueprice = Val(txtsell) - Val(Text1)If price < 0 ThenMsgBox "Payment can not much than total price.", vbCritical Label21.Visible = False Text2.Visible = False Text1.Text = "" Exit Sub

83

Page 85: Computer -Shop Management System

Else Text2 = priceEnd IfEnd Sub

Private Sub vkTextBox3_Change()If vkTextBox3.Text = "" ThenExit SubEnd IfIf Not IsNumeric(vkTextBox3.Text) Then MsgBox " Customer Phone should be numaric" vkTextBox3.Text = "" vkTextBox3.SetFocus Exit Sub End If End Sub

Make quotationDim price As DoubleDim temp As StringDim bool As BooleanDim p1, p2 As DoubleDim w1, w2 As IntegerPrivate Sub lvButtons_H1_Click()On Error Resume Next:quotation.PrintFormEnd SubPrivate Sub Combo19_Click()Combo27.Cleartemp = "RAM"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Range from itemdetail where Itemname='" & temp & "' and Company='" & Comboram.Text & "' and Type='" & Combo19.Text & "'"While rs3.EOF = False Combo27.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combo20_Click()Combo28.Cleartemp = "Processor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Range from itemdetail where Itemname='" & temp & "' and Company='" & ComboProcessor.Text & "' and Type='" & Combo20.Text & "'"

84

Page 86: Computer -Shop Management System

While rs3.EOF = False Combo28.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combo21_Click()Combo29.Cleartemp = "MotherBoard"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Range from itemdetail where Itemname='" & temp & "' and Company='" & Combomotherboard.Text & "' and Type='" & Combo21.Text & "'"While rs3.EOF = False Combo29.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combo22_Click()temp = "Mouse"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combomouse.Text & "' and Type='" & Combo22.Text & "'"While rs3.EOF = False Combo45.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combo23_Click()Combo30.Cleartemp = "Speaker"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Range from itemdetail where Itemname='" & temp & "' and Company='" & Combospeaker.Text & "' and Type='" & Combo23.Text & "'"While rs3.EOF = False Combo30.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combo24_Click()Combo31.Cleartemp = "Monitor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Range from itemdetail where Itemname='" & temp & "' and Company='" & Combomonitor.Text & "' and Type='" & Combo24.Text & "'"While rs3.EOF = False Combo31.AddItem rs3(0)

85

Page 87: Computer -Shop Management System

rs3.MoveNextWendEnd SubPrivate Sub Combo25_Click()temp = "Modem"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combomodem.Text & "' and Type='" & Combo25.Text & "'"While rs3.EOF = False Combo49.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combo27_Click()temp = "RAM"Combo38.ClearIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Comboram.Text & "' and Type='" & Combo19.Text & "' and Range='" & Combo27.Text & "'"While rs3.EOF = False Combo38.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combo28_Click()Combo39.Cleartemp = "Processor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & ComboProcessor.Text & "' and Type='" & Combo20.Text & "' and Range='" & Combo28.Text & "'"While rs3.EOF = False Combo39.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combo29_Click()Combo40.Cleartemp = "MotherBoard"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combomotherboard.Text & "' and Type='" & Combo21.Text & "' and Range='" & Combo29.Text & "'"While rs3.EOF = False

86

Page 88: Computer -Shop Management System

Combo40.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combo30_Click()temp = "Speaker"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combospeaker.Text & "' and Type='" & Combo23.Text & "' and Range='" & Combo30.Text & "'"While rs3.EOF = False Combo46.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combo31_Click()temp = "Monitor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combomonitor.Text & "' and Type='" & Combo24.Text & "' and Range='" & Combo31.Text & "'"While rs3.EOF = False Combo47.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combo34_Click()temp = "Printer"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Comboprinter.Text & "' and Type='" & Combo34.Text & "'"While rs3.EOF = False Combo51.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combo35_Click()Static i As IntegerStatic hdprice As DoubleIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo35.Text & "'"text4.Text = rs3(0)

87

Page 89: Computer -Shop Management System

If i = 0 Then hdprice = Val(text4) price = price + hdpriceElse price = price - hdprice hdprice = Val(text4) price = price + hdpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo36_Click()Static cdrprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo36.Text & "'"Text5.Text = rs3(0)If i = 0 Then cdrprice = Val(Text5) price = price + cdrpriceElse price = price - cdrprice cdrprice = Val(Text5) price = price + cdrpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo37_Click()Static cdwprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo37.Text & "'"Text6.Text = rs3(0)If i = 0 Then cdwprice = Val(Text6)

88

Page 90: Computer -Shop Management System

price = price + cdwpriceElse price = price - cdwprice cdwprice = Val(Text6) price = price + cdwpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End SubPrivate Sub Combo38_Click()Static ramprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo38.Text & "'"Text7.Text = rs3(0)If i = 0 Then ramprice = Val(Text7) price = price + rampriceElse price = price - ramprice ramprice = Val(Text7) price = price + rampriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End Sub

Private Sub Combo39_Click()Static proprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo39.Text & "'"Text8.Text = rs3(0)If i = 0 Then proprice = Val(Text8) price = price + propriceElse price = price - proprice proprice = Val(Text8) price = price + propriceEnd If

89

Page 91: Computer -Shop Management System

i = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End SubPrivate Sub Combo40_Click()Static mbprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo40.Text & "'"Text9.Text = rs3(0)If i = 0 Then mbprice = Val(Text9) price = price + mbpriceElse price = price - mbprice mbprice = Val(Text9) price = price + mbpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End SubPrivate Sub Combo41_Click()Static fdprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo41.Text & "'"Text10 = rs3(0)If i = 0 Then fdprice = Val(Text10) price = price + fdpriceElse price = price - fdprice fdprice = Val(Text10) price = price + fdpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End Sub

90

Page 92: Computer -Shop Management System

Private Sub Combo42_Click()Static dvdrprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo42.Text & "'"Text11.Text = rs3(0)If i = 0 Then dvdrprice = Val(Text11) price = price + dvdrpriceElse price = price - dvdrprice dvdrprice = Val(Text11) price = price + dvdrpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo43_Click()Static dvdwprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo43.Text & "'"Text12.Text = rs3(0)If i = 0 Then dvdwprice = Val(Text12) price = price + dvdwpriceElse price = price - dvdwprice dvdwprice = Val(Text12) price = price + dvdwpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

91

Page 93: Computer -Shop Management System

End Sub

Private Sub Combo44_Click()Static kbdprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo44.Text & "'"Text13.Text = rs3(0)If i = 0 Then kbdprice = Val(Text13) price = price + kbdpriceElse price = price - kbdprice kbdprice = Val(Text13) price = price + kbdpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo45_Click()Static msprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo45.Text & "'"Text14.Text = rs3(0)If i = 0 Then msprice = Val(Text14) price = price + mspriceElse price = price - msprice msprice = Val(Text14) price = price + mspriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo46_Click()Static spkprice As Double

92

Page 94: Computer -Shop Management System

Static i As Integer'temp = "Speaker"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo46.Text & "'"Text15.Text = rs3(0)If i = 0 Then spkprice = Val(Text15) price = price + spkpriceElse price = price - spkprice spkprice = Val(Text15) price = price + spkpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo47_Click()Static monprice As DoubleStatic i As Integer'temp = "Monitor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo47.Text & "'"Text16.Text = rs3(0)If i = 0 Then monprice = Val(Text16) price = price + monpriceElse price = price - monprice monprice = Val(Text16) price = price + monpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End Sub

Private Sub Combo48_Click()Static upsprice As DoubleStatic i As Integer'temp = "UPS"If rs3.State = adStateOpen Then rs3.Close

93

Page 95: Computer -Shop Management System

rs3.Open "select Price from itemdetail where Serialno='" & Combo48.Text & "'"Text17.Text = rs3(0)If i = 0 Then upsprice = Val(Text17) price = price + upspriceElse price = price - upsprice upsprice = Val(Text17) price = price + upspriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End Sub

Private Sub Combo49_Click()Static modprice As DoubleStatic i As Integer'temp = "Modem"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo49.Text & "'"Text18.Text = rs3(0)If i = 0 Then modprice = Val(Text18) price = price + modpriceElse price = price - modprice modprice = Val(Text18) price = price + modpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End SubPrivate Sub Combo50_Click()Static lcardprice As DoubleStatic i As Integer'temp = "LAN Card"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo50.Text & "'"Text19.Text = rs3(0)If i = 0 Then lcardprice = Val(Text19)

94

Page 96: Computer -Shop Management System

price = price + lcardpriceElse price = price - lcarddprice lcardprice = Val(Text19) price = price + lcardpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo51_Click()Static prprice As DoubleStatic i As Integer

If rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo51.Text & "'"Text20.Text = rs3(0)If i = 0 Then prprice = Val(Text20) price = price + prpriceElse price = price - prprice prprice = Val(Text20) price = price + prpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo52_Click()Static scnprice As DoubleStatic i As Integer'temp = "Scanner"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo52.Text & "'"Text27.Text = rs3(0)If i = 0 Then scnprice = Val(Text27) price = price + scnpriceElse

95

Page 97: Computer -Shop Management System

price = price - scnprice scnprice = Val(Text27) price = price + scnpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)

End Sub

Private Sub Combo53_Click()Static cabprice As DoubleStatic i As IntegerIf rs3.State = adStateOpen Then rs3.Closers3.Open "select Price from itemdetail where Serialno='" & Combo53.Text & "'"Text28.Text = rs3(0)If i = 0 Then cabprice = Val(Text28) price = price + cabpriceElse price = price - cabprice cabprice = Val(Text28) price = price + cabpriceEnd Ifi = i + 1Text21 = priceText22 = price * 4 / 100Text23 = price + Val(Text22)End Sub

Private Sub Combocabinet_Click()temp = "Cabinet"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combocabinet.Text & "'"While rs3.EOF = False Combo53.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combocdrom_Click()Combo36.Cleartemp = "CD ROM"If rs3.State = adStateOpen Then rs3.Close

96

Page 98: Computer -Shop Management System

rs3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combocdrom.Text & "'"While rs3.EOF = False Combo36.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combocdwriter_Click()Combo37.Cleartemp = "CD Writer"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combocdwriter.Text & "'"While rs3.EOF = False Combo37.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combodvdrom_Click()temp = "DVD ROM"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combodvdrom.Text & "'"While rs3.EOF = False Combo42.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combodvdwriter_Click()temp = "DVD Writer"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combodvdwriter.Text & "'"While rs3.EOF = False Combo43.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combofloppy_Click()Combo41.Cleartemp = "Floppy Drive"If rs3.State = adStateOpen Then rs3.Close

97

Page 99: Computer -Shop Management System

rs3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combofloppy.Text & "'"While rs3.EOF = False Combo41.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Comboharddisk_Click()temp = "Hard Disk"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Comboharddisk.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Comboharddisk.Text Then bool = True For i = 0 To Comboharddisktype.ListCount If Comboharddisktype.List(i) = rs3(1) Then bool = False Next If bool = True Then Comboharddisktype.AddItem rs3(1) Else bool = True End If rs3.MoveNextWendEnd SubPrivate Sub Comboharddiskrange_Click()Combo35.Cleartemp = "Hard Disk"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Comboharddisk.Text & "' and Type='" & Comboharddisktype.Text & "' and Range='" & Comboharddiskrange.Text & "'"While rs3.EOF = False Combo35.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Comboharddisktype_Click()Comboharddiskrange.Clearharddiskprice = ""temp = "Hard Disk"If rs3.State = adStateOpen Then rs3.Close

98

Page 100: Computer -Shop Management System

rs3.Open "select Range from itemdetail where Itemname='" & temp & "' and Company='" & Comboharddisk.Text & "' and Type='" & Comboharddisktype.Text & "'"While rs3.EOF = False Comboharddiskrange.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combokeyboard_Click()temp = "Keyboad"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combokeyboard.Text & "'"While rs3.EOF = False Combo44.AddItem rs3(0) rs3.MoveNextWendEnd SubPrivate Sub Combolan_Click()temp = "LAN Card"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Combolan.Text & "'"While rs3.EOF = False Combo50.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combomodem_Click()temp = "Modem"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Combomodem.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Combomodem.Text Then bool = True For i = 0 To Combo25.ListCount If Combo25.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo25.AddItem rs3(1) Else bool = True End If rs3.MoveNextWend

99

Page 101: Computer -Shop Management System

End Sub

Private Sub Combomonitor_Click()temp = "Monitor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Combomonitor.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Combomonitor.Text Then bool = True For i = 0 To Combo24.ListCount If Combo24.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo24.AddItem rs3(1) Else bool = True End If rs3.MoveNextWend

End Sub

Private Sub Combomotherboard_Click()temp = "MotherBoard"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Combomotherboard.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Combomotherboard.Text Then bool = True For i = 0 To Combo21.ListCount If Combo21.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo21.AddItem rs3(1) Else bool = True End If rs3.MoveNextWendEnd SubPrivate Sub Combomouse_Click()temp = "Mouse"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Combomouse.Text & "'"While rs3.EOF = False

100

Page 102: Computer -Shop Management System

If rs3.Fields(0).Value = Combomouse.Text Then bool = True For i = 0 To Combo22.ListCount If Combo22.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo22.AddItem rs3(1) Else bool = True End If rs3.MoveNextWendEnd SubPrivate Sub Comboprinter_Click()temp = "Printer"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Comboprinter.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Comboprinter.Text Then bool = True For i = 0 To Combo34.ListCount If Combo34.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo34.AddItem rs3(1) Else bool = True End If rs3.MoveNextWendEnd Sub

Private Sub ComboProcessor_Click()temp = "Processor"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & ComboProcessor.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = ComboProcessor.Text Then bool = True For i = 0 To Combo20.ListCount If Combo20.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo20.AddItem rs3(1) Else bool = True End If

101

Page 103: Computer -Shop Management System

rs3.MoveNextWendEnd Sub

Private Sub Comboram_Click()

temp = "RAM"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Comboram.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Comboram.Text Then bool = True For i = 0 To Combo19.ListCount If Combo19.List(i) = rs3(1) Then bool = False Next If bool = True Then Combo19.AddItem rs3(1) Else bool = True End If rs3.MoveNextWend

End SubPrivate Sub Comboscanner_Click()temp = "Scanner"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Comboscanner.Text & "'"While rs3.EOF = False Combo52.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Combospeaker_Click()temp = "Speaker"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Company,Type from itemdetail where Itemname='" & temp & "' and Company='" & Combospeaker.Text & "'"While rs3.EOF = False If rs3.Fields(0).Value = Combospeaker.Text Then bool = True For i = 0 To Combo23.ListCount If Combo23.List(i) = rs3(1) Then bool = False Next If bool = True Then

102

Page 104: Computer -Shop Management System

Combo23.AddItem rs3(1) Else bool = True End If rs3.MoveNextWendEnd SubPrivate Sub Comboups_Click()temp = "UPS"If rs3.State = adStateOpen Then rs3.Closers3.Open "select Serialno from itemdetail where Itemname='" & temp & "' and Company='" & Comboups.Text & "'"While rs3.EOF = False Combo48.AddItem rs3(0) rs3.MoveNextWendEnd Sub

Private Sub Form_Load()

Call connectdatabaseCall setsoldrecordsetCall itemdetailCall customerrecordset

text4.Enabled = FalseText5.Enabled = FalseText6.Enabled = FalseText7.Enabled = FalseText8.Enabled = FalseText9.Enabled = FalseText10.Enabled = FalseText11.Enabled = FalseText12.Enabled = FalseText13.Enabled = FalseText14.Enabled = FalseText15.Enabled = FalseText16.Enabled = FalseText17.Enabled = FalseText18.Enabled = FalseText19.Enabled = FalseText20.Enabled = FalseText21.Enabled = FalseText22.Enabled = FalseText23.Enabled = FalseText27.Enabled = False

103

Page 105: Computer -Shop Management System

Text28.Enabled = False'Text26.Enabled = False'Label32.Visible = False'Text25.Visible = Falseibldate.Caption = Date

'If rs2.State = 1 Then rs2.Close'rs2.Open "Select * from setsold", cs, adOpenKeyset, adLockOptimistic'invoice.Caption = "S" & (rs2.RecordCount + 1)'invoice.FontBold = True'Label38.Caption = "cust" & (rs2.RecordCount + 1)price = 0Dim bool As BooleanWhile rs3.EOF = False If rs3.Fields(0).Value = "Hard Disk" Then bool = True For i = 0 To Comboharddisk.ListCount If Comboharddisk.List(i) = rs3(1) Then bool = False Next If bool = True Then Comboharddisk.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "CD ROM" Then bool = True For i = 0 To Combocdrom.ListCount If Combocdrom.List(i) = rs3(1) Then bool = False Next If bool = True Then Combocdrom.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "CD Writer" Then bool = True For i = 0 To Combocdwriter.ListCount If Combocdwriter.List(i) = rs3(1) Then bool = False Next If bool = True Then Combocdwriter.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "RAM" Then

104

Page 106: Computer -Shop Management System

bool = True For i = 0 To Comboram.ListCount If Comboram.List(i) = rs3(1) Then bool = False Next If bool = True Then Comboram.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Processor" Then bool = True For i = 0 To ComboProcessor.ListCount If ComboProcessor.List(i) = rs3(1) Then bool = False Next If bool = True Then ComboProcessor.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "MotherBoard" Then bool = True For i = 0 To Combomotherboard.ListCount If Combomotherboard.List(i) = rs3(1) Then bool = False Next If bool = True Then Combomotherboard.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Floppy Drive" Then bool = True For i = 0 To Combofloppy.ListCount If Combofloppy.List(i) = rs3(1) Then bool = False Next If bool = True Then Combofloppy.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Cabinet" Then bool = True For i = 0 To Combocabinet.ListCount If Combocabinet.List(i) = rs3(1) Then bool = False Next If bool = True Then Combocabinet.AddItem rs3(1)

105

Page 107: Computer -Shop Management System

Else bool = True End If ElseIf rs3.Fields(0).Value = "DVD ROM" Then bool = True For i = 0 To Combodvdrom.ListCount If Combodvdrom.List(i) = rs3(1) Then bool = False Next If bool = True Then Combodvdrom.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "DVD Writer" Then bool = True For i = 0 To Combodvdwriter.ListCount If Combodvdwriter.List(i) = rs3(1) Then bool = False Next If bool = True Then Combodvdwriter.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Keyboad" Then bool = True For i = 0 To Combokeyboard.ListCount If Combokeyboard.List(i) = rs3(1) Then bool = False Next If bool = True Then Combokeyboard.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Mouse" Then bool = True For i = 0 To Combomouse.ListCount If Combomouse.List(i) = rs3(1) Then bool = False Next If bool = True Then Combomouse.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Speaker" Then bool = True For i = 0 To Combospeaker.ListCount

106

Page 108: Computer -Shop Management System

If Combospeaker.List(i) = rs3(1) Then bool = False Next If bool = True Then Combospeaker.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Monitor" Then bool = True For i = 0 To Combomonitor.ListCount If Combomonitor.List(i) = rs3(1) Then bool = False Next If bool = True Then Combomonitor.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "UPS" Then bool = True For i = 0 To Comboups.ListCount If Comboups.List(i) = rs3(1) Then bool = False Next If bool = True Then Comboups.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Modem" Then bool = True For i = 0 To Combomodem.ListCount If Combomodem.List(i) = rs3(1) Then bool = False Next If bool = True Then Combomodem.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "LAN Card" Then bool = True For i = 0 To Combolan.ListCount If Combolan.List(i) = rs3(1) Then bool = False Next If bool = True Then Combolan.AddItem rs3(1) Else bool = True

107

Page 109: Computer -Shop Management System

End If ElseIf rs3.Fields(0).Value = "Printer" Then bool = True For i = 0 To Comboprinter.ListCount If Comboprinter.List(i) = rs3(1) Then bool = False Next If bool = True Then Comboprinter.AddItem rs3(1) Else bool = True End If ElseIf rs3.Fields(0).Value = "Scanner" Then bool = True For i = 0 To Comboscanner.ListCount If Comboscanner.List(i) = rs3(1) Then bool = False Next If bool = True Then Comboscanner.AddItem rs3(1) Else bool = True End If End If rs3.MoveNextWend

End SubPrivate Sub Form_Unload(cancel As Integer)con.CloseEnd Sub

Private Sub lvButtons_H2_Click()Unload MeEnd SubPrivate Sub Text24_Change()Label33.Visible = TrueText26.Visible = Trueprice = Val(Text23) - Val(Text24)If price <= 0 Then Label33.Visible = False Text26.Visible = FalseElse Text26 = priceEnd IfEnd Sub

Private Sub vkOptionButton1_Change(Value As CheckBoxConstants)

108

Page 110: Computer -Shop Management System

Label32.Visible = FalseText25.Visible = FalseEnd Sub

Private Sub vkOptionButton2_Change(Value As CheckBoxConstants)Label33.Visible = True Text26.Visible = True Text26 = Val(Text23) Text24 = 0 save.SetFocusEnd Sub

Customer balance accountPrivate Sub DataGrid1_Click()

Set DataGrid1.DataSource = rs4

Text1.Text = DataGrid1.Columns(0)

Text2.Text = DataGrid1.Columns(1)Text3.Text = DataGrid1.Columns(4)Text4.Text = DataGrid1.Columns(2)

Text5.Text = DataGrid1.Columns(3)

End Sub

Private Sub Form_Unload(cancel As Integer)con.CloseEnd Sub

Private Sub Form_Load()Call connectdatabaseCall customerrecordset

Set DataGrid1.DataSource = rs4End Sub

Private Sub tex1_KeyPress(KeyAscii As Integer)If KeyAscii = 13 ThenText1.SetFocusEnd IfEnd Sub

Private Sub txtName_KeyPress(KeyAscii As Integer)

109

Page 111: Computer -Shop Management System

If KeyAscii = 13 Thentxtpass.SetFocusEnd IfEnd Sub

Private Sub lvButtons_H1_Click()Unload MeEnd Sub

Private Sub lvButtons_H2_Click()If Text1.Text = "" Or Text2.Text = "" Or _Text3.Text = "" Or Text4.Text = "" ThenMsgBox " INVALID INPUTES !!!!EITHER OR SOME ITEM MISSING!"Exit SubEnd Ifsql = "update customer set Customername='" & Text1.Text & "',Customeraddress='" & Text2.Text & "',Customerphone='" & Text4.Text & "',Balance ='" & Text5.Text & "',invoice='" & Text3.Text & "' where customername='" & DataGrid1.Columns(0) & "'"

con.BeginTranscon.Execute (sql)con.CommitTransMsgBox "Record Updated"

rs4.Closesql1 = "select * from customer"rs4.Source = sql1rs4.OpenSet DataGrid1.DataSource = rs4End Sub

Private Sub lvButtons_H4_Click()sql = "delete from customer where invoice= '" & DataGrid1.Columns(4) & "'"

con.BeginTranscon.Execute (sql)con.CommitTransMsgBox "Data deleted"

rs4.Closesql1 = "select * from customer"rs4.Source = sql1rs4.OpenSet DataGrid1.DataSource = rs4

110

Page 112: Computer -Shop Management System

End Sub

Private Sub Text4_LostFocus()If Text4.Text = "" ThenExit SubEnd IfIf IsNumeric(Text4.Text) = False ThenMsgBox "MOBILE NUMBER SHOULD BE NUMERIC VALUE!"Text4.Text = ""Exit SubEnd IfIf Len(Text4.Text) < 10 Or Len(Text4.Text) > 12 ThenMsgBox "Please Enter a valid Mobile number"Text4.Text = ""Text4.SetFocusExit SubEnd IfEnd Sub

Change password

Private Sub cancel_Click()

Unload MeEnd Sub

Private Sub Form_Load()Call connectdatabaseCall usrrecordEnd Sub

Private Sub Form_Unload(cancel As Integer)con.CloseEnd Sub

Private Sub lvButtons_H1_Click()If Text3.Text = "" ThenMsgBox "Enter the login name.", vbInformationExit SubEnd IfIf Not (Text1.Text = Text2.Text) ThenMsgBox "Password not match so Re-enter the password"

111

Page 113: Computer -Shop Management System

Text1.Text = ""Text2.Text = ""Text1.SetFocusElsesql = "update usertable set passwd='" & Text4.Text & "' where logname='" & Text3.Text & "' and passwd='" & Text1.Text & "'"MsgBox (sql)con.BeginTranscon.Execute (sql)con.CommitTransMsgBox "Your password successfully change.", vbInformationEnd IfEnd Sub

Create User account

Private Sub cancel_Click()

Unload MeEnd Sub

Private Sub cmdAdd_Click()If txtemp.Text = "" Or txtName.Text = "" Or _txtpass.Text = "" Or txtaddress.Text = "" Or _ txtph.Text = "" ThenMsgBox " INVALID INPUTES !!!!EITHER OR SOME ITEM MISSING!"Exit SubEnd If

sql = "insert into usertable(name,logname,passwd,address,type,mobnumber) values('" & txtemp.Text & "','" & txtName.Text & "','" & txtpass.Text & "','" & txtaddress.Text & "','" & tp.Text & "',' " & txtph.Text & "')"Call insertqueryMsgBox "Data inserted successfully.."txtemp.Text = ""txtName.Text = ""txtpass.Text = ""txtph.Text = ""

txtaddress.Text = ""

rs.Close

112

Page 114: Computer -Shop Management System

sql1 = "select * from usertable"rs.Source = sql1rs.OpenSet DataGrid1.DataSource = rsDataGrid1.Columns(3).Visible = FalseEnd Sub

Private Sub cmdClearAll_Click()cmdUpdate.Enabled = FalsecmdAdd.Enabled = TruecmdDelete.Enabled = Falsetxtemp.Text = ""txtName.Text = ""txtpass.Text = ""txtaddress.Text = ""

tp.Text = ""

txtph.Text = ""

cmdAdd.Visible = True

End Sub

Private Sub cmdDelete_Click()

sql = "delete from usertable where id= " & DataGrid1.Columns(o) & ""'Call insertquerycon.BeginTranscon.Execute (sql)con.CommitTransMsgBox "Data deleted"txtemp.Text = ""txtName.Text = ""txtpass.Text = ""txtaddress.Text = ""

tp.Text = ""

txtph.Text = ""

cmdAdd.Visible = Truers.Closesql1 = "select * from usertable"

113

Page 115: Computer -Shop Management System

rs.Source = sql1rs.OpenSet DataGrid1.DataSource = rsEnd Sub

Private Sub cmdUpdate_Click()If txtemp.Text = "" Or txtName.Text = "" Or _txtpass.Text = "" Or txtaddress.Text = "" Or _ txtph.Text = "" ThenMsgBox " INVALID INPUTES !!!!EITHER OR SOME ITEM MISSING!"Exit SubEnd Ifsql = "update usertable set name='" & txtemp.Text & "',logname='" & txtName.Text & "',passwd='" & txtpass.Text & "',address='" & txtaddress.Text & "',type='" & tp.Text & "',mobnumber='" & txtph.Text & "' where name='" & DataGrid1.Columns(1) & "'"

'Call insertquerycon.BeginTranscon.Execute (sql)con.CommitTransMsgBox "Record Updated"DataGrid1.Columns(3).Visible = Falsetxtid.Text = DataGrid1.Columns(0)txtemp.Text = DataGrid1.Columns(1)txtName.Text = DataGrid1.Columns(2)txtpass.Text = DataGrid1.Columns(3)txtph.Text = DataGrid1.Columns(4)

txtaddress.Text = DataGrid1.Columns(5)

tp.Text = DataGrid1.Columns(6)

rs.Closesql1 = "select * from usertable"rs.Source = sql1rs.OpenSet DataGrid1.DataSource = rsEnd Sub

Private Sub DataGrid1_Click()cmdClearAll.Enabled = Trueid.Visible = Truetxtid.Visible = True

114

Page 116: Computer -Shop Management System

cmdDelete.Enabled = TruecmdAdd.Visible = FalsecmdUpdate.Enabled = TruecmdUpdate.Visible = TrueSet DataGrid1.DataSource = rsDataGrid1.Columns(3).Visible = Falsetxtid.Text = DataGrid1.Columns(0)txtemp.Text = DataGrid1.Columns(1)txtName.Text = DataGrid1.Columns(2)txtpass.Text = DataGrid1.Columns(3)txtph.Text = DataGrid1.Columns(4)

txtaddress.Text = DataGrid1.Columns(5)

tp.Text = DataGrid1.Columns(6)

End Sub

Private Sub Form_Unload(cancel As Integer)con.CloseEnd Sub

Private Sub salary_LostFocus()If salary.Text = "" ThenExit SubEnd IfIf IsNumeric(salary.Text) = False ThenMsgBox "ONLY NUMERIC VALUE IS ALLOW"salary.Text = ""salary.SetFocusEnd IfEnd Sub

Private Sub show_Click()cmdClearAll.Enabled = Trueid.Visible = Truetxtid.Visible = TruecmdDelete.Enabled = TruecmdAdd.Visible = FalsecmdUpdate.Visible = True

Set DataGrid1.DataSource = rsDataGrid1.Columns(3).Visible = Falsetxtid.Text = DataGrid1.Columns(0)txtemp.Text = DataGrid1.Columns(1)

115

Page 117: Computer -Shop Management System

txtName.Text = DataGrid1.Columns(2)txtpass.Text = DataGrid1.Columns(3)txtph.Text = DataGrid1.Columns(4)

txtaddress.Text = DataGrid1.Columns(5)

tp.Text = DataGrid1.Columns(6)

End Sub

Private Sub Form_Load()cmdUpdate.Visible = FalsecmdClearAll.Enabled = FalsecmdDelete.Enabled = FalseCall connectdatabaseCall usrrecord

End SubPrivate Sub txtemp_KeyPress(KeyAscii As Integer)If KeyAscii = 13 ThentxtName.SetFocusEnd IfEnd Sub

Private Sub txtName_KeyPress(KeyAscii As Integer)If KeyAscii = 13 Thentxtpass.SetFocusEnd IfEnd SubPrivate Sub txtph_LostFocus()If txtph.Text = "" ThenExit SubEnd IfIf IsNumeric(txtph.Text) = False ThenMsgBox "MOBILE NUMBER SHOULD BE NUMERIC VALUE!"txtph.Text = ""Exit SubEnd IfIf Len(txtph.Text) < 10 Or Len(txtph.Text) > 12 ThenMsgBox "Please Enter a valid Mobile number"txtph.Text = ""txtph.SetFocusEnd IfEnd Sub

116

Page 118: Computer -Shop Management System

Add companyPrivate Sub Clearall_Click()update.Visible = FalseClearall.Visible = FalselvButtons_H2.Visible = Truecname.Text = ""person.Text = ""address.Text = ""city.Text = ""mobnumber.Text = ""email.Text = ""website.Text = ""fax.Text = ""notes.Text = ""End Sub

Private Sub DataGrid1_Click()update.Visible = TruelvButtons_H2.Visible = FalseClearall.Visible = True Set DataGrid1.DataSource = rs6

cname.Text = DataGrid1.Columns(0)person.Text = DataGrid1.Columns(1)address.Text = DataGrid1.Columns(2)city.Text = DataGrid1.Columns(3)mobnumber.Text = DataGrid1.Columns(4)email.Text = DataGrid1.Columns(6)website.Text = DataGrid1.Columns(5)fax.Text = DataGrid1.Columns(7)notes.Text = DataGrid1.Columns(8)End Sub

Private Sub delete_Click()sql = "delete from company where companyname= '" & DataGrid1.Columns(o) & "'"con.BeginTranscon.Execute (sql)con.CommitTransMsgBox "Data deleted"

rs6.Closesql7 = "select * from company"rs6.Source = sql7

117

Page 119: Computer -Shop Management System

rs6.OpenSet DataGrid1.DataSource = rs6cname.Text = DataGrid1.Columns(0)person.Text = DataGrid1.Columns(1)address.Text = DataGrid1.Columns(2)city.Text = DataGrid1.Columns(3)mobnumber.Text = DataGrid1.Columns(4)email.Text = DataGrid1.Columns(6)website.Text = DataGrid1.Columns(5)fax.Text = DataGrid1.Columns(7)notes.Text = DataGrid1.Columns(8)

End Sub

Private Sub fax_LostFocus()If fax.Text = "" ThenExit SubEnd IfIf IsNumeric(fax.Text) = False ThenMsgBox "FAX NUMBER SHOULD BE NUMERIC VALUE!"fax.Text = ""fax.SetFocusExit SubEnd If

End Sub

Private Sub Form_Load()Call connectdatabaseCall companyrecordsetSet DataGrid1.DataSource = rs6update.Visible = FalseClearall.Visible = FalseEnd Sub

Private Sub Form_Unload(cancel As Integer)con.CloseEnd Sub

Private Sub lvButtons_H2_Click()If cname.Text = "" ThenMsgBox "Enter the customer name."Exit SubEnd IfIf person.Text = "" ThenMsgBox "Enter the contact person name"

118

Page 120: Computer -Shop Management System

Exit SubEnd If

If address.Text = "" ThenMsgBox "enter the address."Exit SubEnd IfIf city.Text = "" ThenMsgBox "enter the city"Exit SubEnd IfIf mobnumber.Text = "" ThenMsgBox "Enter the mobile number.If there is no mobile no. just enter 0."Exit SubEnd IfIf email.Text = "" ThenMsgBox "Enter the email id."Exit SubEnd IfIf website.Text = "" ThenMsgBox "Enter the website name."Exit SubEnd IfIf fax.Text = "" ThenMsgBox "Enter the fax no."Exit SubEnd IfIf notes.Text = "" Then'Exit SubEnd If

sql = "insert into company(companyname,contactperson,address,city,mobnumber,email,website,fax,anynote) values('" & cname.Text & "','" & person.Text & "','" & address.Text & "','" & city.Text & "','" & mobnumber.Text & "','" & email.Text & "','" & website.Text & "','" & fax.Text & "','" & notes.Text & "')"Call insertqueryMsgBox "Data inserted successfully.."cname.Text = ""person.Text = ""address.Text = ""city.Text = ""mobnumber.Text = ""email.Text = ""website.Text = ""fax.Text = ""

119

Page 121: Computer -Shop Management System

notes.Text = ""rs6.Closesql7 = "select * from company"rs6.Source = sql7rs6.OpenSet DataGrid1.DataSource = rs6

End Sub

Private Sub lvButtons_H4_Click()Unload MeEnd Sub

Private Sub mobnumber_LostFocus()If mobnumber.Text = "" ThenExit SubEnd IfIf IsNumeric(mobnumber.Text) = False ThenMsgBox "MOBILE NUMBER SHOULD BE NUMERIC VALUE!"mobnumber.Text = ""mobnumber.SetFocusExit SubEnd IfIf Len(mobnumber.Text) < 10 Or Len(mobnumber.Text) > 12 ThenMsgBox "Please Enter a valid Mobile number"mobnumber.Text = ""mobnumber.SetFocusExit SubEnd IfEnd Sub

Private Sub update_Click()If cname.Text = "" ThenMsgBox "Enter the customer name."Exit SubEnd IfIf person.Text = "" ThenMsgBox "Enter the contact person name"Exit SubEnd If

If address.Text = "" ThenMsgBox "enter the address."Exit Sub

120

Page 122: Computer -Shop Management System

End IfIf city.Text = "" ThenMsgBox "enter the city"Exit SubEnd IfIf mobnumber.Text = "" ThenMsgBox "Enter the mobile number.If there is no mobile no. just enter 0."Exit SubEnd IfIf email.Text = "" ThenMsgBox "Enter the email id."Exit SubEnd IfIf website.Text = "" ThenMsgBox "Enter the website name."Exit SubEnd IfIf fax.Text = "" ThenMsgBox "Enter the fax no."Exit SubEnd IfIf notes.Text = "" ThenEnd Ifsql = "update company set companyname='" & cname.Text & "',contactperson='" & person.Text & "',address='" & address.Text & "',city='" & city.Text & "',mobnumber='" & mobnumber.Text & "',email='" & email.Text & "',website='" & website.Text & "',fax='" & fax.Text & "',anynote='" & notes.Text & "' where companyname='" & DataGrid1.Columns(0) & "'"con.BeginTranscon.Execute (sql)con.CommitTransMsgBox "Record Updated"

rs6.Closesql7 = "select * from company"rs6.Source = sql7rs6.OpenSet DataGrid1.DataSource = rs6cname.Text = DataGrid1.Columns(0)person.Text = DataGrid1.Columns(1)address.Text = DataGrid1.Columns(2)city.Text = DataGrid1.Columns(3)mobnumber.Text = DataGrid1.Columns(4)email.Text = DataGrid1.Columns(6)website.Text = DataGrid1.Columns(5)fax.Text = DataGrid1.Columns(7)

121

Page 123: Computer -Shop Management System

notes.Text = DataGrid1.Columns(8)

End Sub

Add productPrivate Sub cancel_Click()Unload MeEnd Sub

Private Sub cmdAdd_Click()If Text1.Text = "" ThenMsgBox "Enter the product name", vbInformationText1.SetFocusExit SubEnd IfIf Text2.Text = "" ThenMsgBox "Enter the company name", vbInformationText2.SetFocusExit SubEnd IfIf Text5.Text = "" ThenMsgBox "Enter the Buying Price", vbInformationText5.SetFocusExit SubEnd IfIf Text6.Text = "" ThenMsgBox "Enter the Price", vbInformationText6.SetFocusExit SubEnd IfIf Text7.Text = "" ThenMsgBox "Enter the Serial no..", vbInformationText7.SetFocusExit SubEnd IfIf Text8.Text = "" ThenMsgBox "Enter the Warranty", vbInformationText8.SetFocusExit SubEnd Ifsql = "insert into itemdetail(itemname,company,type,range,buyingprice,price,serialno,warenty) values('" & Text1.Text & "','" & Text2.Text & "','" & Text3.Text & "','" & text4.Text & "','" & Text5.Text & "','" & Text6.Text & "','" & Text7.Text & "','" & Text8.Text & "')"Call insertqueryMsgBox "Data inserted successfully..", vbInformation

122

Page 124: Computer -Shop Management System

Text1 = ""Text2 = ""Text3 = ""text4 = ""Text5 = ""Text6 = ""Text7 = ""Text8 = ""rs3.Closesql1 = "select * from itemdetail"rs3.Source = sql1rs3.OpenSet DataGrid1.DataSource = rs3

End Sub

Private Sub cmdClearAll_Click()Text1 = ""Text2 = ""Text3 = ""text4 = ""Text5 = ""Text6 = ""Text7 = ""Text8 = ""cmdAdd.Visible = True

End Sub

Private Sub cmdDelete_Click()sql = "delete from itemdetail where serialno= '" & DataGrid1.Columns(6) & "'"'Call insertquerycon.BeginTranscon.Execute (sql)con.CommitTransMsgBox "Data deleted", vbInformationText1 = ""Text2 = ""Text3 = ""text4 = ""Text5 = ""Text6 = ""Text7 = ""Text8 = ""

123

Page 125: Computer -Shop Management System

cmdAdd.Visible = Truers3.Closesql1 = "select * from itemdetail"rs3.Source = sql1rs3.OpenSet DataGrid1.DataSource = rs3End Sub

Private Sub cmdUpdate_Click()If Text1.Text = "" ThenMsgBox "Enter the product name", vbInformationText1.SetFocusExit SubEnd IfIf Text2.Text = "" ThenMsgBox "Enter the company name", vbInformationText2.SetFocusExit SubEnd IfIf Text5.Text = "" ThenMsgBox "Enter the Buying Price", vbInformationText5.SetFocusExit SubEnd IfIf Text6.Text = "" ThenMsgBox "Enter the Price", vbInformationText6.SetFocusExit SubEnd IfIf Text7.Text = "" ThenMsgBox "Enter the Serial no..", vbInformationText7.SetFocusExit SubEnd IfIf Text8.Text = "" ThenMsgBox "Enter the Warranty", vbInformationText8.SetFocusExit SubEnd If

sql = "update itemdetail set itemname='" & Text1.Text & "',company='" & Text2.Text & "',type='" & Text3.Text & "',range='" & text4.Text & "',buyingprice='" & Text5.Text & "',price='" & Text6.Text & "',serialno='" & Text7.Text & "',warenty='" & Text8.Text & "' where serialno='" & DataGrid1.Columns(6) & "'"

124

Page 126: Computer -Shop Management System

con.BeginTranscon.Execute (sql)con.CommitTransMsgBox "Record Updated", vbInformation

Text1.Text = DataGrid1.Columns(0)Text2.Text = DataGrid1.Columns(1)Text3.Text = DataGrid1.Columns(2)text4.Text = DataGrid1.Columns(3)Text5.Text = DataGrid1.Columns(4)Text6.Text = DataGrid1.Columns(5)

Text7.Text = DataGrid1.Columns(6)

Text8.Text = DataGrid1.Columns(7)rs3.Closesql1 = "select * from itemdetail"rs.Source = sql1rs3.OpenSet DataGrid1.DataSource = rs3End Sub

Private Sub DataGrid1_Click()cmdClearAll.Enabled = True

cmdDelete.Enabled = TruecmdAdd.Visible = FalsecmdUpdate.Enabled = TruecmdUpdate.Visible = TrueSet DataGrid1.DataSource = rs3

Text1.Text = DataGrid1.Columns(0)Text2.Text = DataGrid1.Columns(1)Text3.Text = DataGrid1.Columns(2)text4.Text = DataGrid1.Columns(3)Text5.Text = DataGrid1.Columns(4)Text6.Text = DataGrid1.Columns(5)

Text7.Text = DataGrid1.Columns(6)

Text8.Text = DataGrid1.Columns(7)

End Sub

Private Sub Form_Load()cmdUpdate.Visible = False

125

Page 127: Computer -Shop Management System

cmdClearAll.Enabled = FalsecmdDelete.Enabled = FalseCall connectdatabaseCall itemdetailSet DataGrid1.DataSource = rs3

Text1.Text = DataGrid1.Columns(0)Text2.Text = DataGrid1.Columns(1)Text3.Text = DataGrid1.Columns(2)text4.Text = DataGrid1.Columns(3)Text5.Text = DataGrid1.Columns(4)Text6.Text = DataGrid1.Columns(5)

Text7.Text = DataGrid1.Columns(6)

Text8.Text = DataGrid1.Columns(7)

End Sub

Private Sub Text5_LostFocus()If Text5.Text = "" ThenExit SubEnd IfIf IsNumeric(Text5.Text) = False ThenMsgBox "Buying price should be numeric", vbInformationText5.Text = ""Text5.SetFocusEnd IfEnd SubPrivate Sub Text6_LostFocus()If Text6.Text = "" ThenExit SubEnd IfIf IsNumeric(Text6.Text) = False ThenMsgBox " Price should be numeric", vbInformationText6.Text = ""Text6.SetFocusEnd IfEnd Sub

Add computer systemPrivate Sub add_Click()If Combocompany.Text = "" ThenMsgBox "Enter the company name."Exit SubEnd If

126

Page 128: Computer -Shop Management System

If categary.Text = "" ThenMsgBox "Enter the categary name."Exit SubEnd IfIf model.Text = "" ThenMsgBox "Enter the model name."Exit SubEnd If

If combohard.Text = "" ThenMsgBox "Enter the hard-disk type."Exit SubEnd IfIf Comboram.Text = "" ThenMsgBox "Enter the Ram quantity."Exit SubEnd IfIf Combomother.Text = " " ThenMsgBox "Enter the motherboard name."Exit SubEnd IfIf ComboProcessor.Text = "" ThenMsgBox "Enter the processor name."Exit SubEnd IfIf Combomonitor.Text = "" ThenMsgBox "Enter the monitor type."Exit SubEnd IfIf txtbuy.Text = "" ThenMsgBox "Enter the Buying value."Exit SubEnd If

If txtsell.Text = "" ThenMsgBox "Enter the selling value."Exit SubEnd IfIf txtwarranty.Text = "" ThenMsgBox "Enter the Warranty Time."Exit SubEnd subsql = "insert into computersys(company,model,buying_value,selling_value,Warranty,categary,harddisk,ram,motherboard,processor,monitor,other) values('" & Combocompany.Text & "','" & model.Text & "','" & txtbuy.Text & "','" & txtsell.Text

127

Page 129: Computer -Shop Management System

& "','" & txtwarranty.Text & "','" & categary.Text & "','" & combohard.Text & "','" & Comboram.Text & "','" & Combomother.Text & "','" & ComboProcessor.Text & "','" & Combomonitor.Text & "','" & other.Text & "')"Call insertqueryMsgBox "Data inserted successfully.."

Combocompany.Text = ""model.Text = ""categary.Text = ""combohard.Text = ""Comboram.Text = ""Combomother.Text = " "ComboProcessor.Text = ""Combomonitor.Text = ""other.Text = ""txtbuy.Text = ""txtsell.Text = ""txtwarranty.Text = ""rs1.Closesql2 = "select * from "rs.Source = sql2rs1.OpenSet DataGrid1.DataSource = rs1End Sub

Private Sub Clearall_Click()Combocompany.Text = ""model.Text = ""categary.Text = ""combohard.Text = ""Comboram.Text = ""Combomother.Text = " "ComboProcessor.Text = ""Combomonitor.Text = ""other.Text = ""txtbuy.Text = ""txtsell.Text = ""txtwarranty.Text = ""add.Visible = Trueupdate.Visible = FalseEnd Sub

Private Sub DataGrid1_Click()Clearall.Visible = Trueadd.Visible = FalseLabel13.Visible = True

128

Page 130: Computer -Shop Management System

serial.Visible = Trueserial.Enabled = Falseupdate.Visible = TrueClearall.Visible = TrueSet DataGrid1.DataSource = rs1serial.Text = DataGrid1.Columns(0)Combocompany.Text = DataGrid1.Columns(1)model.Text = DataGrid1.Columns(2)categary.Text = DataGrid1.Columns(3)combohard.Text = DataGrid1.Columns(4)Comboram.Text = DataGrid1.Columns(5)Combomother.Text = DataGrid1.Columns(6)ComboProcessor.Text = DataGrid1.Columns(7)Combomonitor.Text = DataGrid1.Columns(8)other.Text = DataGrid1.Columns(9)txtbuy.Text = DataGrid1.Columns(10)txtsell.Text = DataGrid1.Columns(11)txtwarranty.Text = DataGrid1.Columns(12)End Sub

Private Sub delete_Click()add.Visible = Trueupdate.Visible = Falsesql = "delete from computersys where serialno= " & DataGrid1.Columns(o) & ""con.BeginTranscon.Execute (sql)con.CommitTransCombocompany.Text = ""model.Text = ""categary.Text = ""combohard.Text = ""Comboram.Text = ""Combomother.Text = " "ComboProcessor.Text = ""Combomonitor.Text = ""other.Text = ""txtbuy.Text = ""txtsell.Text = ""txtwarranty.Text = ""MsgBox "Data deleted"rs1.Closesql2 = "select * from computersys"rs1.Source = sql2rs1.OpenSet DataGrid1.DataSource = rs1End Sub

129

Page 131: Computer -Shop Management System

Private Sub Form_Load()Call connectdatabaseCall computersysrecordsetClearall.Visible = FalseLabel13.Visible = Falseserial.Visible = Falseupdate.Visible = FalseSet DataGrid1.DataSource = rs1

End Sub

Private Sub Form_Unload(cancel As Integer)con.CloseEnd SubPrivate Sub lvButtons_H4_Click()

Unload MeExit SubEnd SubPrivate Sub txtbuy_LostFocus()If txtbuy.Text = "" ThenExit SubEnd IfIf IsNumeric(txtbuy.Text) = False ThenMsgBox "BUYING VALUE SHOULD BE NUMERIC VALUE!"txtbuy.Text = ""txtbuy.SetFocusExit SubEnd IfEnd SubPrivate Sub txtsell_LostFocus()If txtsell.Text = "" ThenExit SubEnd IfIf IsNumeric(txtsell.Text) = False ThenMsgBox "SELLING VALUE SHOULD BE NUMERIC VALUE!"txtsell.Text = ""txtsell.SetFocus'Exit SubEnd IfEnd SubPrivate Sub update_Click()If Combocompany.Text = "" ThenMsgBox "Enter the company name."Exit Sub

130

Page 132: Computer -Shop Management System

End IfIf categary.Text = "" ThenMsgBox "Enter the categary name."Exit SubEnd IfIf model.Text = "" ThenMsgBox "Enter the model name."Exit SubEnd If

If combohard.Text = "" ThenMsgBox "Enter the hard-disk type."Exit SubEnd IfIf Comboram.Text = "" ThenMsgBox "Enter the Ram name."Exit SubEnd IfIf Combomother.Text = " " ThenMsgBox "Enter the motherboard name."Exit SubEnd IfIf ComboProcessor.Text = "" ThenMsgBox "Enter the processor name."Exit SubEnd IfIf Combomonitor.Text = "" ThenMsgBox "Enter the monitor type."Exit SubEnd IfIf txtbuy.Text = "" ThenMsgBox "Enter the Buying value."Exit SubEnd If

If txtsell.Text = "" ThenMsgBox "Enter the selling value."Exit SubEnd IfIf txtwarranty.Text = "" ThenMsgBox "Enter the Warranty Time."Exit SubEnd Ifsql = "update computersys set company='" & Combocompany.Text & "',model='" & model.Text & "',categary='" & categary.Text & "',harddisk='" & combohard.Text & "',ram='" & Comboram.Text & "',motherboard='" & Combomother.Text &

131

Page 133: Computer -Shop Management System

"',processor='" & ComboProcessor.Text & "',monitor='" & Combomonitor.Text & "',other='" & other.Text & "',buying_value='" & txtbuy.Text & "',selling_value='" & txtsell.Text & "',Warranty='" & txtwarranty.Text & "' where company='" & DataGrid1.Columns(1) & "'"con.BeginTranscon.Execute (sql)con.CommitTransMsgBox "Record Updated"rs1.Closesql2 = "select * from computersys"rs1.Source = sql2rs1.OpenSet DataGrid1.DataSource = rs1serial.Text = DataGrid1.Columns(0)Combocompany.Text = DataGrid1.Columns(1)model.Text = DataGrid1.Columns(2)categary.Text = DataGrid1.Columns(3)combohard.Text = DataGrid1.Columns(4)Comboram.Text = DataGrid1.Columns(5)Combomother.Text = DataGrid1.Columns(6)ComboProcessor.Text = DataGrid1.Columns(7)Combomonitor.Text = DataGrid1.Columns(8)other.Text = DataGrid1.Columns(9)txtbuy.Text = DataGrid1.Columns(10)txtsell.Text = DataGrid1.Columns(11)txtwarranty.Text = DataGrid1.Columns(12)End Sub

Change shop recordPrivate Sub Form_Load()Call connectdatabaseCall shoprecordsetrsshop.Closesql1 = "select * from shop"rsshop.Source = sql1rsshop.OpenText1.Text = rsshop(0)Text2.Text = rsshop(2)Text3.Text = rsshop(1)text4.Text = rsshop(3)Text5.Text = rsshop(4)

End Sub

Private Sub lvButtons_H1_Click()Unload Me

132

Page 134: Computer -Shop Management System

End Sub

Private Sub lvButtons_H2_Click()If Text1.Text = "" ThenMsgBox "Please enter the SHOP NAME."Exit SubEnd IfIf Text2.Text = "" ThenMsgBox "Please enter the OWNER NAME."Exit SubEnd IfIf Text3.Text = "" ThenMsgBox "Please enter the Address."Exit SubEnd IfIf text4.Text = "" ThenMsgBox "Please enter the phone number."Exit SubEnd IfIf Text5.Text = "" ThenMsgBox "Please enter the Registration name."Exit SubEnd Ifsql = "update shop set shopname='" & Text1.Text & "',address='" & Text3.Text & "',owner='" & Text2.Text & "',phonenumber='" & text4.Text & "',registrationnumber='" & Text5.Text & "'"'Call insertquerycon.BeginTranscon.Execute (sql)con.CommitTransMsgBox "Record Updated"

rsshop.Closesql1 = "select * from shop"rsshop.Source = sql1rsshop.OpenText1.Text = rsshop(0)Text2.Text = rsshop(2)Text3.Text = rsshop(1)text4.Text = rsshop(3)Text5.Text = rsshop(4)End Sub

FUTURE SCOPE The future scope of this software is given below.

133

Page 135: Computer -Shop Management System

• Bar code support.• make rebates on system configuration• make rebates on group of components• make system configuration with rebates• make tribute on system configuration• Export data filters /employees, payments, companies, sold items, components-- XLS /Excel/ file format- XML file format- HTML file formatand later change/print that files.• Quickly create database backup!• Debts/Demand customer management.• Customize bills that you print!• Create estimates and latter convert it into bills!• Reports to make comparisons between months (total sum, or sum by employees)!• Sell computer system by instalments!• Print bills with currency sign.• Different kind of reports.• Pay - roll administration for your employees!• Keep track of you suppliers!• Server database is protected from unauthorized modifications!• Process payments quickly and efficiently!• Unique design with very functional user interface!• Improve your store business with various reports and statistics.

Bibliography Books: 1) Programing Microsoft visual basic 6.0 2) Mastering visual basic 6 3) Black book visual basic 4) Complete reference in visual basic 6 5) System analysis and design by elias m. awad Websites: 1) www.a1vbcode.com

2) www.vbcode.com

3) www.codeguru.com

4) www.vbexpert.com

5) www.1000project.com

134

Page 136: Computer -Shop Management System

135