















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Information about a supermarket billing system, focusing on the product module and the coding used in Visual Basic 6 for the front end and Microsoft Access for the back end. The system includes data entry for products, database specifications, and software requirements.
Typology: Study Guides, Projects, Research
1 / 23
This page cannot be seen from the preview
Don't miss anything!
















The project is on Supermarket Billing. Supermarket is the place where customers come to purchase their daily using products and pay for that. So there is a need to calculate how many products are sold and to generate the bill for the customer. In our project we have 3 users. First is the data entry operator who will enter the products in database. Second one is the administrator who will decide the taxes and commissions on the products and can see the report of any product. Third one is the bill calculating operator who will calculate the bill and print.
“To make software fast in processing, with good user interface so that user can change it and it should be used for a long time without error and maintenance.”
Work in the Supermarket will be done in the following way:
We will use 5 modules in this project. These are as follows: Module 1: Login–Id This module is made for the login of users. We know that we have 3 users so login-id is for:
Our project has a big scope to do. We can:
shows the overall profit and profit on a particular product and give repots which items are required and which have cross their expiry date. Bottlenecks of the Existing System Every system has pros and cons so existing system also have many advantages and disadvantages. So the bottlenecks of the existing system are as follows:
versions and it is easy to make and maintain database. It is also easy to implement Oracle 8i with Visual C#.Net in Microsoft Visual Studio.Net 2003.
2. Economical Feasibility: In this we consider following costs:
5. Behavioral Feasibility: People are inherently resisted to change and a computer means “change is the only certainty”. An estimate should be made of how strong a reaction the user staff in going to have towards development of new system. Thus special efforts can be made to educate and train the staff.
Coding Private Sub Command1_Click() Unload Me End Sub Private Sub Image1_Click() End Sub Private Sub Label3_Click() End Sub Change Password Coding Dim db As Database Dim rs As Recordset Dim style As VbMsgBoxStyle Dim result As VbMsgBoxResult Private Sub Command1_Click() If Text1.Text = rs!Password Then rs.Edit rs!Password = Text2.Text rs.Update Beep result = MsgBox("Password Suuccessfully Changed.", style, "Supermarket Billing 1.0") Unload Me Else result = MsgBox("Incorrect Password.", style, "Supermarket Billing 1.0") Text1.Text = "" Text2.Text = "" Text1.SetFocus End If End Sub Private Sub Command2_Click() Unload Me End Sub Private Sub Form_Load() Set db = OpenDatabase(App.Path + "\password.mdb") Set rs = db.OpenRecordset("Table1") End Sub Employee Pay slip
Coding Private Sub Command1_Click() Text3.SetFocus Text1.Text = "" Text3.Text = "" Text2.Text = "" Text5.Text = "" Text4.Text = "" rs.MoveFirst End Sub Private Sub Command2_Click() Unload Me End Sub Private Sub Command3_Click() While Not rs.EOF If rs!code = Text3.Text Then Text3.Text = rs!code Text1.Text = rs!Name Text2.Text = rs!address Text5.Text = rs!designation Text4.Text = rs!salary End If rs.MoveNext Wend End Sub Private Sub Form_Load() Set db = OpenDatabase(App.Path + "\emp.mdb") Set rs = db.OpenRecordset("Table1") 'Text1.SetFocus End Sub Private Sub Text3_Change() End Sub Save Employee’s Details
Coding Dim i As Integer Private Sub Combo1_Click() Command1.Enabled = True End Sub Private Sub Command1_Click() rs!code = Text1.Text rs!Name = Text3.Text rs!address = Text2.Text rs!designation = Combo1.Text rs!salary = Text4.Text rs.Update Command1.Enabled = False Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" 'Combo1.Text = "" End Sub Private Sub Command2_Click() Unload Me End Sub Private Sub Command3_Click() i = i + 1 Text1.Text = i rs.AddNew Text1.Enabled = False Text2.Enabled = True Text3.Enabled = True Text4.Enabled = True Combo1.Enabled = True End Sub Private Sub Form_Load() Text1.Enabled = False Text2.Enabled = False Text3.Enabled = False Text4.Enabled = False Combo1.Enabled = False Command1.Enabled = False Combo1.AddItem ("Manager ") Combo1.AddItem ("Cashier ") Combo1.AddItem ("Accountant ") Combo1.AddItem ("Sales ") Combo1.AddItem ("Security ") Combo1.AddItem ("Sweeper ") Set db = OpenDatabase(App.Path + "\emp.mdb") Set rs = db.OpenRecordset("Table1") rs.MoveLast Text1.Text = rs!code i = rs!code End Sub Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then Text2.SetFocus End If End Sub Total Stock
Coding Dim style As VbMsgBoxStyle Dim result As VbMsgBoxResult Dim db As Database Dim rs As Recordset Dim db1 As Database Dim db4 As Database Dim db2 As Database Dim rs2 As Recordset Dim rs1 As Recordset Dim rs3 As Recordset Dim rs4 As Recordset Dim rs6 As Recordset Private Sub Combo1_Click() Set rs3 = db1.OpenRecordset("Table1") rs3.MoveFirst While Not rs3.EOF If Combo1.Text = rs3!dealer Then Combo2.AddItem rs3!product 'Combo3.AddItem rs3!price 'Combo4.AddItem rs3!Weight End If rs3.MoveNext Wend End Sub Private Sub Combo2_Click() Set rs3 = db1.OpenRecordset("Table1") rs3.MoveFirst While Not rs3.EOF If Combo2.Text = rs3!product Then Combo3.AddItem rs3!price Combo4.AddItem rs3! Weight End If rs3.MoveNext Wend End Sub Private Sub Command1_Click() On Error Resume Next rs.AddNew rs!dealername = Combo1.Text rs!itemname = Combo2.Text rs!price = Combo3.Text rs!quantity = Text3.Text rs! amount = Text2.Text rs!date1 = Text1.Text rs!time1 = Text4.Text rs!Weight = Combo4.Text rs.Update result = MsgBox("Saved Successfully.", style, "Supermarket Billing 1.0") Unload Me Load Form7 Form7.Show Form7.Move 0, 0 End Sub Private Sub Command2_Click() Unload Me Load Form7 Form7.Show Form7.Move 0, 0 End Sub Private Sub Command3_Click() Unload Me End Sub Private Sub Command5_Click() End Sub Private Sub Command6_Click() rs.Delete End Sub Private Sub Form_Load() Command1.Enabled = False Text1.Text = Date Set db1 = OpenDatabase(App.Path + "\deal1.mdb") Set rs1 = db1.OpenRecordset("Table1") Set rs2 = db1.OpenRecordset("Select distinct dealer from Table1 ") Set rs4 = db1.OpenRecordset("Table1") 'Set db4 =apppath+ OpenDatabase("c:\employee\transaction.mdb") 'opens record from transaction database Set db = OpenDatabase(App.Path + "\save.mdb") Set rs = db2.OpenRecordset("Table1") 'saves the purchased data to updated data rs2.MoveFirst While Not rs2.EOF Combo1.AddItem rs2!dealer rs2.MoveNext Wend End Sub Private Sub Text1_Change() End Sub
Private Sub Text2_Change() Command1.Enabled = True End Sub Private Sub Text3_Change() Text2.Text = Val(Combo3.Text) * Val(Text3.Text) End Sub Private Sub Timer1_Timer() Text4.Text = Time End Sub Add New Product
Coding Dim db1 As Database Dim rs1 As Recordset Dim rs2 As Recordset Dim i As Integer Private Sub Command1_Click() rs1!code = Text1.Text rs1!dealer = Combo1.Text rs1!product = Text5.Text rs1!price = Text6.Text rs1!Weight = Text2.Text rs1.Update Command1.Enabled = False Command3.Enabled = True Text1.Text = "" Text5.Text = "" Text6.Text = "" Text2.Text = "" Combo1.Clear End Sub Private Sub Command2_Click() Unload Me End Sub Private Sub Command3_Click() i = i + 1 Text1.Text = i rs1.AddNew Text1.Enabled = False Combo1.Enabled = True Text5.Enabled = True Text6.Enabled = True Text2.Enabled = True Command1.Enabled = True End Sub View Sold Stock
Coding Dim db As Database Dim db1 As Database Dim db2 As Database Dim rs As Recordset Dim rs As Recordset Dim rs2 As Recordset Dim rs3 As Recordset Dim rs4 As Recordset Dim style As VbMsgBoxStyle Dim result As VbMsgBoxResult Private Sub Combo1_Click() Set rs1 = db.OpenRecordset("Select * from Table1 ") Text2.Text = "" rs1.MoveFirst While Not rs1.EOF If Combo1.Text = rs1!product Then Text2.Text = Val(rs1! quantity) + Val(Text2.Text) End If rs1.MoveNext Wend Set rs2 = db1.OpenRecordset("Table1") Set rs2 = db1.OpenRecordset("Select * from Table1 ") Text1.Text = "" rs2.MoveFirst While Not rs2.EOF If Combo1.Text = rs2!itemname Then Text1.Text = Val(rs2!quantity) + Val(Text1.Text) End If rs2.MoveNext Wend Text3.Text = Val(Text1.Text) - Val(Text2.Text) If Val(Text3.Text) <= 4 Then result = MsgBox("WARNING STOCK LOW !!!.", style, "Supermarket Billing 1.0") End If End Sub Private Sub Command1_Click() Unload Me End Sub Private Sub Command2_Click() CrystalReport1.Action = False End Sub Private Sub Form_Load() Set db = OpenDatabase(App.Path + "\bill.mdb") Set rs = db.OpenRecordset("Select distinct product from Table1 ") rs.MoveFirst While Not rs.EOF Combo1.AddItem rs!product rs.MoveNext Wend Set db1 = OpenDatabase(App.Path + "
save.mdb") End Sub Update Selling Price
Coding Dim rs As Recordset Dim rs1 As Recordset Dim db As Database Private Sub Combo1_Click() Set rs1 = db.OpenRecordset("select * from Table1 ") List1.Clear List2.Clear List4.Clear List5.Clear List6.Clear List7.Clear Text1.Text = "" Text2.Text = "" Text3.Text = "" rs1.MoveFirst While Not rs1.EOF If Combo1.Text = rs1!customername Then Text1.Text = rs1!customernumber Text2.Text = rs1!Date Text3.Text = rs1!Time List1.AddItem rs1!itemnumber List2.AddItem rs1!product List4.AddItem rs1!Weight List5.AddItem rs1!price List6.AddItem rs1!quantity List7.AddItem rs1!totalprice End If rs1.MoveNext Wend End Sub Private Sub Command1_Click() Unload Me End Sub Private Sub Form_Load() Set db = OpenDatabase(App.Path + "\bill.mdb") Set rs = db.OpenRecordset("Select distinct customername from Table1") rs.MoveFirst While Not rs.EOF Combo1.AddItem rs!customername rs.MoveNext Wend End Create New Bill
Coding Dim a As Integer Dim b As Integer Dim rs As Recordset Dim rs1 As Recordset Dim rs2 As Recordset Dim rs3 As Recordset Dim rs4 As Recordset Dim rs5 As Recordset Dim rs6 As Recordset Dim db As Database Dim db1 As Database Dim db2 As Database Dim i As Integer Dim j As Integer Private Sub Combo1_Click() Set rs1 = db.OpenRecordset("Select * from Table1") rs1.MoveFirst Text4.Text = "" Text5.Text = "" While Not rs1.EOF If Combo1.Text = rs1!product Then Text3.Text = rs1!sellingprice Text2.Text = rs1!Weight End If rs1.MoveNext Wend End Sub Private Sub Command1_Click() On Error Resume Next rs2.AddNew rs2!customernumber = Text7.Text rs2!customername = Text10.Text rs2!itemnumber = Text6.Text rs2!product = Combo1.Text 'rs2!code = Text1.Text rs2!Weight = Text2.Text rs2!price = Text3.Text rs2!quantity = Text4.Text rs2!totalprice = Text5.Text rs2!Date = Text8.Text rs2!Time = Text9.Text rs2.Update Beep Beep rs4.AddNew rs4!customernumber = Text7.Text rs4!customername = Text10.Text rs4!itemnumber = Text6.Text rs4!product = Combo1.Text 'rs4!code = Text1.Text rs4!Weight = Text2.Text rs4!price = Text3.Text rs4!quantity = Text4.Text rs4!totalprice = Text5.Text rs4! Date = Text8.Text rs4!Time = Text9.Text rs4.Update List1.AddItem Text6.Text List2.AddItem Combo1.Text 'List3.AddItem Text1.Text List4.AddItem Text2.Text List5.AddItem Text3.Text List6.AddItem Text4.Text List7.AddItem Text5.Text b = 0 For a = 0 To List7.ListCount - 1 b = b + Val(List7.List(a)) Label19.Caption = b Next a i = i