You are on page 1of 102

PROJECT REPORT ON MUSIC STORE MANAGEMENT SYSTEM

Submitted for partial fulfillment of MCA IIIrd Sem. By
Shimbhu Dayal Meena &

Vatan Rathore
for Session : 2011-2012

University Centre For Computer Science & Information Technology University Of Rajasthan Jaipur

1

2

INDEX
1. INTRODUCTION 2. CERTIFICATE 3. ACKNOWLEDGEMENT 4. STUDENT PROFILE 5. SELECTION OF TOOLS AND TECHONOLOGY 6. REQUIREMRNT ANALYSIS 7. FEASIBILITY STUDY 8. DATABASE STRUCTURE 9. DATA FLOW DIAGRAM 10. FORM DESIGN 11. CODING 12. BIBLIOGRAPHY

3

INTRODUCTION

4

INTRODUCTION
The present century has been a revolution in information technology all over the word. Computer area playing an increasingly vital role, touching upon every aspect of out day-today life. Information processing has become a major social activity. More then 70% of a typical executive’s time is spent in processing in some type of information. The term ‘‘KNOWLEDGE WORKS’’ has emerged, classifying individuals exclusively involved in the information processing activity. The computer is a electronic device designed to perform to arithmetic operation. It can perform several non-arithmetic operations on the alphabetic or numeric data used. There operation are performed at very high speed with a high level of accuracy. The task of maintaining the inventory at different outlets through centralized system with product , customer and employee management for any distributor is accepted by me as the theme of this project. Every possible efforts have been made by me to solve, simplify and generalize the problem and program in such a way that it follows all software engineering concepts and provide enhancement capabilities in the system as and when required. This project assists the organization to maintain the everything centralized with all reports and maintenance task.

5

MANUAL SYSTEM
The process of maintaining the inventory centralized require lots of updating as well as entries to be done. Apart from this product , employee, customer and outlet management becomes very difficult and require personal for different management.

Limitations of Manual System :
Besides various drawbacks of Manual system some of the major limitations are as described below :  A manual system require lot of time and labour to accomplish a certain task.  The data pertaining to any entity been kept in various registers and hence all these registers must be kept carefully.  A manual system require more man power in order to maintain the data.  Errors are liable to occur when the task is being perform manually.  Lack of immediate storage of information.  Very slow computational processing.  Very slow report creation as it is done manually on sheets.  Very slow inquiry system.  It is very boring to maintain transaction of each activity.

6

There is a less chance for redundancy as checks are made at various points.  To provide the system with greater degree of accuracy and reliability.  Various validation checks for data entry to prevent user to enter garbage data. 1  To provide the immediate retrieval of information as required. 7 .  To provide the user with various facilities so that user may find the project friendly and comfortable to run.  To provide the user a way to enter the information through the system for online preparation of different schedule.AUTOMATED SYSTEM Goals of the proposed system  To provide users of the system with automated file maintained which will allow him/her to all or modify the records in much more systematic and speedy way.

 In the automated system there is a very less chance of making errors as a system is designed in such a way that it takes all measures before making any changes or updation to the existing information 8 .ADVANTAGES OF THE PROPOSED SYSTEM  The automated system provide the user a fast and efficient system in which all the records and information regarding entities are stored electronically so that they may be retrieved fast.

CERTIFICATE 9 .

