Computer - Shop Management System
Computer - Shop Management System
Technology Allahabad
A PROJECT REPORT
ON
COMPUTER –SHOP MANAGEMENT
SYSTEM
Prepared by:-
Under the guidance of:-
AMIT KUMAR YADAV
MCA 4th Sem. Mr. Prabhat Kardam
Roll no. 0715514006 (Lecturer)
2
ACKNOWLEDGEMENTS
First of all I would like to thank almighty God who gave me the
inspiration to take up this task.
I would like 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 [Link] 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 like to thank [Link] 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.
3
Ewing Christian institute of
management & technology
Turner Building, 711- mutthigang,
Allahabad-211003, U.P.
Certificate
Date:
Mr. Prabhat kardam
(Lecturer)
Ewing Christian Institute of
management & technology
Allahabad
4
Table of Contents
Table of Contents……………………………………………………………………………….4
Introduction………………………………………………………………………………………5
Objective………………………………………………………………...……………………….6
Operating environment…………………………………………………………………………6
1) Harware requirement…………..…………………………………………………………6
2) Sowtware requirement……………………………………………………………………6
Platform used……………………………………………………………………………5
Purpose ………………….………………………………………………………………………5
Product
Perspective………………………………………………………………………………………5
Process logic....................................................................................................................2
Logic diagram……………….…………………………………………………………………..7
ER diagram…...……………..…………………………………………………………………11
Data structure…………………………………………………………………………………..12
Sreenshots ………………………………………………………………………………….. 3
1) Login form……………………………………………………………………………….3
5
2) Main form….…………………………………………………………………………….4
7) Change password………………………….…………………………………………….5
Coding …………………………………………………………….5
Future Scope…………………………………………………………
Bibliography …………………………………………………………………………………
6
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
7
Operating Environment
1) Hardware Requirement
2) Software Requirement
1) MS-office-2003
2) MS Visual Basic6.0
Purpose
Project Scope
8
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 [Link] 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 [Link] 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 -
9
• 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 and
Supports 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
10
1) Sell branded computer system
2) 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.
11
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.
12
LOGICAL DIAGRAM
START
LOGIN FORM
MAIN FORM
Update customer
Assemble Balance
Branded
computer system computer/Computer
part
Change shop
information
13
Data Flow Diagram:
Computer-shop
Req. Resp. Customer
Customer
management
System
Update Report
Login
Add
compute
r system Add
compute Search
Search detail
r part
14
Compter Compter Customer detail
system Detail Part Detail
Customer
Issue detail
Customer
Customer detail
[Link]/system detail Computer
User
part/system
Sold History
Customer
15
[Link] customer balance:
Issue detail
Balance
Verify balance detail
Sold detail
Balance History
User
Search Customer Detail
16
Customer & Item Info.
Customer Record
configuratio
ER Diagram:- Brand_name n
system_name Warranty_period
Item_pric
e Warranty_period
Item_type
Computer
user_addres
user_ph.n
o.
system_detail
s Brand_name Item_pric
Login- e
name&pas
sword Item_nam
user_name e
serial_no.
BALANCE
[Link].
[Link]
d
Balance
Date
17
C_name
n
Sell
computer
User system/pa Computer
rt part_DETAIL
Paid
Amou
nt
Customer
Invoiceno Invoice
. Paid_amoun no.
t
c_address
[Link]
c_Balance c_ph.no.
c_name
DATA STRUCTURE
1. Balance Table
Key Column Name Data Type Width
Primary key InvoiceNo. Alphanumeric 5
Customername Alphanumeric 25
Customer address Alphanumeric 6
Customer phone no. Numeric 6
Paidamount Numeric 8
Totalamount Numeric
Date Date
18
Type Alphanumeric 5
Price Numeric 6
Primary key Serialno. Alphanumeric 5
warranty Numeric 1
3. Customer
key Column Name Data Type Width
Customer_name Alphanumeric 25
Customer_Address Alphanumeric 30
Primary key Customer_Phone.no. Numeric 10
Customer_Balance Numeric 8
[Link]
key Column Name Data Type Width
Primary key Invoice no Alphanumeric 5
Customer_name Alphanumeric 25
Customer_Address Alphanumeric 30
Customer_phoneno. Numeric 10
Problem Alphanumeric 25
Service_date Date 8
Charge Numeric 10
19
[Link] Table
Key Column Name Data Type Width
Primary key Employee-id Alphanumeric 12
Employee_name Alphanumeric 15
Employee_address Alphanumeric 45
Employee_phoneno Numeric 10
Email_id Alphanumeric 20
[Link]
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
SCREENSHOTS
Loginform
20
Main form
21
Make quotation
22
Change password form
23
Add company Form
24
Add computer system form
25
26
Test case
If connection of database is not closed at unload of this form then this error [Link]
needs to close connection of database as
Private Sub Form_Unload(Cancel As Integer)
[Link]
End Sub
In database setsold table has p2 field, this field have to allow zero lenth.
27
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.
28
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.
29
When execute the insert into statement, there is any extra parameter.
In database customeaddressfield not found because I have write wrong table name.
30
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
31
32
33
34
35
36
37
38
39
Login form
Private Sub Form_Load()
Call connectdatabase
[Link] = con
[Link] = adUseClient
[Link] = adOpenDynamic
[Link] = "select *from usertable"
[Link]
[Link] = -8000
End Sub
[Link]
For i = 1 To [Link]
If [Link](2) = [Link] And [Link](3) = [Link] Then
If [Link](6) = ("admin") Then
[Link]
Unload Me
[Link]
Exit Sub
End If
If [Link](6) = ("employee") Then
[Link]
[Link] = False
40
Unload Me
[Link]
Exit Sub
End If
End If
[Link]
Next i
If [Link] = True Then
MsgBox "Invalid login name & password!"
[Link] = ""
[Link]
End If
End Sub
41
End If
End Sub
Main form
42
End If
End Sub
End Sub
End Sub
End Sub
43
Private Sub quatation_Click()
[Link]
End Sub
Case 2:
asssembled_Click
Case 3:
bronded_Click
Case 4:
logoff_Click
Case 5:
Exit_Click
End Select
End Sub
End Sub
44
[Link] "select Range from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
45
Private Sub Combo23_Click()
[Link]
temp = "Speaker"
If [Link] = adStateOpen Then [Link]
[Link] "select Range from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
46
Wend
End Sub
Private Sub Combo28_Click()
[Link]
temp = "Processor"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link] & "' and
Range='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
Private Sub Combo29_Click()
[Link]
temp = "MotherBoard"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link] & "'
and Range='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
Private Sub Combo30_Click()
temp = "Speaker"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link] & "' and
Range='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
Private Sub Combo31_Click()
temp = "Monitor"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link] & "' and
Range='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
47
Wend
End Sub
Private Sub Combo34_Click()
temp = "Printer"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
End Sub
48
price = price + cdrprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
Private Sub Combo37_Click()
Static cdwprice As Double
Static i As Integer
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
cdwprice = Val(Text6)
price = price + cdwprice
Else
price = price - cdwprice
cdwprice = Val(Text6)
price = price + cdwprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
Private Sub Combo38_Click()
Static ramprice As Double
Static i As Integer
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
ramprice = Val(Text7)
price = price + ramprice
Else
price = price - ramprice
ramprice = Val(Text7)
price = price + ramprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
49
Private Sub Combo39_Click()
Static proprice As Double
Static i As Integer
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
proprice = Val(Text8)
price = price + proprice
Else
price = price - proprice
proprice = Val(Text8)
price = price + proprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
Private Sub Combo40_Click()
Static mbprice As Double
Static i As Integer
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
mbprice = Val(Text9)
price = price + mbprice
Else
price = price - mbprice
mbprice = Val(Text9)
price = price + mbprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
Private Sub Combo41_Click()
Static fdprice As Double
Static i As Integer
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
Text10 = rs3(0)
50
If i = 0 Then
fdprice = Val(Text10)
price = price + fdprice
Else
price = price - fdprice
fdprice = Val(Text10)
price = price + fdprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
Private Sub Combo42_Click()
Static dvdrprice As Double
Static i As Integer
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
dvdrprice = Val(Text11)
price = price + dvdrprice
Else
price = price - dvdrprice
dvdrprice = Val(Text11)
price = price + dvdrprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
Private Sub Combo43_Click()
Static dvdwprice As Double
Static i As Integer
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
dvdwprice = Val(Text12)
price = price + dvdwprice
Else
price = price - dvdwprice
dvdwprice = Val(Text12)
price = price + dvdwprice
End If
51
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
End Sub
52
End Sub
End Sub
53
Static upsprice As Double
Static i As Integer
'temp = "UPS"
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
upsprice = Val(Text17)
price = price + upsprice
Else
price = price - upsprice
upsprice = Val(Text17)
price = price + upsprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
End Sub
54
Private Sub Combo50_Click()
Static lcardprice As Double
Static i As Integer
'temp = "LAN Card"
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
lcardprice = Val(Text19)
price = price + lcardprice
Else
price = price - lcarddprice
lcardprice = Val(Text19)
price = price + lcardprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
End Sub
55
Private Sub Combo52_Click()
Static scnprice As Double
Static i As Integer
'temp = "Scanner"
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
scnprice = Val(Text27)
price = price + scnprice
Else
price = price - scnprice
scnprice = Val(Text27)
price = price + scnprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
56
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
57
Private Sub Combodvdwriter_Click()
temp = "DVD Writer"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
58
Private Sub Comboharddiskrange_Click()
[Link]
temp = "Hard Disk"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link]
& "' and Range='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
59
Private Sub Combolan_Click()
temp = "LAN Card"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
60
Else
bool = True
End If
[Link]
Wend
End Sub
61
End Sub
Private Sub Comboprinter_Click()
temp = "Printer"
If [Link] = adStateOpen Then [Link]
[Link] "select Company,Type from itemdetail where Itemname='" & temp & "'
and Company='" & [Link] & "'"
While [Link] = False
If [Link](0).Value = [Link] Then bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
[Link]
Wend
End Sub
temp = "RAM"
If [Link] = adStateOpen Then [Link]
[Link] "select Company,Type from itemdetail where Itemname='" & temp & "'
and Company='" & [Link] & "'"
While [Link] = False
62
If [Link](0).Value = [Link] Then bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
[Link]
Wend
End Sub
Private Sub Comboscanner_Click()
temp = "Scanner"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
63
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
Call connectdatabase
Call setsoldrecordset
Call itemdetail
Call customerrecordset
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = Date
64
[Link] = True
[Link] = "cust" & ([Link] + 1)
price = 0
Dim bool As Boolean
While [Link] = False
If [Link](0).Value = "Hard Disk" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "CD ROM" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "CD Writer" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "RAM" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Processor" Then
65
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "MotherBoard" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Floppy Drive" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Cabinet" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "DVD ROM" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
66
Else
bool = True
End If
ElseIf [Link](0).Value = "DVD Writer" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Keyboad" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Mouse" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Speaker" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Monitor" Then
bool = True
For i = 0 To [Link]
67
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "UPS" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Modem" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "LAN Card" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Printer" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
68
End If
ElseIf [Link](0).Value = "Scanner" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
End If
[Link]
Wend
End Sub
69
End If
If [Link] = "" Then
End If
If [Link] = "" Then
End If
If [Link] = "" Then
End If
If [Link] = "" Then
End If
If [Link] = "" Then
End If
If [Link] = "" Then
End If
If [Link] = "" Then
End If
If [Link] = "" Then
End If
If [Link] = "" Then
End If
If [Link] = "" Then
End If
If [Link] = "" Then
End If
If [Link] = "" Then
End If
If [Link] = "" Then
MsgBox " Customer Name is Empty"
[Link]
Exit Sub
ElseIf [Link] = "" Then
MsgBox " Customer Address is Empty"
[Link]
Exit Sub
ElseIf [Link] = "" Then
MsgBox " Customer Pnone No is Empty"
[Link]
Exit Sub
End If
If [Link] = "" And [Link] = "" And [Link] = "" And [Link] = "" And
[Link] = "" _
And [Link] = "" And [Link] = "" And [Link] = "" And [Link]
= "" And [Link] = "" _
And [Link] = "" And [Link] = "" And [Link] = "" And [Link]
= "" And [Link] = "" _
70
And [Link] = "" And [Link] = "" And [Link] = "" And [Link]
= "" Then
MsgBox "Any product is not choosen by you. Please choose any product."
Exit Sub
End If
Else
[Link]
[Link] "Insert into setsold values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "'," & [Link] & ")"
[Link]
[Link]
[Link] "Insert into Balance values('" & [Link] & "','" &
[Link] & "'," & [Link] & "," & [Link] & ",'" & [Link] &
"','" & [Link] & "')"
[Link]
[Link]
[Link] "Insert into customer values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "')"
[Link]
If [Link] = True And Val([Link]) > 0 Then
If [Link] = 1 Then [Link]
[Link] "Select Customername from Customer where Customername='" &
[Link] & "'"
If [Link] = False Then
[Link]
[Link] " Update Customer set Balance= Balance + " & [Link] & "
where Customername='" & [Link] & "'"
[Link]
71
Else
[Link]
' [Link] "Insert into Customer values('" & [Link] & "','" & [Link] &
"','" & [Link] & "'," & [Link] & ")"
[Link]
End If
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p1 = rs3(0)
w1 = rs3(1)
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p2 = rs3(0)
w2 = rs3(1)
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p30 = rs3(0)
w30 = rs3(1)
72
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,buyingprice,price,serialno,warenty) values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
p30 & "','" & [Link] & "','" & [Link] & "','" & w30 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p31 = rs3(0)
w31 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,type,range,buyingprice,price,serialno,warenty) values('" & [Link] & "','"
& [Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & p31 & "','" & [Link] & "','" &
[Link] & "','" & w31 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p3 = rs3(0)
w3 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,type,range,buyingprice,price,serialno,warenty) values('" & [Link] & "','"
& [Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & p3 & "','" & [Link] & "','" &
[Link] & "','" & w3 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p4 = rs3(0)
73
w4 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,type,range,buyingprice,price,serialno,warenty) values('" & [Link] & "','"
& [Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] &
"','" & [Link] & "','" & [Link] & "','" & p4 & "','" & [Link] & "','"
& [Link] & "','" & w4 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p5 = rs3(0)
w5 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,buyingprice,price,serialno,warenty) values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" & p5
& "','" & [Link] & "','" & [Link] & "','" & w5 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p6 = rs3(0)
w6 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,buyingprice,price,serialno,warenty) values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
p6 & "','" & [Link] & "','" & [Link] & "','" & w6 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p7 = rs3(0)
74
w7 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,buyingprice,price,serialno,warenty) values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
p7 & "','" & [Link] & "','" & [Link] & "','" & w7 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p8 = rs3(0)
w8 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,buyingprice,price,serialno,warenty) values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
p8 & "','" & [Link] & "','" & [Link] & "','" & w8 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p9 = rs3(0)
w9 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,type,buyingprice,price,serialno,warenty) values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "', '" & p9 & "','" & [Link] & "','" & [Link] & "','" &
w9 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p10 = rs3(0)
75
w10 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,type,range,buyingprice,price,serialno,warenty) values('" & [Link] & "','"
& [Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & p10 & "','" & [Link] & "','" &
[Link] & "','" & w10 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p11 = rs3(0)
w11 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,type,range,buyingprice,price,serialno,warenty) values('" & [Link] & "','"
& [Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & p11 & "','" & [Link] & "','" &
[Link] & "','" & w11 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p12 = rs3(0)
w12 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,buyingprice,price,serialno,warenty) values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" & p12 &
"','" & [Link] & "','" & [Link] & "','" & w12 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
76
p13 = rs3(0)
w13 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,type,buyingprice,price,serialno,warenty) values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & p13 & "','" & [Link] & "','" & [Link] & "','" &
w13 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p14 = rs3(0)
w14 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,buyingprice,price,serialno,warenty) values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" & p14 &
"','" & [Link] & "','" & [Link] & "','" & w14 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p15 = rs3(0)
w15 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,type,buyingprice,price,serialno,warenty) values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & p15 & "','" & [Link] & "','" & [Link] & "','" &
w15 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
77
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p16 = rs3(0)
w16 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,buyingprice,price,serialno,warenty) values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
p16 & "','" & [Link] & "','" & [Link] & "','" & w16 & "')"
Call insertquery
End If
If [Link] <> "" Then
If [Link] = adStateOpen Then [Link]
[Link] "select buyingprice,warenty from itemdetail where Serialno='" &
[Link] & "'"
p17 = rs3(0)
w17 = rs3(1)
sql = "insert into
sold(invoice,selldate,customername,address,customerphone,itemname,company
,buyingprice,price,serialno,warenty) values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
p17 & "','" & [Link] & "','" & [Link] & "','" & w17 & "')"
Call insertquery
End If
MsgBox "Data is Saved Properly"
End If
[Link] = False
[Link] = True
End Sub
Private Sub sellnew_Click()
[Link] = True
Unload Me
[Link]
End Sub
78
[Link] = ""
[Link]
End If
[Link] = True
[Link] = True
price = Val(Text23) - Val(Text24)
If price < 0 Then
MsgBox "Payment can not much than total price.", vbCritical
[Link] = False
[Link] = False
[Link] = ""
Exit Sub
Else
Text26 = price
End If
End Sub
Private Sub vkOptionButton1_Change(Value As CheckBoxConstants)
[Link] = False
[Link] = False
End Sub
End Sub
79
If [Link] = 1 Then [Link]
[Link] " Select Customeraddress,Customerphone from Customer where
Customername='" & [Link] & "'", cs
If [Link] = False Then
[Link] = rs4(0)
[Link] = rs4(1)
[Link]
Else
[Link]
End If
End If
End Sub
End Sub
lvButtons_H8.Visible = False
80
[Link] = Date
[Link] = "Sbronded" & ([Link] + 1)
[Link] = True
End Sub
End If
[Link]
81
[Link] "Insert into Balance values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" & [Link] &
"','" & [Link] & "')"
[Link]
[Link]
[Link] "Insert into customer values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "')"
[Link]
End Sub
[Link] = rs1!serialno
[Link] = rs1!company
[Link] = rs1!model
[Link] = rs1!categary
[Link] = rs1!harddisk
[Link] = rs1!ram
[Link] = rs1!motherboard
[Link] = rs1!processor
[Link] = rs1!monitor
82
[Link] = rs1!other
[Link] = rs1!selling_value
[Link] = rs1!warranty
End Sub
[Link] = rs1!selling_value
[Link] = rs1!warranty
End If
Exit Sub
l1:
83
MsgBox "You are at the first record..."
End Sub
[Link] = rs1!serialno
[Link] = rs1!company
[Link] = rs1!model
[Link] = rs1!categary
[Link] = rs1!harddisk
[Link] = rs1!ram
[Link] = rs1!motherboard
[Link] = rs1!processor
[Link] = rs1!monitor
[Link] = rs1!other
[Link] = rs1!selling_value
[Link] = rs1!warranty
End Sub
84
Else
Text2 = price
End If
End Sub
End Sub
Make quotation
Dim price As Double
Dim temp As String
Dim bool As Boolean
Dim p1, p2 As Double
Dim w1, w2 As Integer
Private Sub lvButtons_H1_Click()
On Error Resume Next:
[Link]
End Sub
Private Sub Combo19_Click()
[Link]
temp = "RAM"
If [Link] = adStateOpen Then [Link]
[Link] "select Range from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
Private Sub Combo20_Click()
[Link]
temp = "Processor"
If [Link] = adStateOpen Then [Link]
[Link] "select Range from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link] & "'"
85
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
Private Sub Combo21_Click()
[Link]
temp = "MotherBoard"
If [Link] = adStateOpen Then [Link]
[Link] "select Range from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
86
[Link]
Wend
End Sub
Private Sub Combo25_Click()
temp = "Modem"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
87
[Link] rs3(0)
[Link]
Wend
End Sub
Private Sub Combo30_Click()
temp = "Speaker"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link] & "' and
Range='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
88
If i = 0 Then
hdprice = Val(text4)
price = price + hdprice
Else
price = price - hdprice
hdprice = Val(text4)
price = price + hdprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
End Sub
89
price = price + cdwprice
Else
price = price - cdwprice
cdwprice = Val(Text6)
price = price + cdwprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
Private Sub Combo38_Click()
Static ramprice As Double
Static i As Integer
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
ramprice = Val(Text7)
price = price + ramprice
Else
price = price - ramprice
ramprice = Val(Text7)
price = price + ramprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
90
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
Private Sub Combo40_Click()
Static mbprice As Double
Static i As Integer
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
mbprice = Val(Text9)
price = price + mbprice
Else
price = price - mbprice
mbprice = Val(Text9)
price = price + mbprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
Private Sub Combo41_Click()
Static fdprice As Double
Static i As Integer
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
Text10 = rs3(0)
If i = 0 Then
fdprice = Val(Text10)
price = price + fdprice
Else
price = price - fdprice
fdprice = Val(Text10)
price = price + fdprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
91
Private Sub Combo42_Click()
Static dvdrprice As Double
Static i As Integer
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
dvdrprice = Val(Text11)
price = price + dvdrprice
Else
price = price - dvdrprice
dvdrprice = Val(Text11)
price = price + dvdrprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
92
End Sub
End Sub
End Sub
93
Static i As Integer
'temp = "Speaker"
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
spkprice = Val(Text15)
price = price + spkprice
Else
price = price - spkprice
spkprice = Val(Text15)
price = price + spkprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
94
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
upsprice = Val(Text17)
price = price + upsprice
Else
price = price - upsprice
upsprice = Val(Text17)
price = price + upsprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
End Sub
Private Sub Combo50_Click()
Static lcardprice As Double
Static i As Integer
'temp = "LAN Card"
If [Link] = adStateOpen Then [Link]
[Link] "select Price from itemdetail where Serialno='" & [Link] & "'"
[Link] = rs3(0)
If i = 0 Then
lcardprice = Val(Text19)
95
price = price + lcardprice
Else
price = price - lcarddprice
lcardprice = Val(Text19)
price = price + lcardprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
End Sub
96
price = price - scnprice
scnprice = Val(Text27)
price = price + scnprice
End If
i=i+1
Text21 = price
Text22 = price * 4 / 100
Text23 = price + Val(Text22)
End Sub
97
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
Private Sub Combocdwriter_Click()
[Link]
temp = "CD Writer"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
98
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
99
[Link] "select Range from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "' and Type='" & [Link]
& "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
Private Sub Combokeyboard_Click()
temp = "Keyboad"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
Private Sub Combolan_Click()
temp = "LAN Card"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
100
End Sub
End Sub
101
If [Link](0).Value = [Link] Then bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
[Link]
Wend
End Sub
Private Sub Comboprinter_Click()
temp = "Printer"
If [Link] = adStateOpen Then [Link]
[Link] "select Company,Type from itemdetail where Itemname='" & temp & "'
and Company='" & [Link] & "'"
While [Link] = False
If [Link](0).Value = [Link] Then bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
[Link]
Wend
End Sub
102
[Link]
Wend
End Sub
temp = "RAM"
If [Link] = adStateOpen Then [Link]
[Link] "select Company,Type from itemdetail where Itemname='" & temp & "'
and Company='" & [Link] & "'"
While [Link] = False
If [Link](0).Value = [Link] Then bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
[Link]
Wend
End Sub
Private Sub Comboscanner_Click()
temp = "Scanner"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
103
[Link] rs3(1)
Else
bool = True
End If
[Link]
Wend
End Sub
Private Sub Comboups_Click()
temp = "UPS"
If [Link] = adStateOpen Then [Link]
[Link] "select Serialno from itemdetail where Itemname='" & temp & "' and
Company='" & [Link] & "'"
While [Link] = False
[Link] rs3(0)
[Link]
Wend
End Sub
Call connectdatabase
Call setsoldrecordset
Call itemdetail
Call customerrecordset
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
104
[Link] = False
'[Link] = False
'[Link] = False
'[Link] = False
[Link] = Date
105
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Processor" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "MotherBoard" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Floppy Drive" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Cabinet" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
106
Else
bool = True
End If
ElseIf [Link](0).Value = "DVD ROM" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "DVD Writer" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Keyboad" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Mouse" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Speaker" Then
bool = True
For i = 0 To [Link]
107
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Monitor" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "UPS" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Modem" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "LAN Card" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
108
End If
ElseIf [Link](0).Value = "Printer" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
ElseIf [Link](0).Value = "Scanner" Then
bool = True
For i = 0 To [Link]
If [Link](i) = rs3(1) Then bool = False
Next
If bool = True Then
[Link] rs3(1)
Else
bool = True
End If
End If
[Link]
Wend
End Sub
Private Sub Form_Unload(cancel As Integer)
[Link]
End Sub
109
[Link] = False
[Link] = False
End Sub
[Link] = [Link](0)
[Link] = [Link](1)
[Link] = [Link](4)
[Link] = [Link](2)
[Link] = [Link](3)
End Sub
110
If KeyAscii = 13 Then
[Link]
End If
End Sub
[Link]
[Link] (sql)
[Link]
MsgBox "Record Updated"
[Link]
sql1 = "select * from customer"
[Link] = sql1
[Link]
Set [Link] = rs4
End Sub
[Link]
[Link] (sql)
[Link]
MsgBox "Data deleted"
[Link]
sql1 = "select * from customer"
[Link] = sql1
[Link]
Set [Link] = rs4
111
End Sub
Change password
Unload Me
End Sub
112
[Link] = ""
[Link] = ""
[Link]
Else
sql = "update usertable set passwd='" & [Link] & "' where logname='" &
[Link] & "' and passwd='" & [Link] & "'"
MsgBox (sql)
[Link]
[Link] (sql)
[Link]
MsgBox "Your password successfully change.", vbInformation
End If
End Sub
Unload Me
End Sub
[Link] = ""
[Link]
113
sql1 = "select * from usertable"
[Link] = sql1
[Link]
Set [Link] = rs
[Link](3).Visible = False
End Sub
[Link] = ""
[Link] = ""
[Link] = True
End Sub
sql = "delete from usertable where id= " & [Link](o) & ""
'Call insertquery
[Link]
[Link] (sql)
[Link]
MsgBox "Data deleted"
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = True
[Link]
sql1 = "select * from usertable"
114
[Link] = sql1
[Link]
Set [Link] = rs
End Sub
'Call insertquery
[Link]
[Link] (sql)
[Link]
MsgBox "Record Updated"
[Link](3).Visible = False
[Link] = [Link](0)
[Link] = [Link](1)
[Link] = [Link](2)
[Link] = [Link](3)
[Link] = [Link](4)
[Link] = [Link](5)
[Link] = [Link](6)
[Link]
sql1 = "select * from usertable"
[Link] = sql1
[Link]
Set [Link] = rs
End Sub
115
[Link] = True
[Link] = False
[Link] = True
[Link] = True
Set [Link] = rs
[Link](3).Visible = False
[Link] = [Link](0)
[Link] = [Link](1)
[Link] = [Link](2)
[Link] = [Link](3)
[Link] = [Link](4)
[Link] = [Link](5)
[Link] = [Link](6)
End Sub
Set [Link] = rs
[Link](3).Visible = False
[Link] = [Link](0)
[Link] = [Link](1)
116
[Link] = [Link](2)
[Link] = [Link](3)
[Link] = [Link](4)
[Link] = [Link](5)
[Link] = [Link](6)
End Sub
End Sub
Private Sub txtemp_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
[Link]
End If
End Sub
117
Add company
Private Sub Clearall_Click()
[Link] = False
[Link] = False
lvButtons_H2.Visible = True
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End Sub
[Link] = [Link](0)
[Link] = [Link](1)
[Link] = [Link](2)
[Link] = [Link](3)
[Link] = [Link](4)
[Link] = [Link](6)
[Link] = [Link](5)
[Link] = [Link](7)
[Link] = [Link](8)
End Sub
[Link]
sql7 = "select * from company"
[Link] = sql7
118
[Link]
Set [Link] = rs6
[Link] = [Link](0)
[Link] = [Link](1)
[Link] = [Link](2)
[Link] = [Link](3)
[Link] = [Link](4)
[Link] = [Link](6)
[Link] = [Link](5)
[Link] = [Link](7)
[Link] = [Link](8)
End Sub
End Sub
119
Exit Sub
End If
120
[Link] = ""
[Link]
sql7 = "select * from company"
[Link] = sql7
[Link]
Set [Link] = rs6
End Sub
121
End If
If [Link] = "" Then
MsgBox "enter the city"
Exit Sub
End If
If [Link] = "" Then
MsgBox "Enter the mobile [Link] there is no mobile no. just enter 0."
Exit Sub
End If
If [Link] = "" Then
MsgBox "Enter the email id."
Exit Sub
End If
If [Link] = "" Then
MsgBox "Enter the website name."
Exit Sub
End If
If [Link] = "" Then
MsgBox "Enter the fax no."
Exit Sub
End If
If [Link] = "" Then
End If
sql = "update company set companyname='" & [Link] & "',contactperson='"
& [Link] & "',address='" & [Link] & "',city='" & [Link] &
"',mobnumber='" & [Link] & "',email='" & [Link] & "',website='" &
[Link] & "',fax='" & [Link] & "',anynote='" & [Link] & "' where
companyname='" & [Link](0) & "'"
[Link]
[Link] (sql)
[Link]
MsgBox "Record Updated"
[Link]
sql7 = "select * from company"
[Link] = sql7
[Link]
Set [Link] = rs6
[Link] = [Link](0)
[Link] = [Link](1)
[Link] = [Link](2)
[Link] = [Link](3)
[Link] = [Link](4)
[Link] = [Link](6)
[Link] = [Link](5)
[Link] = [Link](7)
122
[Link] = [Link](8)
End Sub
Add product
Private Sub cancel_Click()
Unload Me
End Sub
123
Text1 = ""
Text2 = ""
Text3 = ""
text4 = ""
Text5 = ""
Text6 = ""
Text7 = ""
Text8 = ""
[Link]
sql1 = "select * from itemdetail"
[Link] = sql1
[Link]
Set [Link] = rs3
End Sub
End Sub
124
[Link] = True
[Link]
sql1 = "select * from itemdetail"
[Link] = sql1
[Link]
Set [Link] = rs3
End Sub
sql = "update itemdetail set itemname='" & [Link] & "',company='" &
[Link] & "',type='" & [Link] & "',range='" & [Link] & "',buyingprice='"
& [Link] & "',price='" & [Link] & "',serialno='" & [Link] &
"',warenty='" & [Link] & "' where serialno='" & [Link](6) & "'"
125
[Link]
[Link] (sql)
[Link]
MsgBox "Record Updated", vbInformation
[Link] = [Link](0)
[Link] = [Link](1)
[Link] = [Link](2)
[Link] = [Link](3)
[Link] = [Link](4)
[Link] = [Link](5)
[Link] = [Link](6)
[Link] = [Link](7)
[Link]
sql1 = "select * from itemdetail"
[Link] = sql1
[Link]
Set [Link] = rs3
End Sub
[Link] = True
[Link] = False
[Link] = True
[Link] = True
Set [Link] = rs3
[Link] = [Link](0)
[Link] = [Link](1)
[Link] = [Link](2)
[Link] = [Link](3)
[Link] = [Link](4)
[Link] = [Link](5)
[Link] = [Link](6)
[Link] = [Link](7)
End Sub
126
[Link] = False
[Link] = False
Call connectdatabase
Call itemdetail
Set [Link] = rs3
[Link] = [Link](0)
[Link] = [Link](1)
[Link] = [Link](2)
[Link] = [Link](3)
[Link] = [Link](4)
[Link] = [Link](5)
[Link] = [Link](6)
[Link] = [Link](7)
End Sub
127
If [Link] = "" Then
MsgBox "Enter the categary name."
Exit Sub
End If
If [Link] = "" Then
MsgBox "Enter the model name."
Exit Sub
End If
128
& "','" & [Link] & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','"
& [Link] & "','" & [Link] & "')"
Call insertquery
MsgBox "Data inserted successfully.."
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = " "
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link]
sql2 = "select * from "
[Link] = sql2
[Link]
Set [Link] = rs1
End Sub
129
[Link] = True
[Link] = False
[Link] = True
[Link] = True
Set [Link] = rs1
[Link] = [Link](0)
[Link] = [Link](1)
[Link] = [Link](2)
[Link] = [Link](3)
[Link] = [Link](4)
[Link] = [Link](5)
[Link] = [Link](6)
[Link] = [Link](7)
[Link] = [Link](8)
[Link] = [Link](9)
[Link] = [Link](10)
[Link] = [Link](11)
[Link] = [Link](12)
End Sub
130
Private Sub Form_Load()
Call connectdatabase
Call computersysrecordset
[Link] = False
[Link] = False
[Link] = False
[Link] = False
Set [Link] = rs1
End Sub
Unload Me
Exit Sub
End Sub
Private Sub txtbuy_LostFocus()
If [Link] = "" Then
Exit Sub
End If
If IsNumeric([Link]) = False Then
MsgBox "BUYING VALUE SHOULD BE NUMERIC VALUE!"
[Link] = ""
[Link]
Exit Sub
End If
End Sub
Private Sub txtsell_LostFocus()
If [Link] = "" Then
Exit Sub
End If
If IsNumeric([Link]) = False Then
MsgBox "SELLING VALUE SHOULD BE NUMERIC VALUE!"
[Link] = ""
[Link]
'Exit Sub
End If
End Sub
Private Sub update_Click()
If [Link] = "" Then
MsgBox "Enter the company name."
Exit Sub
131
End If
If [Link] = "" Then
MsgBox "Enter the categary name."
Exit Sub
End If
If [Link] = "" Then
MsgBox "Enter the model name."
Exit Sub
End If
132
"',processor='" & [Link] & "',monitor='" & [Link] &
"',other='" & [Link] & "',buying_value='" & [Link] & "',selling_value='" &
[Link] & "',Warranty='" & [Link] & "' where company='" &
[Link](1) & "'"
[Link]
[Link] (sql)
[Link]
MsgBox "Record Updated"
[Link]
sql2 = "select * from computersys"
[Link] = sql2
[Link]
Set [Link] = rs1
[Link] = [Link](0)
[Link] = [Link](1)
[Link] = [Link](2)
[Link] = [Link](3)
[Link] = [Link](4)
[Link] = [Link](5)
[Link] = [Link](6)
[Link] = [Link](7)
[Link] = [Link](8)
[Link] = [Link](9)
[Link] = [Link](10)
[Link] = [Link](11)
[Link] = [Link](12)
End Sub
End Sub
133
End Sub
[Link]
sql1 = "select * from shop"
[Link] = sql1
[Link]
[Link] = rsshop(0)
[Link] = rsshop(2)
[Link] = rsshop(1)
[Link] = rsshop(3)
[Link] = rsshop(4)
End Sub
FUTURE SCOPE
The future scope of this software is given below.
134
• 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 format
and 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) [Link]
2) [Link]
3) [Link]
4) [Link]
5) [Link]
135
136