Jaipur This Project Report has not been submitted earlier for this award of any other degree/diploma.CERTIFICATE This is to certify that the project work entitled “ Music Store Management System“ being submitted by Shimbhu Dayal Meena and Vatan Rathore as partial fulfillment of the requirement for award of the MCA IIIrd Sem. UCCS & IT by UOR . Hanumana Ram) 10 . Project Guide (Mr.

ACKNOWLEDGEMENT 11 .

Hanumana Ram for his keen interest and guidance during the completion of this project work. I. who had always been a source of inspiration to me during the course of this project work. I definitely owe my sincere thanks to Mr.ACKNOWLEDGEMENT It is difficult to find appropriate words to express my feelings of gratitude to Mr.K. I am very much in debited to other staff members and collogues. without which this might not have been seen this day.Sharma (Director) for providing me all the facilities and resources needed to develop this software and encourage us from time to time. 12 .

STUDENT PROFILE 13 .

SELECTION OF TECHNOLOGY 14 .

The Visual Basic environment is fully integrated and supports the full development life cycle. I am working in the Microsoft windows XP and I used to learn Visual Basic in the course syllabus. Visual Basic fully supports all phases of the windows software development life cycle from design to development. I will become more familiar with moving around in the code windows and learn some of the elements of the basic for their final selection. 15 .  Assign properties to controls  Attach code to events I primarily concern with step 3 that is attaching codes. So I prefer to develop this project in the visual basic. Language Requirements I found that there were three primary steps involved in developing an application using Visual Basic: Draw the user interface.SELECTION OF TECHNOLOGY Now a days GUI based environment is becoming very common in the area of development.

 Object Orientation Visual Basic is a true object oriented language and provide sufficient abstractions of different objects. The Visual Basic compiler provides several levels of additional checks to identify type mismatch and other consistencies.  Reliability Security and reliability are of very high quality in Visual Basic. including Windows 95 and Windows NT. Security measures can not be implemented with any degree of assurance without a reliable frame work for program execution.  Simplicity 16 . Visual Basic runs on most major hardware and software platforms.Advantages of using Visual Basic  Platform Independence One of the most compelling reasons to adopt visual basic is its platform independence.  Security Visual Basic is the first programming language to consider security as part of its design.

building on the syntax in order to promote simplicity. PLATFORM USED Inter face Operating System Hardware : : : GUI Windows XP IBM Compatible Machines FRONT END & BACK END USED Front End Back End : : Visual Basic MS Access 2000 17 . Visual Basic has left out those elements contribute to error an program complexity. it can be used to rapidly photo type application that would require considerably more base software supports in language.Visual Basic language was designed to be a simple language to learn.  Rapid code generation Visual Basic is an interpreted language.

REQUIREMENT ANALYSIS 18 .

7. System should maintain the employee wise sales as well as sells from outlets. Proper authentication protection should be implemented. 4.REQUIREMENT ANALYSIS 1. 2. 19 . System should maintain the customers data and record and must be capable of providing the list of customers. There is a need of centralized system that maintains inventory of all the outlets. 6. There is a requirement of such a system that reduce the need of a personal to maintain such a small thing in organization. A system that gives a feel of easy of doing that small thing. System should manage all the products with their entire details. 5. The system must handle the returns made from outlet to distributor. 3. 8.

FEASIBILITY STUDY 20 .

Economical Feasibility : Because of already availability of computer software and hardware in the organization it is economical feasible.FEASIBILITY STUDY Technical Feasibility : I had found in my analysis that there are quite sufficient technical resources available at the organization and capable of handling user requirement. Operational Feasibility : no qualified and trained person is required for this system because all the transactions and entry are through integrated development environment so it is quite easy to operate. 21 .

the system will give over conventional (Manual) System?  The estimated cost of implementation? 22 .FEASIBILITY REPORT Objective The primary objective of this feasibility report is to inform the user about following matters :  What are the problem with conventional (manual) system?  What are the goals and sub goals of the new system?  What the proposed system would achieve?  What will be the requirements for this achievement?  Who will be involved in operating the system?  The benefits.

CUSTOMER FIELD NAME Customer_Id Customer_Name Address City State Zip Phone DATA TYPE Number Text Text Text Text Number Number Primary Key Employee FIELD NAME Outlet_Number Emp_Number Emp_Name DATA TYPE Number Number Text Primary key 23 .

Inventory FIELD NAME Outlet_Number Product_code Quantity DATA TYPE Number Number Number Primary key Primary key Outlet FIELD NAME Outlet_Number Address City State Zip Phone DATA TYPE Number Text Text Text Text Text 24 .

Product FIELD NAME Product_code Artist Title Cost Sale_proce DATA TYPE Number Text Text Number Number Return FIELD NAME Return_id ship_id outlet_number product_code Return_Date Quantity Reason DATA TYPE Number Number Number Number Date/time Number Text 25 .

Sales FIELD NAME Sale_id Customer_id outlet_number product_code Emp_code Sale_Date Sale_time Quantity DATA TYPE Number Number Number Number Number Date/time Date/time Number Shiping FIELD NAME Ship_id outlet_number product_code Quantity DATA TYPE Number Number Number Number 26 .

Users FIELD NAME Username Password DATA TYPE Text Text 27 .

DATA FLOW DIAGRAMS 28 .

CONTEXT DIAGRAM `` Payment Customer Shipping Order Order for Products Maintenance Return Products Bill Report Of Sold Products Music Sore Management Receipt Outlet Products Sold Products Employee 29 .

TOP LEVEL DFD Customer Order For Products Products Sold Products Report of sold Products Employee Purchase System Order Processing Product Master Item Master Payment Maintenance Stock Managemen t Shipping Order Return Products Outlet Bill Receipt 30 .

FORM DESIGN 31 .

FRMSPLASH 32 .

FRMLOGIN 33 .

MDIMAIN 34 .

FRMSALES 35 .

FRMVIEWSALES 36 .

FRMRETURN 37 .

FRMVIEWRETURN 38 .

FRMOUTLET 39 .

FRMEMPLOYEE 40 .

FRMCUSTOMER 41 .

FRMPRODUCT 42 .

FRMSHIP 43 .

TABLE STRUCTURE 44 .

MONTHLY SALES REPORT 45 .

EMPLYEE WISE SALES REPORT 46 .

TOP SELLING PRODUCTS REPORT 47 .

CODING 48 .

Show End Sub Public Sub valid(ob As Form.SetFocus flag = 1 Exit Sub End If End If 49 .Persist Security Info=False" frmSplash.4.Data Source=OUTLET.Controls If TypeOf Control Is ListBox Then If Control.Connection Public login As Integer Sub Main() Set con = New ADODB.0. flag As Integer) For Each Control In ob.bas Public user As String Public con As ADODB.MDB.Open "Provider=Microsoft.Connection con.Jet.Text = "" Then If Control.OLEDB.Visible = True Then MsgBox "Please fill in the entry" Control.Module1.

Controls If TypeOf Control Is TextBox Then If Len(Control.Panels(1) = UCase(user) MDImain.Visible = True Then MsgBox "Please fill in the entry" Control.Enabled = False Unload frmoutlet Unload frmproduct 50 .Text) = 0 Then If Control.StatusBar1.Panels(2) = Time If UCase(user) <> UCase("Admin") Then MDImain.SetFocus flag = 1 Exit Sub End If End If End If Next Control End Sub Public Sub checkuser() MDImain.StatusBar1.mnu2.End If Next Control For Each Control In ob.

adOpenDynamic.frm Option Explicit Private Sub Command1_Click() Dim rs As ADODB. adLockOptimistic If rs.SetFocus 51 . con.Unload frmcustomer Unload Frmship Unload frmemployee Else MDImain.Open str1.Text = "" Text2.Recordset Set rs = New ADODB.mnu2.Text & "'" rs.EOF Then MsgBox "Invalid user name" Text1.Text = "" Text1.Recordset Dim str1 As String str1 = "select * from users where username=" & "'" & Text1.Enabled = True End If End Sub Frmlogin.

Text = "" Text2.Show MDImain.Text Then login = 1 user = Text1.Enabled = True Unload Me Call checkuser Else MsgBox "Invalid Password" Text2.Enabled = False End Sub 52 .Else If rs!Password = Text2.Text MDImain.SetFocus End If End If End Sub Private Sub Command2_Click() End End Sub Private Sub Form_Load() MDImain.

frm Private Sub mnu11_Click() frmsales.Show Unload Me End Sub Mdimain.Show End Sub Private Sub mnu12_Click() frmviewsale.Enabled = False frmlogin.frm Option Explicit Private Sub Form_KeyPress(KeyAscii As Integer) Unload Me End Sub Private Sub Timer1_Timer() Timer1.Frmsplash.Show End Sub Private Sub mnu13_Click() 53 .

Show End Sub Private Sub mnu21_Click() frmoutlet.Show End Sub Private Sub mnu24_Click() frmproduct.frmreturn.Show End Sub 54 .Show End Sub Private Sub mnu22_Click() frmemployee.Show End Sub Private Sub mnu23_Click() frmcustomer.Show End Sub Private Sub mnu14_Click() frmviewreturn.

Show End Sub Private Sub mnu33_Click() DataReport3.Show End Sub Private Sub mnu32_Click() DataReport1.Private Sub mnu25_Click() Frmship.Show End Sub Private Sub mnu31_Click() DataReport2.Show End Sub Private Sub mnu41_Click() frmlogin.Show End Sub Private Sub mnu42_Click() Unload MDImain End Sub 55 .

frm Dim rsq As ADODB. flag) If flag = 1 Then 56 .Arrange vbTileHorizontal End Sub Private Sub mnu53_Click() MDImain.Arrange vbTileVertical End Sub Private Sub mnu52_Click() MDImain.Private Sub mnu51_Click() MDImain.Recordset Private Sub Command1_Click() Dim flag As Integer Call valid(Me.Panels(2) = Time End Sub Frmsales.Arrange vbCascade End Sub Private Sub Timer1_Timer() StatusBar1.

Text = "" txtquantity.Val(txtquantity. Val(List4.Text). adLockOptimistic Dim f As Integer f = checkquantity(Val(List1.Recordset Set rs1 = New ADODB.Text) Then MsgBox "You can enter only integer" txtquantity. con. Val(txtquantity.SetFocus Exit Sub Else rsq!quantity = rsq!quantity . adOpenDynamic.Text) 57 .Open "select * from sales".Recordset rs1.Exit Sub Else If Not IsNumeric(txtquantity.Text = "" txtquantity.Text)) If f <> -1 Then If f = 0 Then MsgBox "required quantity is not available" txtquantity.Text).SetFocus Exit Sub Else Dim rs1 As ADODB.

rsq.AddNew rs1!sale_id = temp rs1!outlet_number = Val(List1.Text.Text) rs1!product_code = Val(List4.EOF Then temp = 1 Else rs1.Close If rs1.Text) rs1!customer_id = Val(List3.MoveLast temp = rs1!sale_id + 1 End If rs1.Text) rs1.Text.Update End If rsq.Close End If End If 58 . "mm-dd-yyyy") rs1!sale_time = Format(txtsaletime.Text) rs1!emp_number = Val(List2.Update rs1.Text) rs1!sale_date = Format(txtsaledate. "hh:mm:ss") rs1!quantity = Val(txtquantity.

adLockOptimistic 59 .ListIndex = -1 List3. adLockOptimistic Do While Not rs.End If List1.Open "select emp_Number from employee".ListIndex = -1 List4.Recordset rs.ListIndex = -1 List2. adOpenDynamic. adOpenDynamic.EOF List1.AddItem rs!outlet_number rs.Open "select Outlet_Number from outlet". con.ListIndex = -1 txtquantity.Recordset Set rs = New ADODB. con.Close rs.MoveNext Loop rs.Text = "" End Sub Private Sub Command2_Click() Unload Me End Sub Private Sub Form_Load() Dim rs As ADODB.

MoveNext Loop rs.Do While Not rs.MoveNext Loop rs.Open "select customer_id from customer".Open "select Product_Code from product".Text = Date txtsaletime.Text = Time txtsaledate.EOF List2. con.MoveNext Loop rs. adOpenDynamic.Enabled = False txtsaletime.Enabled = False 60 .Close txtsaledate.AddItem rs!customer_id rs. adLockOptimistic Do While Not rs.AddItem rs!emp_number rs.Close rs.EOF List3. adOpenDynamic. adLockOptimistic Do While Not rs.Close rs. con.AddItem rs!product_code rs.EOF List4.

End Sub Private Function checkquantity(OUTNO As Long.Recordset Dim str1 As String str1 = "select * from inventory where outlet_number=" & OUTNO & " and " & "product_code =" & PRODNO rsq. PRODNO As Long. con.Open str1.frm 61 . adLockOptimistic 'MsgBox rsq!quantity 'MsgBox q If rsq. q As Integer) As Integer Set rsq = New ADODB.EOF Then MsgBox "item is not available at outlet" checkquantity = -1 Else If rsq!quantity >= q Then checkquantity = rsq!quantity Else checkquantity = 0 End If End If End Function Frmviewsales. adOpenDynamic.

Text = rss!sale_time txtquantity.Text = rss!quantity 62 .Text = rss!emp_number Txtcustomer.Text = rss!product_code Txtsaledate.Text = rss!sale_date txtsaletime.Text = rss!customer_id txtproductcode.Text = rss!product_code Txtsaledate.Recordset Private Sub cmdfirst_Click() rss.Dim rss As ADODB.Text = rss!outlet_number Txtemployee.Text = rss!emp_number Txtcustomer.Text = rss!quantity End Sub Private Sub cmdlast_Click() rss.MoveLast txtsaleid.Text = rss!outlet_number Txtemployee.Text = rss!sale_id txtoutletnumber.Text = rss!customer_id txtproductcode.Text = rss!sale_date txtsaletime.MoveFirst txtsaleid.Text = rss!sale_time txtquantity.Text = rss!sale_id txtoutletnumber.

Text = rss!sale_date txtsaletime.End Sub Private Sub cmdnext_Click() rss.Text = rss!quantity End Sub Private Sub cmdprevious_Click() rss.BOF Then rss.Text = rss!product_code Txtsaledate.EOF Then rss.Text = rss!sale_id txtoutletnumber.Text = rss!emp_number Txtcustomer.MoveLast End If txtsaleid.Text = rss!sale_time txtquantity.MovePrevious If rss.MoveNext If rss.Text = rss!outlet_number Txtemployee.Text = rss!outlet_number 63 .Text = rss!sale_id txtoutletnumber.Text = rss!customer_id txtproductcode.MoveFirst End If txtsaleid.

Enabled = False Txtcustomer.EOF Then txtsaleid.Text = rss!customer_id txtproductcode.Text = rss!sale_time txtquantity.Enabled = False Set rss = New ADODB.Text = rss!sale_date txtsaletime. adOpenDynamic.Text = rss!quantity End Sub Private Sub Form_Load() txtsaleid.Text = rss!emp_number Txtcustomer.Enabled = False txtsaletime.Recordset rss. adLockOptimistic If Not rss.Enabled = False Txtemployee.Enabled = False txtquantity.Enabled = False txtproductcode.Text = rss!sale_id txtoutletnumber.Enabled = False txtoutletnumber.Text = rss!outlet_number 64 .Text = rss!product_code Txtsaledate.Txtemployee.Open "select * from sales". con.Enabled = False Txtsaledate.

EOF Then X=1 txtreturnid.Enabled = False MsgBox "No return to display" End If End Sub Frmreturn.Text = rss!product_code Txtsaledate.Txtemployee.Text = X Else rsr.Text = rss!sale_date txtsaletime.Caption = "&Add" Then If rsr.Text = rss!quantity Else cmdnext.Enabled = False cmdlast.Enabled = False cmdfirst.Text = rss!customer_id txtproductcode.MoveLast 65 .Recordset Private Sub cmdadd_Click() If cmdadd.Enabled = False cmdprevious.Text = rss!emp_number Txtcustomer.Text = rss!sale_time txtquantity.frm Dim rsr As ADODB.

Text) rsr!outlet_number = Val(lstoutlet.X = rsr!return_id + 1 txtreturnid.Text rsr.Update Call updateinventory End If cmdadd.Caption = "&Add" 66 .Text = X End If rsr.Text) rsr!product_code = Val(lstproduct.AddNew cmdadd.Caption = "&Save" Else Dim f As Integer f=0 Call valid(Me.Text) rsr!return_date = Date rsr!quantity = Val(txtquantity) rsr!reason = Lstreason. f) If f = 1 Then Exit Sub Else rsr!return_id = Val(txtreturnid) rsr!ship_id = Val(Lstsaleid.

txtquantity.Text = "" End If End Sub Private Sub Form_Load() Dim rsl As ADODB. adLockOptimistic txtreturnid. adOpenDynamic.MoveNext Loop Set rsr = New ADODB.Recordset Set rsl = New ADODB.EOF Lstsaleid.Open "select * from returns".AddItem rsl!ship_id rsl.Enabled = False End Sub 67 .Open "select distinct ship_id from shiping". con.Recordset rsl.AddItem "not sold" txtreturndate.Recordset rsr. adLockOptimistic Do While Not rsl.AddItem "Broken" Lstreason. con. adOpenDynamic.Enabled = False Lstreason.Text = Date txtreturndate.AddItem "bad quality" Lstreason.

Text) & "and outlet_number = " & Val(lstoutlet.Clear Dim rso As ADODB.Text) rsi. adLockOptimistic Do While Not rso.Open str1. adOpenDynamic.Recordset Set rso = New ADODB.Recordset Set rsi = New ADODB.Recordset Dim n As Integer.Text) str1 = "select * from inventory where outlet_number = " & out & " and product_code =" & n rsi. con.Private Sub updateinventory() Dim rsi As ADODB.EOF 68 .Text) rso.Text) n = Val(lstproduct. adOpenDynamic.EOF Then rsi!quantity = rsi!quantity .Open str1. adLockOptimistic If Not rsi. con.Recordset str1 = "select * from shiping where ship_id = " & Val(Lstsaleid.Val(txtquantity. out As Integer out = Val(lstoutlet.Update End If End Sub Private Sub Lstoutlet_Click() lstproduct.

Text) rso.MoveFirst Txtoutlet.Text = rsr!outlet_number 69 .Recordset str1 = "select distinct outlet_number from shiping where ship_id = " & Val(Lstsaleid.EOF lstoutlet.Recordset Set rso = New ADODB.frm Dim rsr As ADODB.AddItem rso!product_code rso.lstproduct.Clear Dim rso As ADODB.MoveNext Loop lstoutlet. adLockOptimistic Do While Not rso.MoveNext Loop End Sub Private Sub Lstsaleid_Click() lstoutlet. con.AddItem rso!outlet_number rso.Recordset Private Sub cmdfirst_Click() rsr.Refresh End Sub Frmviewreturn.Open str1. adOpenDynamic.

Text = rsr!ship_id txtreason.Text = rsr!reason End Sub Private Sub cmdlast_Click() rsr.Text = rsr!return_date txtquantity.MoveLast End If 70 .EOF Then rsr.MoveNext If rsr.Text = rsr!return_date txtquantity.txtproduct.Text = rsr!outlet_number txtproduct.MoveLast Txtoutlet.Text = rsr!quantity txtsaleid.Text = rsr!return_id txtreturndate.Text = rsr!reason End Sub Private Sub cmdnext_Click() rsr.Text = rsr!product_code txtreturnid.Text = rsr!return_id txtreturndate.Text = rsr!ship_id txtreason.Text = rsr!quantity txtsaleid.Text = rsr!product_code txtreturnid.

Text = rsr!ship_id txtreason.Text = rsr!product_code txtreturnid.BOF Then rsr.MovePrevious If rsr.Text = rsr!quantity txtsaleid.MoveFirst End If Txtoutlet.Text = rsr!return_id txtreturndate.Text = rsr!outlet_number txtproduct.Txtoutlet.Text = rsr!ship_id txtreason.Text = rsr!product_code txtreturnid.Text = rsr!reason End Sub 71 .Text = rsr!return_id txtreturndate.Text = rsr!reason End Sub Private Sub cmdprevious_Click() rsr.Text = rsr!outlet_number txtproduct.Text = rsr!return_date txtquantity.Text = rsr!return_date txtquantity.Text = rsr!quantity txtsaleid.

Text = rsr!reason Else cmdnext.Text = rsr!product_code txtreturnid.Enabled = False txtreason. adLockOptimistic Txtoutlet.Enabled = False txtquantity.Text = rsr!outlet_number txtproduct.Open "select * from returns".Enabled = False 72 .Enabled = False txtsaleid.Enabled = False If Not rsr.Enabled = False cmdprevious.Text = rsr!quantity txtsaleid.Private Sub Form_Load() Set rsr = New ADODB. con.EOF Then Txtoutlet.Recordset rsr.Text = rsr!ship_id txtreason.Text = rsr!return_date txtquantity.Enabled = False txtproduct.Text = rsr!return_id txtreturndate.Enabled = False txtreturnid.Enabled = False cmdlast.Enabled = False txtreturndate. adOpenDynamic.

cmdfirst.MoveFirst 73 .EOF Then rso.BOF) Then rso.MoveNext If rso.MoveLast End If txtoutlet = rso!outlet_number txtaddress = rso!address txtcity = rso!city txtstate = rso!State txtzip = rso!zip txtphone = rso!phone End Sub Private Sub cmdprevious_Click() rso.Enabled = False MsgBox "No return to display" End If End Sub Frmoutlet.Recordset Private Sub cmdnext_Click() rso.frm Dim rso As ADODB.MovePrevious If (rso.

MoveLast X = rso!outlet_number X=X+1 txtoutlet.Text = X txtoutlet.Caption = "&Add" Then Call enadis(0) rso.AddNew 74 .End If txtoutlet = rso!outlet_number txtaddress = rso!address txtcity = rso!city txtstate = rso!State txtzip = rso!zip txtphone = rso!phone End Sub Private Sub Command1_Click() Dim X As Integer If Command1.Enabled = False txtaddress = "" txtcity = "" txtstate = "" txtzip = "" txtphone = "" rso.

f) If f = 1 Then Exit Sub Else Call modifyrec Command1.Caption = "&Add" txtoutlet.Delete If Not rso.EOF Then Call cmdnext_Click Else 75 .Enabled = True Call enadis(1) End If End If End Sub Private Sub Command2_Click() Call modifyrec End Sub Private Sub Command3_Click() rso.Command1.Caption = "&Save" Else Dim f As Integer Call valid(Me.

Recordset rso. adOpenDynamic.Enabled = False Set rso = New ADODB. adLockOptimistic txtoutlet = rso!outlet_number txtaddress = rso!address txtcity = rso!city txtstate = rso!State txtzip = rso!zip txtphone = rso!phone End Sub Private Sub modifyrec() rso!outlet_number = txtoutlet rso!address = txtaddress rso!city = txtcity rso!State = txtstate rso!zip = txtzip rso!phone = txtphone 76 .Open "select * from outlet".Call cmdprevious_Click End If End Sub Private Sub Form_Load() txtoutlet. con.

Enabled = True cmdprevious.Recordset Private Sub cmdadd_Click() Dim X As Integer If cmdadd.frm Dim rso As ADODB.Caption = "&Add" Then Call enadis(0) rso.Update End Sub Private Sub enadis(a As Integer) If a = 0 Then Command2.Enabled = True cmdnext.MoveLast 77 .Enabled = False cmdnext.Enabled = True End If End Sub Frmcustomer.Enabled = False Else Command2.rso.Enabled = False Command3.Enabled = False cmdprevious.Enabled = True Command3.

AddNew cmdadd.Enabled = False txtcustomername = "" txtaddress = "" txtcity = "" txtstate = "" txtzip = "" txtphone = "" rso. f) If f = 1 Then Exit Sub Else Call modifyrec cmdadd.X = rso!customer_id X=X+1 txtcustomerid.Caption = "&Add" txtcustomerid.Enabled = True End If Call enadis(1) 78 .Text = X txtcustomerid.Caption = "&Save" Else Dim f As Integer Call valid(Me.

End If End Sub Private Sub cmdedit_Click() Call modifyrec End Sub Private Sub cmdfirst_Click() rso.MoveLast txtcustomerid = rso!customer_id txtcustomername = rso!customer_name txtaddress = rso!address txtcity = rso!city txtstate = rso!State 79 .MoveFirst txtcustomerid = rso!customer_id txtcustomername = rso!customer_name txtaddress = rso!address txtcity = rso!city txtstate = rso!State txtzip = rso!zip txtphone = rso!phone End Sub Private Sub cmdlast_Click() rso.

MovePrevious If (rso.MoveLast End If txtcustomerid = rso!customer_id txtcustomername = rso!customer_name txtaddress = rso!address txtcity = rso!city txtstate = rso!State txtzip = rso!zip txtphone = rso!phone End Sub Private Sub cmdprevious_Click() rso.MoveFirst End If txtcustomerid = rso!customer_id 80 .MoveNext If rso.BOF) Then rso.EOF Then rso.txtzip = rso!zip txtphone = rso!phone End Sub Private Sub cmdnext_Click() rso.

txtcustomername = rso!customer_name txtaddress = rso!address txtcity = rso!city txtstate = rso!State txtzip = rso!zip txtphone = rso!phone End Sub Private Sub Command1_Click() rso.EOF Then Call cmdnext_Click Else Call cmdprevious_Click End If End Sub Private Sub Form_Load() txtcustomerid.Delete If Not rso. adOpenDynamic.Enabled = False Set rso = New ADODB. con.Open "select * from customer".Recordset rso. adLockOptimistic txtcustomerid = rso!customer_id txtcustomername = rso!customer_name 81 .

txtaddress = rso!address txtcity = rso!city txtstate = rso!State txtzip = rso!zip txtphone = rso!phone End Sub Private Sub modifyrec() rso!customer_id = txtcustomerid rso!customer_name = txtcustomername rso!address = txtaddress rso!city = txtcity rso!State = txtstate rso!zip = txtzip rso!phone = txtphone rso.Update End Sub

Private Sub enadis(a As Integer) If a = 0 Then Command1.Enabled = False cmdfirst.Enabled = False cmdnext.Enabled = False cmdprevious.Enabled = False
82

cmdlast.Enabled = False cmdedit.Enabled = False Else cmdedit.Enabled = False cmdlast.Enabled = True Command1.Enabled = True cmdfirst.Enabled = True cmdnext.Enabled = True cmdprevious.Enabled = True End If End Sub

Frmproduct.frm
Dim rso As ADODB.Recordset Private Sub cmdadd_Click() Dim X As Integer If cmdadd.Caption = "&Add" Then Call enadis(0) rso.MoveLast X = rso!product_code X=X+1 txtproductcode.Text = X txtproductcode.Enabled = False

83

txtartist = "" txttitle = "" txtcost = "" txtsaleprice = "" rso.AddNew cmdadd.Caption = "&Save" Else Dim f As Integer Call valid(Me, f) If f = 1 Then Exit Sub Else Call modifyrec cmdadd.Caption = "&Add" Call enadis(1) txtproductcode.Enabled = True End If End If End Sub Private Sub cmdedit_Click() Call modifyrec End Sub

84

MoveLast txtproductcode = rso!product_code txtartist = rso!artist txttitle = rso!Title txtcost = rso!cost txtsaleprice = rso!Sale_price End Sub Private Sub cmdnext_Click() rso.EOF Then rso.Private Sub cmdfirst_Click() rso.MoveLast End If txtproductcode = rso!product_code txtartist = rso!artist 85 .MoveFirst txtproductcode = rso!product_code txtartist = rso!artist txtcost = rso!cost txtsaleprice = rso!Sale_price End Sub Private Sub cmdlast_Click() rso.MoveNext If rso.

MoveFirst End If txtproductcode = rso!product_code txtartist = rso!artist txttitle = rso!Title txtcost = rso!cost txtsaleprice = rso!Sale_price End Sub Private Sub Command1_Click() rso.MovePrevious If (rso.Delete If Not rso.EOF Then Call cmdnext_Click Else Call cmdprevious_Click End If 86 .BOF) Then rso.txttitle = rso!Title txtcost = rso!cost txtsaleprice = rso!Sale_price End Sub Private Sub cmdprevious_Click() rso.

End Sub Private Sub Form_Load() txtproductcode.Recordset rso.Open "select * from product".Update End Sub Private Sub enadis(a As Integer) 87 . con. adLockOptimistic txtproductcode = rso!product_code txtartist = rso!artist txttitle = rso!Title txtcost = rso!cost txtsaleprice = rso!Sale_price End Sub Private Sub modifyrec() rso!product_code = txtproductcode rso!artist = txtartist rso!Title = txttitle rso!cost = txtcost rso!Sale_price = txtsaleprice rso. adOpenDynamic.Enabled = False Set rso = New ADODB.

frm Dim rso As ADODB.Enabled = True End If End Sub Frmemployee.Enabled = False cmdnext.If a = 0 Then Command1.Enabled = True cmdnext.Enabled = False cmdprevious.Enabled = True cmdfirst.MoveFirst End Sub 88 .Enabled = False cmdlast.Enabled = False cmdedit.Recordset Dim lt As Integer Private Sub cmdfirst_Click() rso.Enabled = False cmdfirst.Enabled = False cmdlast.Enabled = False Else cmdedit.Enabled = True cmdprevious.Enabled = True Command1.

MoveLast End Sub Private Sub cmdnext_Click() rso.Private Sub cmdlast_Click() rso.MoveFirst End If txtoutlet = rso!outlet_number txtemp = rso!emp_number txtempname = rso!emp_name End Sub 89 .MovePrevious If (rso.MoveNext If rso.EOF Then rso.BOF) Then rso.MoveLast End If txtoutlet = rso!outlet_number txtemp = rso!emp_number txtempname = rso!emp_name End Sub Private Sub cmdprevious_Click() rso.

Text = X txtemp.MoveLast X = rso!emp_number X=X+1 txtemp.Caption = "&Save" Else Dim f As Integer Call valid(Me.Enabled = True lt = 1 rso.Private Sub Command1_Click() Dim X As Integer If command1.Caption = "&Add" Then Call enadis(0) txtoutlet. f) If f = 1 Then Exit Sub 90 .Visible = True txtempname.Visible = False Lstoutlet.Enabled = False txtoutlet = "" txtempname = "" rso.AddNew command1.

Enabled = False lt = 0 Call reflist Call enadis(1) End If End Sub Private Sub Command2_Click() If command2.Visible = True txtoutlet.Text.Text = Left(Lstoutlet.Text = Left(Lstoutlet.Enabled = True command2.Visible = True txtoutlet.Caption = "&Add" End If txtoutlet.Visible = False txtempname. 1) Lstoutlet.Caption = "&Save" lt = 1 Else txtoutlet.Visible = False txtempname.Caption = "&Modify" Then Lstoutlet.Else Call modifyrec command1. 1) 91 .Text.

Visible = True Dim X As Integer Call valid(Me.Caption = "&Modify" lt = 0 End If End If End Sub Private Sub Command3_Click() rso.Lstoutlet.Enabled = False command2. X) If X = 1 Then Exit Sub Else Call modifyrec txtempname.Delete If Not rso.Visible = False txtoutlet.EOF Then Call cmdnext_Click Else Call cmdprevious_Click End If End Sub 92 .

Top Lstoutlet. adLockOptimistic txtoutlet = rso!outlet_number txtemp = rso!emp_number txtempname = rso!emp_name Call reflist End Sub Private Sub modifyrec() If lt = 0 Then rso!outlet_number = Val(txtoutlet) Else rso!outlet_number = Val(Left(Lstoutlet.Top = txtoutlet.Recordset rso.Left = txtoutlet.Enabled = False txtempname. adOpenDynamic. con.Enabled = False Lstoutlet.Enabled = False txtemp.Left Set rso = New ADODB.Visible = False Lstoutlet.Open "select * from employee".Text.Private Sub Form_Load() lt = 0 txtoutlet. 1)) End If 93 .

Recordset 94 .Enabled = True cmdprevious.Enabled = False Else command2.Recordset Set rsl = New ADODB.Enabled = True cmdnext.Enabled = True command3.Enabled = False command3.Clear Dim rsl As ADODB.rso!emp_name = txtempname rso.Enabled = True End If End Sub Private Sub reflist() Lstoutlet.Enabled = False command2.Update End Sub Private Sub enadis(a As Integer) If a = 0 Then cmdnext.Enabled = False cmdprevious.

EOF Lstoutlet. con.Text) And pc = Val(Lstproduct. adLockOptimistic Do While Not rsl. f) If f = 1 Then Exit Sub Else If sid = Val(Txtshipid. adOpenDynamic.Recordset Set rsadd = New ADODB.frm Dim rstemp As ADODB.rsl.Recordset Private Sub cmdadd_Click() Static pc As Integer Static outn As Integer Static sid As Integer Dim f As Integer Dim rsadd As ADODB.Text) Then 95 .Recordset Call valid(Me.MoveNext Loop End Sub Frmship.Text) And outn = Val(Lstoutlet.Open "select * from outlet".AddItem rsl!outlet_number & rsl!address rsl.

pc. adLockOptimistic rsadd. Val(txtquantity.Text) pc = Val(Lstproduct.Text) outn = Val(Lstoutlet.MsgBox "you can not ship same item twise to same outlet in a shiping" Exit Sub Else rsadd. adOpenDynamic.Text) rsadd!product_code = Val(Lstproduct.Text)) End If End If rsadd.Text) rsadd!quantity = Val(txtquantity.Text) rsadd.Recordset 96 .Close End Sub Private Sub cmdnew_Click() Dim rsnew As ADODB.Text) Call updateinventory(outn.Text) rsadd!outlet_number = Val(Lstoutlet. con.Open "select * from shiping".AddNew rsadd!ship_id = Val(Txtshipid.Update sid = Val(Txtshipid.

Enabled = False cmdadd.Open "select * from shiping".MoveLast f = rsnew!ship_id + 1 End If Txtshipid.Recordset rsnew.Set rsnew = New ADODB. adLockOptimistic Do While Not rstemp.Recordset rstemp. adLockOptimistic If rsnew. con.EOF 97 . con.Text = f cmdadd.EOF Then f=1 Else rsnew. adOpenDynamic.Enabled = False Call reflist End Sub Private Sub reflist() Set rstemp = New ADODB.Enabled = True End Sub Private Sub Form_Load() Txtshipid.Open "select * from product". adOpenDynamic.

Close rstemp.Open "select * from outlet".EOF Lstoutlet.MoveNext Loop rstemp. con.AddItem rstemp!product_code rstemp. adLockOptimistic Do While Not rstemp.Recordset Set rsu = New ADODB.Recordset str1 = "select * from inventory where outlet_number = " & outlet & " and product_code = " & prod rsu. adLockOptimistic If Not rsu. q As Integer) Dim rsu As ADODB. adOpenDynamic.EOF Then rsu!quantity = rsu!quantity + q rsu.Update 98 .Lstproduct.Open str1.Close End Sub Private Sub updateinventory (outlet As Integer. con. adOpenDynamic.AddItem rstemp!outlet_number rstemp. prod As Integer.MoveNext Loop rstemp.

Close End Sub 99 .End If rsu.

some limitations are also in it. Attempts have been made to concede most of the concept of Inventory procedure. 100 . After studying all the feasibility aspects about this project and found that this project will be feasible to create an automated system of existing system. shipping and returns made in the process . Besides these advantages. It provides the user with the facility to admit the record of sales.CONCLUSION The Music Store Management is a user friendly system. But still inspire of its advantages and limitations it is very useful package. This system provides different types of reports to the user while making helpful decision relating to employees. It is prepared to replace the manual system by the computerized system.

BIBLIOGRAPHY 101 .

0 by Koop .0 by Balena. Francesco (Microsoft Press)  VB 6.0 by Reselman and other  Microsoft Access 2000 by Diana Rain  Using Access by Bott  SAD by E M Awad  SAD by Lee  Software Engineering By Pressman 102 . Ed  Mastering VB 6.0 Evan Jellos  Using VB 6.Bibliography  Programming Visual Basic 6.