SlideShare uma empresa Scribd logo
1 de 201
Baixar para ler offline
Project Report
2017
Visual Basic
Dezyne E’ Cole College
106/10, Civil Lines, Ajmer
Tel: 0145-2624679
www.dezyneecole.com
2016-2017
Submitted by:
Kirtesh Khandelwal
1
ACKNOWLEDGEMENT
We are extremely grateful and remain indebted to our guide MR. Tarun Sharma for
being a source of inspiration and for his constant support in the Design,
Implementation and Evaluation of the project.
We are thankful to them for their constant constructive criticism and invaluable
suggestions, which benefited us a lot while developing the project on “Restaurant
Billing System”. He has been a constant source of inspiration and motivation for hard
work. He has been very cooperative throughout this project work. Through this
column, it would be our utmost pleasure to express our warm thanks to him for their
encouragement, cooperation and consent without which we mightn’t be able to
accomplish this project.
We also express our gratitude to “Mrs. Vinita Mathur” for providing us the
infrastructure to carry out the project and to all staff members who were directly and
indirectly instrument in enabling us to stay committed for the project.
We also express our gratitude to our college “DEZYNE E’COLE COLLEGE” for
providing us the information to carry out the project and for providing us the
experienced mentors who were directly and indirectly instrument in enabling us to
stay committed for the project.
SYNOPSIS
We are creating a software that is Restaurant Billing System. This project is based on
McDonald’s billing of product according to Customer requirement.
This project gives information about:
1. Yearly, Monthly, Daily sales of product.
2. Yearly, Monthly, Daily Best Employee.
3. We can fetch the information or details about the Customers.
4. Only the Authorized person can access this Software.
5. Show the details about the product like product name, price, size etc.
6. Add new Employees and Admin only by the Admin.
7. Delete any Employee and Admin only by the Admin.
8. Easily switch from Admin to Employee panel and from Employee to Admin
panel.
9. Update the product according to Customer requirement.
10.Each Employee and Customer has its unique id so easy to fetch the detail.
11.Automation like auto Id concept, auto Password Generator auto Bill number
generator.
12.Re-generating of bill for the Customer facility.
So overall it give user friendly interface and have unique id and password so all data
is safe from the unauthorized person. This project provides all facilities that is
required in billing system.
Introduction of Information Technology
(IT)
Information Technology –
The term commonly used as a synonym for computers and computer mentors, but it
also emphasis other information distribution technologies such as television and
telephones.
Several industries are associated with information technology, including computer
hardware, software, electronics, semiconductors, internet, telecommunication
equipment and ecommerce. Human have been storing, retrieving, manipulating and
communicating information since the summaries in Mesopotamia developed
writing in about 3000BC, but the term information technology in the modern sense
first appeared in a 1958 article published in the Howard business Review, authors
Harold T. Leavitt and Thomas L. whisper commented that the new technology does
not yet have a single established name.
We shall call it information technology their definition consist of their categories.
Technique for processing, the application of statistical and mathematics method of
decision making and the simulation of higher order thinking through computer
program.
Based on the storage and processing technologies employed, it is possible to
distinguish four distinct phase of IT development: pre-mechanical (1450-1840),
electromechanical (18401940), electronic (1940-present) and moreover it as a
service. This article focuses on the most recent period (electronic), which began in
about 1940.
Set of tools, processes, and methodologies (such as coding, programming, data
communication, data conversion, storage & retrieval, system analysis & design,
system control) and associated equipment employee to collect process and present
information. In broad terms, it also includes office automation, multimedia and
Tele – communication.
Information Technology, a source we call the “computer”, that can show you
what information via Tele-portal, scoping, working calibration for transmitting
throughout the world.
More commonly known as I.T. is the most popular career and the fastest growing
industry in the world. There are several success stories about people who choose
this field for a career and are now on top of their game.
Information technology covers a board spectrum of hardware and software solution
that enable organizations to gather, organize and analyze data. It also details
technology based workflow processes.
Few reasons for why people choose IT –
 Low cost of education
The biggest advantage of choosing information technology for a career is that it
has very low cost of education as compared to many other career choices. You
don’t need degree to become an I.T. professional. Instead, you can get quick
training to be certified in specific areas of information technology. This way
you save huge amounts of money that you may have otherwise spent on years
of college tuition.
 Fastest changing industry
The information technology industry operates at a speed much faster than any
other industry and for this reason, there’s always a significant demand for
highly skilled workers with the innovations in cloud computing, big data and
cyber security an aspiring I.T. professional has many avenues to pursue and
grow from and I.T. professional never stops learning, and must always stay on
top of the latest technology trend in order to be successful in the field. The
more training and knowledge the I.T. professional has the more employable he
or she will be.
 Better income
It is well known fact that information technology professionals are paid well,
compared to other professionals. An I.T. professional with the right mix of
certifications & experience can find a permanent position in either the public or
private sector. Recently many companies have been extensively hiring experts
in cloud computing, cyber security and network security to help enhance their
current systems.
Bachelor of Computer Application
BCA is a part of information technology. In this age of computers and everything
being digitalized, knowledge about machines is very important. It helps the person
have a distinct advantage over the others who do not have a degree in computer
applications. The domain is growing a rapid pace. In the 1990’s with the advent of
globalization computers grew in prominence and slowly started to replace the paper
and files in offices. It brought down the cost to quite an exist.
BCA is a three year undergraduate degree course. Students will be taught subjects
which are related to the technological applications that are requires in today’s practical
work field.
1. Skills to be learnt –
Students who study for a bachelor of computer application (BCA) will get skills
and information not only about computer and information technology but also in
communication, organization and management. One also get to learn
programming languages such as C, C++, JAVA, JavaScript, HTML&CSS, SQL,
Foxpro, Oracle, Visual Basics, Asp etc.
2. Career opportunities –
BCA given a number of opportunities to individuals to go ahead and shine in
their lives. The opportunities available for people doing BCA are galore. A few of
them like software programmer, system and network administrator, web
designer, faculty for computer science / communication technology etc. the
range of chances in information technology are immense.
According to our MDS University we have learnt many theory & practical
subjects –
 First Year
o Management and accounting
o Computer fundamental
o PC software
o Fundamentals of C Programming
o Data structure and algorithm
o Multimedia Basic
 Second year
o Communication skills
o Database management system
o Client server technology
o Java Programming
o C++ Programming
o Computer Graphics
 Third year
o Visual Basic Programming
o Relational database management system (ORACLE / SQL)
o E – Commerce
o Computer Network and Mobile Computing
o Internet tools & website development (JavaScript, ASP)
o Management Information System
Introduction to Project
“Restaurant Billing System” in “Visual Basic Programming Language” which
includes many features like:
 Graphical and User friendly interface.
 Less time consuming.
 No paper work.
 Efficient working.
 Easy updation of database.
 Login through unique id and password by admin i.e. security from an
unauthorized people.
Why it is made –
 The main purpose of this project is replace the manually work.
 Provide a friendly environment to maintain the details of customer and
employee.
 This project reduce the paper work.
 It reduce complexity.
 Security from unauthorized user.
 For easy billing of restaurant.
 Give accurate result.
Visual Basic –
Visual Basic 6.0 Language Visual basic (VB) is a 3rd generation event-driven
programming language developed by Microsoft for their operating system
windows. Visual basic is a widely understood high level programming
language, written using simple English. Like – words & syntax.
It is an interpreted language. Code can be run immediately after being written.
Having an interpreter makes its simpler to use, as there is no need for the
computer to compile the code, possibly finding errors to fix, before the
compiled version can be run. Once the code is working, it can be compiled into
an .exe file so that it will run on all modern windows computers, whether VB is
installed or not.
The language allows a beginning programmer to produce professional –
looking windows applications, as its include drawing tools to create normal
windows and structures which allow programs to be adapted for use with the
internet. VB will not run on operating systems other than windows.
Visual Basic has its origin in basic which was developed round about the year
1960, when high level languages were just being introduced to the computer
community. Microsoft has made it extremely powerful by gearing all its good
features to the windows environment.
Evaluation of Visual Basic –
VB 1.0 was introduced in 1991. The drag and drop design for creating the user
interface is derived from prototype from generator developed by Allan cooper
and his company called Tripod. Microsoft contracted with cooper and his
associates to develop Tripod into a programmable form system for windows
3.0, under the code name Ruby (no relation to the Ruby programming
language). Tripod did not include a programming language at all. Microsoft
decided to combine Ruby with the basic language to create Visual Basic.
Need of Visual Basic –
Visual Basic is easy to learn programming language. With Visual Basic you
can develop windows based applications and Games. Visual Basic is much
easier to learn than others language (like Visual C++), and yet it’s powerful
programming language.
Visual Basic suite more for desktop application developing than for Games
developing. You can create sophisticated games using Visual Basic, Visual
Basic will be probably powerful enough to suite all your application and games
programming needs.
Ms-Access Requirement –
 All the databases are created in the Microsoft access 2003.
 Microsoft access 2003 is the product of Microsoft.
 Microsoft access 2003, we create table which is the combination of rows and
columns.
 When we want to connect Microsoft access database in VB project so we save
the Microsoft access file with .mdb extension.
 We use Microsoft access 2003 with visual basic because visual basic supports
Microsoft access 2003.
 We can create multiple tables in single database.
 Visual basic does not support Microsoft access 2007 or later version.
Project & Their Facilities
The project that I made is “Restaurant Billing System Software”. This project is based
on billing of product.
This project provides all information that required in billing software. This software
describes the working of supermarket. This project contains lots of information will
entered properly.
This project basically works on two categories:-
 Front End
 Back End
 Front End - Basically this project work on visual basic.
 Back End - Basically this project works on MS Access 2003.
 At the Front hand basically this project works on Visual Basic. It is event
driven programming based project.
 At the Back hand basically this project works on Microsoft Access 2003.
My project contains ADODB connectivity with modules and also contains List View
so that all the information shown in List View.
MS Access contains the database and the tables which is help to fetch the records.
The file extension of MS Access 2003 is .MDB.
Why we made this project:-
1. To give knowledge of computer and reduce the work load of human being.
2. In my project there are so many facilities available which get our work easier.
3. It will increase the productivity and reduce the duplicity of data.
4. It will access easier to information related to the student.
5. It will maintain all records and time saving interface application.
6. It reduces the paper work.
7. It is accurate and reduce the complexity.
8. It saves the cost of employee.
9. It will give security to the staff.
10.To provide easy to user interface.
Objectives of Restaurant Management System –
1. Automation – The application automates each and every activity of the
manual system and increases its throughput. Thus the response time of the
system is very less and it works very fast.
2. Accuracy – The application provides the user a quick response with very
accurate information regarding the user etc. any details or system in an accurate
manner, as when required.
3. User Friendly – The application “Restaurant Billing System” has a very
user friendly interface. Thus the users will full very easy to work on it. The
application provides accuracy along with a pleasant interface. Make the present
manual system more interactive, speedy and user friendly.
4. Availability – The all Restaurant detail store permanently in the database
admin can see the data in the availability of any information, whatever needed.
5. Maintain Cost – Reduce the cost of maintenance. It is standalone
application so no required of cost for maintain it.
DIFFERENT LEVELS OF DFD (Dataflow Diagram) –
0 LEVEL DFD (Dataflow Diagram)
1 LEVEL DFD (Dataflow Diagram)
Restaurent
Billing
System
ADMIN
EMPLOYEE
Restaurent
Billing
System
ADMIN
EMPLOYEE Database
Request Request
Response Response
CONFIGURATION MODULES –
EMPLOYEE
ADMIN
ADD
New
ADMIN
ADD
NEW
EMPLOYEE
EMPLOYEE
ALL
FEATURES
ADD
ORDER
MODIFY
ORDER
GENERATE
BILL
In this project we create following tables –
1. Admin Details
2. Employee Details
3. Best Employee Details
4. Categories Details
5. Customer Details
6. Menu Details
7. Permanent Details
8. Temporary Details
9. Today Best Details
Admin Details:-
Fields Data
Type
Default Key Extra
ID Text Not Null - Auto
generated
mem_name Text Not Null - -
mem_pass Text Not Null - -
auto_num Number Not Null - -
product_sell Number Not Null - -
Employee Details:-
Fields Data
Type
Default Key Extra
ID Text Not Null - Auto
generated
mem_name Text Not Null - -
mem_pass Text Not Null - -
Best Employee Details:-
Categories Details:-
auto_num Number Not Null - Auto
generated
product_sell Number Not Null - -
Fields Data Type Default Key Extra
Emp_id Text Not Null - Auto
increment
Emp_name Text Not Null - -
January Number Not Null - -
Fabrary Number Not Null - -
March Number Not Null - -
April Number Not Null - -
May Number Not Null - -
June Number Not Null - -
July Number Not Null - -
Auguest Number Not Null - -
September Number Not Null - -
October Number Not Null - -
November Number Not Null - -
December Number Not Null - -
Total Number Not Null - -
Fields Data
Type
Default Key Extra
ID Number Not Null - Auto
generated
category Memo Not Null - -
Customer Details:-
Menu Details:-
Permanent Details:-
Fields Data Type Default Key Extra
Cname Text Not Null - -
Address Text Not Null - -
Contact Number Not Null - -
Email Number Not Null - -
Pincode Number Not Null - -
auto no Number Not Null - Auto
generated
Mccardno Text Not Null - -
Mccardpass Text Not Null - Auto
generated
Memamt Number Not Null - -
Fields Data Type Default Key Extra
Id Number Not Null - Auto
generated
Category Text Not Null - -
Pname Text Not Null - -
Samt Text Not Null - -
Mamt Text Not Null - -
Lamt Text Not Null - -
Fields Data Type Default Key Extra
cusname Text Not Null - -
cusphno Text Not Null - -
cusdob Date/Time Not Null - -
bill_no Text Not Null - Auto
Temporary Details:-
Today Best Details:-
generated
bdate Date/Time Not Null - -
btime Date/Time Not Null - Auto
generated
pname Text Not Null - -
price number Not Null - -
quantity number Not Null - -
vat number Not Null - -
amt number Not Null - -
dis number Not Null - -
ser_tax number Not Null - -
total number Not Null - -
employeee Text Not Null - -
Fields Data Type Default Key Extra
pname Text Not Null - -
price Number Not Null - -
quantity Number Not Null - -
vat Number Not Null - -
amt Number Not Null - -
Fields Data Type Default Key Extra
Tdate Date/Time Not Null - -
Emp1 name Number Not Null - Auto generated
Emp2 name Number Not Null - Auto generated
….. name Number Not Null - Auto generated
Empn name Number Not Null - Auto generated
SOFTWARE REQUIREMENTS:-
1. Visual studio 6 which contain visual basic 6.0
2. Microsoft access 2003 which extension should be .MDB
3. GUI(Graphical User Interface) operating system (Window7)
HARDWARE REQUIREMENTS:-
1. Central Processing Unit (RAM, ROM, HARD DISK).
2. Desktop (LCD, LED, CRT, Any visual display).
3. Mouse and Keyboard.
4. Internal Memory 500MB.
5. Minimum 2GB RAM.
MY PROJECT
Login_Form:-
Private Sub Command1_Click()
Frame3.Visible = True
Text1.SetFocus
End Sub
Private Sub Command2_Click()
Frame4.Visible = True
Text3.SetFocus
End Sub
Private Sub Command3_Click()
Call terminate
End Sub
Private Sub Command4_Click()
Call terminate
End Sub
Private Sub Command5_Click()
Call connect
find = 0
With tmidpass
Do Until .EOF
If ((.Fields(0).Value = Text1.Text Or .Fields(1).Value = Text1.Text) And
(.Fields(2).Value = Text2.Text)) Then
adname = .Fields(1).Value
Order_Now.Label15.Caption = "Current Admin :"
Order_Now.Label16.Caption = adname
find = 1
ElseIf ((.Fields(0).Value = Text1.Text Or .Fields(1).Value = Text1.Text) And
(.Fields(2).Value <> Text2.Text)) Then
find = 2
ElseIf ((.Fields(0).Value <> Text1.Text Or .Fields(1).Value <> Text1.Text)
And (.Fields(2).Value = Text2.Text)) Then
find = 3
End If
.MoveNext
Loop
If find = 1 Then
Main_Interface.Show
Main_Interface.Command3.Enabled = True
Main_Interface.Command1.Enabled = True
Main_Interface.Command11.Enabled = True
Main_Interface.Command4.Enabled = True
Main_Interface.Command12.Enabled = True
Main_Interface.Command13.Enabled = True
Main_Interface.Command5.Enabled = True
Main_Interface.Command3.Visible = True
Main_Interface.Command1.Visible = True
Main_Interface.Command11.Visible = True
Main_Interface.Command4.Visible = True
Main_Interface.Command5.Visible = True
Main_Interface.Command12.Visible = True
Main_Interface.Command13.Visible = True
Main_Interface.Command1.Top = 1320
Main_Interface.Command4.Top = 2160
Main_Interface.Command3.Top = 3120
Main_Interface.Command13.Top = 3960
Main_Interface.Command12.Top = 4800
Main_Interface.Command5.Top = 5640
Main_Interface.Command11.Top = 6600
Main_Interface.Command1.Left = 840
Main_Interface.Command4.Left = 840
Main_Interface.Command3.Left = 840
Main_Interface.Command13.Left = 840
Main_Interface.Command12.Left = 840
Main_Interface.Command5.Left = 840
Main_Interface.Command11.Left = 840
Unload Me
ElseIf find = 2 Then
MsgBox ("Wrong Password::Try again"), vbCritical, ("Mcdonald's")
Text2.Text = ""
Text2.SetFocus
ElseIf find = 3 Then
MsgBox ("Invalid ID or Name"), vbCritical, ("Mcdonald's")
Text1.Text = ""
Text1.SetFocus
Else
MsgBox ("Fill the Details Correctly"), vbCritical, ("Mcdonald's")
Text2.Text = ""
Text1.Text = ""
Text1.SetFocus
End If
End With
End Sub
Private Sub Command6_Click()
Frame3.Visible = False
End Sub
Private Sub Command7_Click()
Frame4.Visible = False
End Sub
Private Sub Command8_Click()
Call connect
find = 0
With eidpass
Do Until .EOF
If ((.Fields(0).Value = Text3.Text Or .Fields(1).Value = Text3.Text) And
(.Fields(2).Value = Text4.Text)) Then
find = 1
empname = .Fields(1).Value
Order_Now.Label15.Caption = "Current Emp. :"
Order_Now.Label16.Caption = empname
Main_Interface.Command4.Enabled = False
Else
If ((.Fields(0).Value = Text3.Text Or .Fields(1).Value = Text3.Text) And
(.Fields(2).Value <> Text4.Text)) Then
find = 2
Else
If ((.Fields(0).Value <> Text3.Text Or .Fields(1).Value <> Text3.Text) And
(.Fields(2).Value = Text4.Text)) Then
find = 3
End If
End If
End If
.MoveNext
Loop
If find = 1 Then
Unload Me
Main_Interface.Command3.Enabled = True
Main_Interface.Command1.Enabled = True
Main_Interface.Command11.Enabled = True
Main_Interface.Command4.Enabled = False
Main_Interface.Command12.Enabled = True
Main_Interface.Command13.Enabled = False
Main_Interface.Command5.Enabled = True
Main_Interface.Command4.Visible = False
Main_Interface.Command13.Visible = False
Main_Interface.Command1.Visible = True
Main_Interface.Command3.Visible = True
Main_Interface.Command12.Visible = True
Main_Interface.Command5.Visible = True
Main_Interface.Command11.Visible = True
Main_Interface.Command1.Top = 1680
Main_Interface.Command3.Top = 2760
Main_Interface.Command12.Top = 3840
Main_Interface.Command5.Top = 4920
Main_Interface.Command11.Top = 6000
Main_Interface.Command1.Left = 840
Main_Interface.Command3.Left = 840
Main_Interface.Command12.Left = 840
Main_Interface.Command5.Left = 840
Main_Interface.Command11.Left = 840
Main_Interface.Show
Else
If find = 2 Then
MsgBox ("Wrong Password::Try Again"), vbCritical, ("Mcdonald's")
Text4.Text = ""
Text4.SetFocus
Else
If find = 3 Then
MsgBox ("Invalid ID or Name::Try Again"), vbCritical, ("Mcdonald's")
Text3.Text = ""
Text3.SetFocus
Else
MsgBox ("Fill the Details Correctly"), vbCritical, ("Mcdonald's")
Text3.Text = ""
Text4.Text = ""
Text3.SetFocus
End If
End If
End If
End With
End Sub
Private Sub Command9_Click()
Call terminate
End Sub
Private Sub Form_Load()
Frame3.Visible = False
Frame4.Visible = False
End Sub
Private Sub Picture1_Click()
Timer1.Enabled = True
Frame4.Visible = False
Command1.SetFocus
End Sub
Private Sub Picture2_Click()
Timer2.Enabled = True
Frame3.Visible = False
Command3.SetFocus
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If Text1.Text = "" Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or (KeyCode >= 60 And KeyCode <= 90) Or KeyCode = 13 Or KeyCode =
35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text1.Text = ""
End If
End If
End Sub
Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text2.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text2.Text = ""
End If
End If
End Sub
Private Sub Text3_KeyUp(KeyCode As Integer, Shift As Integer)
If Text3.Text = "" Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or (KeyCode >= 60 And KeyCode <= 90) Or KeyCode = 13 Or KeyCode =
35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text3.Text = ""
End If
End If
End Sub
Private Sub Text4_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text4.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text4.Text = ""
End If
End If
End Sub
Private Sub Timer1_Timer()
If Timer1.Enabled = True Then
Picture1.Top = Picture1.Top - 60
Timer2.Enabled = False
Picture2.Top = 80
End If
End Sub
Private Sub Timer2_Timer()
If Timer2.Enabled = True Then
Picture2.Top = Picture2.Top - 60
Timer1.Enabled = False
Picture1.Top = 80
End If
End Sub
Main_Interface:-
Admin Main Interface:-
Employee Main Interface:-
Dim a As Integer
Private Sub Command1_Click()
Order_Now.Show
Main_Interface.Hide
End Sub
Private Sub Command10_Click()
Frame1.Visible = False
Frame2.Enabled = True
Command1.SetFocus
End Sub
Private Sub Command11_Click()
Login_Form.Show
End Sub
Private Sub Command12_Click()
Generate_Bill.Show
End Sub
Private Sub Command13_Click()
Sales.Show
End Sub
Private Sub Command3_Click()
Main_Interface.Enabled = False
Customer_info.Show
Customer_info.Top = 2500
Customer_info.Left = 5820
End Sub
Private Sub Command4_Click()
Frame2.Enabled = False
Frame1.Visible = True
Command9.SetFocus
End Sub
Private Sub Command5_Click()
Join_us.Show
Main_Interface.Hide
End Sub
Private Sub Command6_Click()
Add_Emp.Show
Main_Interface.Frame1.Enabled = False
Main_Interface.Enabled = False
Frame1.Visible = False
End Sub
Private Sub Command7_Click()
Delete_Admin.Show
Main_Interface.Frame1.Enabled = False
Main_Interface.Enabled = False
Frame1.Visible = False
End Sub
Private Sub Command8_Click()
Delete_Employee.Show
Main_Interface.Frame1.Enabled = False
Main_Interface.Enabled = False
Frame1.Visible = False
End Sub
Private Sub Command9_Click()
Add_Admin.Show
Main_Interface.Frame1.Enabled = False
Main_Interface.Enabled = False
Frame1.Visible = False
End Sub
Private Sub Form_Load()
Main_Interface.BackColor = RGB(241, 6, 11)
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
If a = 0 Then
Label2.Caption = " "
Label2.Caption = "I"
a = 1
ElseIf a = 1 Then
Label2.Caption = " "
Label2.Caption = "I m"
a = 2
ElseIf a = 2 Then
Label2.Caption = " "
Label2.Caption = "I m l"
a = 3
ElseIf a = 3 Then
Label2.Caption = " "
Label2.Caption = "I m lo"
a = 4
ElseIf a = 4 Then
Label2.Caption = " "
Label2.Caption = "I m lov"
a = 5
ElseIf a = 5 Then
Label2.Caption = " "
Label2.Caption = "I m lovi"
a = 6
ElseIf a = 6 Then
Label2.Caption = " "
Label2.Caption = "I m lovin"
a = 7
ElseIf a = 7 Then
Label2.Caption = " "
Label2.Caption = "I m lovin i"
a = 8
ElseIf a = 8 Then
Label2.Caption = " "
Label2.Caption = "I m lovin it"
a = 9
ElseIf a = 9 Then
Label2.Caption = " "
Label2.Caption = " "
a = 0
End If
End Sub
Update Staff:-
Add Admin:-
Private Sub Command1_Click()
Text2.Enabled = True
Text1.Enabled = True
Command3.Enabled = True
Call connect
With tmidpass
If (Label20.Caption = "" And Text2.Text = "" And Label4.Caption = "") Then
m = 0
If .RecordCount = 0 Then
m = 1
Else
.MoveFirst
Do Until .EOF
If .Fields(3).Value > m Then
m = .Fields(3).Value
End If
.MoveNext
Loop
m = m + 1
End If
tmid = "TMid" & Format(m, "0000")
Label20.Caption = tmid
Else
MsgBox ("Please Clear All Boxes")
End If
End With
End Sub
Private Sub Command2_Click()
Unload Me
Main_Interface.Show
Main_Interface.Enabled = True
Main_Interface.Frame1.Visible = True
Main_Interface.Frame1.Enabled = True
End Sub
Private Sub Command3_Click()
Label20.Caption = ""
Text2.Text = ""
Text1.Text = ""
Label4.Caption = ""
End Sub
Private Sub Command4_Click()
If (Text2.Text = "") Then
MsgBox ("Enter the name Plzzzz..")
End If
Call connect
With tmidpass
If (Label20.Caption <> "" And Text2.Text <> "" And Label4.Caption = "") Then
apass = 1111
m = 0
If .RecordCount = 0 Then
m = 1
apass = 1111
Else
.MoveFirst
Do Until .EOF
If .Fields(3).Value > m Then
m = .Fields(3).Value
apass = apass + 11
End If
.MoveNext
Loop
m = m + 1
End If
.AddNew
.Fields(0) = Label20.Caption
.Fields(1) = StrConv(Text2.Text, vbProperCase)
.Fields(2) = apass
.Fields(3) = m
.Fields(4) = 0
.Update
Label4.Caption = apass
End If
End With
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text1.Text <> "") Then
length = Len(Text1.Text)
i = 0
gap = 1
Do Until i = length
c = (Asc(Right(Text1.Text, (i + 1))))
If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then
If (gap = 1 Or gap = 2) Then
check = 1
Else
check = 0
End If
Else
check = 0
Exit Do
End If
If (c = 32) Then
gap = Val(gap) + 1
End If
i = i + 1
Loop
If (check = 0) Then
Command4.Enabled = False
Else
Command4.Enabled = True
End If
Else
Command4.Enabled = False
End If
End Sub
Private Sub Text1_LostFocus()
If (Text1.Text <> "") Then
length = Len(Text1.Text)
i = 0
gap = 1
Do Until i = length
c = (Asc(Right(Text1.Text, (i + 1))))
If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then
If (gap = 1 Or gap = 2) Then
check = 1
Else
check = 0
End If
Else
check = 0
Exit Do
End If
If (c = 32) Then
gap = Val(gap) + 1
End If
i = i + 1
Loop
If (check = 0) Then
MsgBox ("Please Enter Only Characters")
Text1.SetFocus
Command4.Enabled = False
Else
If (Text2.Text <> "") Then
Command4.Enabled = True
Else
Command4.Enabled = False
End If
End If
Else
If (Text2.Text = "") Then
Command4.Enabled = False
Else
Command4.Enabled = False
End If
End If
End Sub
Private Sub Text1_GotFocus()
Command4.Enabled = False
End Sub
Private Sub Text2_GotFocus()
Command4.Enabled = False
End Sub
Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text2.Text <> "") Then
length = Len(Text2.Text)
i = 0
gap = 1
Do Until i = length
c = (Asc(Right(Text2.Text, (i + 1))))
If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then
If (gap = 1 Or gap = 2) Then
check = 1
Else
check = 0
End If
Else
check = 0
Exit Do
End If
If (c = 32) Then
gap = Val(gap) + 1
End If
i = i + 1
Loop
If (check = 0) Then
Command4.Enabled = False
Else
Command4.Enabled = True
End If
Else
Command4.Enabled = False
End If
End Sub
Private Sub Text2_LostFocus()
If (Text2.Text <> "") Then
length = Len(Text2.Text)
i = 0
gap = 1
Do Until i = length
c = (Asc(Right(Text2.Text, (i + 1))))
If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then
If (gap = 1 Or gap = 2) Then
check = 1
Else
check = 0
End If
Else
check = 0
Exit Do
End If
If (c = 32) Then
gap = Val(gap) + 1
End If
i = i + 1
Loop
If (check = 0) Then
MsgBox ("Please Enter Only Characters")
Text2.SetFocus
Command4.Enabled = False
Else
If (Text1.Text <> "") Then
Command4.Enabled = True
Else
Command4.Enabled = False
End If
End If
Else
Command4.Enabled = False
End If
End Sub
Add Employee:-
Private Sub Command1_Click()
Text2.Enabled = True
Text1.Enabled = True
Command3.Enabled = True
Call connect
With eidpass
If (Label20.Caption = "" And Text2.Text = "" And Label4.Caption = "") Then
Label20.Caption = ""
Text2.Text = ""
Label4.Caption = ""
m = 0
If .RecordCount = 0 Then
m = 1
Else
.MoveFirst
Do Until .EOF
If .Fields(3).Value > m Then
m = .Fields(3).Value
End If
.MoveNext
Loop
m = m + 1
End If
emid = "EMid" & Format(m, "0000")
Label20.Caption = emid
End If
End With
End Sub
Private Sub Command2_Click()
Unload Me
Main_Interface.Show
Main_Interface.Enabled = True
Main_Interface.Frame1.Visible = True
Main_Interface.Frame1.Enabled = True
End Sub
Private Sub Command3_Click()
Label20.Caption = ""
Text2.Text = ""
Text1.Text = ""
Label4.Caption = ""
End Sub
Private Sub Command4_Click()
If (Text2.Text = "") Then
MsgBox ("Enter the name Plzzzz..")
End If
Call connect
With eidpass
If (Label20.Caption <> "" And Text2.Text <> "" And Label4.Caption = "") Then
apass = 1111
m = 0
If .RecordCount = 0 Then
m = 1
apass = 1111
Else
.MoveFirst
Do Until .EOF
If .Fields(3).Value > m Then
m = .Fields(3).Value
apass = apass + 11
End If
.MoveNext
Loop
m = m + 1
End If
.AddNew
.Fields(0) = Label20.Caption
.Fields(1) = StrConv(Text2.Text, vbProperCase)
.Fields(2) = apass
.Fields(3) = m
.Fields(4) = 0
.Update
Label4.Caption = apass
With tbemp
.Close
.Open "alter table Today_best add " & Text2.Text & " " & "number", con,
adOpenDynamic, adLockOptimistic
End With
With bmemp
.AddNew
.Fields(0) = Label20.Caption
.Fields(1) = StrConv(Text2.Text, vbProperCase)
.Fields(2) = 0
.Fields(3) = 0
.Fields(4) = 0
.Fields(5) = 0
.Fields(6) = 0
.Fields(7) = 0
.Fields(8) = 0
.Fields(9) = 0
.Fields(10) = 0
.Fields(11) = 0
.Fields(12) = 0
.Fields(13) = 0
.Update
End With
End If
End With
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text1.Text <> "") Then
length = Len(Text1.Text)
i = 0
gap = 1
Do Until i = length
c = (Asc(Right(Text1.Text, (i + 1))))
If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then
If (gap = 1 Or gap = 2) Then
check = 1
Else
check = 0
End If
Else
check = 0
Exit Do
End If
If (c = 32) Then
gap = Val(gap) + 1
End If
i = i + 1
Loop
If (check = 0) Then
Command4.Enabled = False
Else
Command4.Enabled = True
End If
Else
Command4.Enabled = False
End If
End Sub
Private Sub Text1_LostFocus()
If (Text1.Text <> "") Then
length = Len(Text1.Text)
i = 0
gap = 1
Do Until i = length
c = (Asc(Right(Text1.Text, (i + 1))))
If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then
If (gap = 1 Or gap = 2) Then
check = 1
Else
check = 0
End If
Else
check = 0
Exit Do
End If
If (c = 32) Then
gap = Val(gap) + 1
End If
i = i + 1
Loop
If (check = 0) Then
MsgBox ("Please Enter Only Characters")
Text1.SetFocus
Command4.Enabled = False
Else
If (Text2.Text <> "") Then
Command4.Enabled = True
Else
Command4.Enabled = False
End If
End If
Else
Command4.Enabled = False
End If
End Sub
Private Sub Text1_GotFocus()
Command4.Enabled = False
End Sub
Private Sub Text2_GotFocus()
Command4.Enabled = False
End Sub
Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text2.Text <> "") Then
length = Len(Text2.Text)
i = 0
gap = 1
Do Until i = length
c = (Asc(Right(Text2.Text, (i + 1))))
If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then
If (gap = 1 Or gap = 2) Then
check = 1
Else
check = 0
End If
Else
check = 0
Exit Do
End If
If (c = 32) Then
gap = Val(gap) + 1
End If
i = i + 1
Loop
If (check = 0) Then
Command4.Enabled = False
Else
Command4.Enabled = True
End If
Else
Command4.Enabled = False
End If
End Sub
Private Sub Text2_LostFocus()
If (Text2.Text <> "") Then
length = Len(Text2.Text)
i = 0
gap = 1
Do Until i = length
c = (Asc(Right(Text2.Text, (i + 1))))
If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then
If (gap = 1 Or gap = 2) Then
check = 1
Else
check = 0
End If
Else
check = 0
Exit Do
End If
If (c = 32) Then
gap = Val(gap) + 1
End If
i = i + 1
Loop
If (check = 0) Then
MsgBox ("Please Enter Only Characters")
Text2.SetFocus
Command4.Enabled = False
Else
If (Text1.Text <> "") Then
Command4.Enabled = True
Else
Command4.Enabled = False
End If
End If
Else
Command4.Enabled = False
End If
End Sub
Blank:-
Private Sub Form_Load()
Blank.BackColor = RGB(246, 6, 9)
Blank.Top = Blank.Height / 2.2 - Blank.Height / 3
Blank.Left = Blank.Width / 3 - Blank.Width / 3
End Sub
Burger:-
Private Sub Command1_Click()
Call Burgerdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command1.Caption
End Sub
Private Sub Command2_Click()
Call Burgerdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command2.Caption
End Sub
Private Sub Command3_Click()
Call Burgerdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command3.Caption
End Sub
Private Sub Command4_Click()
Call Burgerdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command4.Caption
End Sub
Private Sub Command5_Click()
If Label7.Caption = "" And Text1.Text = "" Then
MsgBox ("Select The Order"), vbCritical
ElseIf Label7.Caption = "" Then
MsgBox ("Select the Size"), vbCritical
ElseIf Text1.Text = "" Then
MsgBox ("Enter the Quantity"), vbCritical
Else
lab = Burger.Label1.Caption
pri = Val(Burger.Label7.Caption)
quan = Val(Burger.Text1.Text)
Set l = Order_Now.ListView1.ListItems.Add(, , lab)
l.SubItems(1) = pri
l.SubItems(2) = quan
vat = (pri * quan * 20) / 100
l.SubItems(3) = vat
cal = pri * quan + vat
l.SubItems(4) = cal
total = 0
Call Burgerdesc
For i = 1 To Order_Now.ListView1.ListItems.Count
total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4))
Next
Order_Now.Label4.Caption = total
End If
End Sub
Private Sub Command6_Click()
Call Burgerdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command6.Caption
End Sub
Private Sub Command7_Click()
Call Burgerdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command7.Caption
End Sub
Private Sub Command8_Click()
Call Burgerdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command8.Caption
End Sub
Private Sub Command9_Click()
Call Burgerdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command9.Caption
End Sub
Private Sub Command10_Click()
Order_Now.Show: Order_Now.Enabled = True
End Sub
Private Sub Command11_Click()
Call check1
End Sub
Private Sub Form_Activate()
Order_Now.Enabled = False
End Sub
Private Sub Form_Deactivate()
Order_Now.Enabled = True
End Sub
Private Sub Form_Load()
Burger.BackColor = RGB(246, 6, 9)
Burger.Top = Burger.Height / 2.2 - Burger.Height / 3
Burger.Left = Burger.Width / 3 - Burger.Width / 3
End Sub
Private Sub Label8_Click()
Order_Now.Show
Order_Now.Enabled = True
End Sub
Private Sub Option1_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(3).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option2_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(4).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option3_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(5).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text1.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text1.Text = ""
End If
End If
End Sub
Chicken:-
Private Sub Command1_Click()
Call Chickendesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command1.Caption
End Sub
Private Sub Command2_Click()
Call Chickendesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command2.Caption
End Sub
Private Sub Command3_Click()
Call Chickendesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command3.Caption
End Sub
Private Sub Command4_Click()
Call Chickendesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command4.Caption
End Sub
Private Sub Command5_Click()
If Label7.Caption = "" And Text1.Text = "" Then
MsgBox ("Select The Order"), vbCritical
ElseIf Label7.Caption = "" Then
MsgBox ("Select the Size"), vbCritical
ElseIf Text1.Text = "" Then
MsgBox ("Enter the Quantity"), vbCritical
Else
lab = Chicken.Label1.Caption
pri = Val(Chicken.Label7.Caption)
quan = Val(Chicken.Text1.Text)
Set l = Order_Now.ListView1.ListItems.Add(, , lab)
l.SubItems(1) = pri
l.SubItems(2) = quan
vat = (pri * quan * 20) / 100
l.SubItems(3) = vat
cal = pri * quan + vat
l.SubItems(4) = cal
Call Chickendesc
total = 0
For i = 1 To Order_Now.ListView1.ListItems.Count
total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4))
Next
Order_Now.Label4.Caption = total
End If
End Sub
Private Sub Command6_Click()
Call Chickendesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command6.Caption
End Sub
Private Sub Command7_Click()
Call Chickendesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command7.Caption
End Sub
Private Sub Command8_Click()
Call Chickendesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command8.Caption
End Sub
Private Sub Command9_Click()
Call Chickendesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command9.Caption
End Sub
Private Sub Form_Load()
Chicken.BackColor = RGB(240, 6, 9)
Chicken.Top = Chicken.Height / 2.2 - Chicken.Height / 3
Chicken.Left = Chicken.Width / 3 - Chicken.Width / 3
End Sub
Private Sub Form_Activate()
Order_Now.Enabled = False
End Sub
Private Sub Form_Deactivate()
Order_Now.Enabled = True
End Sub
Private Sub Command10_Click()
Order_Now.Show: Order_Now.Enabled = True
End Sub
Private Sub Command11_Click()
Call check1
End Sub
Private Sub Form_LostFocus()
Unload Me
End Sub
Private Sub Label8_Click()
Order_Now.Show
Order_Now.Enabled = True
End Sub
Private Sub Option1_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(3).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option2_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(4).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option3_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(5).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text1.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text1.Text = ""
End If
End If
End Sub
Chocolate:-
Private Sub Command1_Click()
Call Chocolatedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command1.Caption
End Sub
Private Sub Command2_Click()
Call Chocolatedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command2.Caption
End Sub
Private Sub Command3_Click()
Call Chocolatedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command3.Caption
End Sub
Private Sub Command4_Click()
Call Chocolatedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command4.Caption
End Sub
Private Sub Command5_Click()
If Label7.Caption = "" And Text1.Text = "" Then
MsgBox ("Select The Order"), vbCritical
ElseIf Label7.Caption = "" Then
MsgBox ("Select the Size"), vbCritical
ElseIf Text1.Text = "" Then
MsgBox ("Enter the Quantity"), vbCritical
Else
lab = Chocolate.Label1.Caption
pri = Val(Chocolate.Label7.Caption)
quan = Val(Chocolate.Text1.Text)
Set l = Order_Now.ListView1.ListItems.Add(, , lab)
l.SubItems(1) = pri
l.SubItems(2) = quan
vat = (pri * quan * 20) / 100
l.SubItems(3) = vat
cal = pri * quan + vat
l.SubItems(4) = cal
Call Chocolatedesc
total = 0
For i = 1 To Order_Now.ListView1.ListItems.Count
total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4))
Next
Order_Now.Label4.Caption = total
End If
End Sub
Private Sub Command6_Click()
Call Chocolatedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command6.Caption
End Sub
Private Sub Command7_Click()
Call Chocolatedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command7.Caption
End Sub
Private Sub Command8_Click()
Call Chocolatedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command8.Caption
End Sub
Private Sub Command9_Click()
Call Chocolatedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command9.Caption
End Sub
Private Sub Form_Load()
Chocolate.BackColor = RGB(240, 6, 9)
Chocolate.Top = Chocolate.Height / 2.2 - Chocolate.Height / 3
Chocolate.Left = Chocolate.Width / 3 - Chocolate.Width / 3
End Sub
Private Sub Form_Activate()
Order_Now.Enabled = False
End Sub
Private Sub Form_Deactivate()
Order_Now.Enabled = True
End Sub
Private Sub Command10_Click()
Order_Now.Show: Order_Now.Enabled = True
End Sub
Private Sub Command11_Click()
Call check1
End Sub
Private Sub Form_LostFocus()
Unload Me
End Sub
Private Sub Label8_Click()
Order_Now.Show
Order_Now.Enabled = True
End Sub
Private Sub Option1_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(3).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option2_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(4).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option3_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(5).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text1.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text1.Text = ""
End If
End If
End Sub
Coffee:-
Private Sub Command1_Click()
Call Coffeedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command1.Caption
End Sub
Private Sub Command2_Click()
Call Coffeedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command2.Caption
End Sub
Private Sub Command3_Click()
Call Coffeedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command3.Caption
End Sub
Private Sub Command4_Click()
Call Coffeedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command4.Caption
End Sub
Private Sub Command5_Click()
If Label7.Caption = "" And Text1.Text = "" Then
MsgBox ("Select The Order"), vbCritical
ElseIf Label7.Caption = "" Then
MsgBox ("Select the Size"), vbCritical
ElseIf Text1.Text = "" Then
MsgBox ("Enter the Quantity"), vbCritical
Else
lab = Coffee.Label1.Caption
pri = Val(Coffee.Label7.Caption)
quan = Val(Coffee.Text1.Text)
Set l = Order_Now.ListView1.ListItems.Add(, , lab)
l.SubItems(1) = pri
l.SubItems(2) = quan
vat = (pri * quan * 20) / 100
l.SubItems(3) = vat
cal = pri * quan + vat
l.SubItems(4) = cal
Call Coffeedesc
total = 0
For i = 1 To Order_Now.ListView1.ListItems.Count
total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4))
Next
Order_Now.Label4.Caption = total
End If
End Sub
Private Sub Command6_Click()
Call Coffeedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command6.Caption
End Sub
Private Sub Command7_Click()
Call Coffeedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command7.Caption
End Sub
Private Sub Command8_Click()
Call Coffeedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command8.Caption
End Sub
Private Sub Command9_Click()
Call Coffeedesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command9.Caption
End Sub
Private Sub Form_Load()
Coffee.BackColor = RGB(240, 6, 9)
Coffee.Top = Coffee.Height / 2.2 - Coffee.Height / 3
Coffee.Left = Coffee.Width / 3 - Coffee.Width / 3
End Sub
Private Sub Form_Activate()
Order_Now.Enabled = False
End Sub
Private Sub Form_Deactivate()
Order_Now.Enabled = True
End Sub
Private Sub Command10_Click()
Order_Now.Show: Order_Now.Enabled = True
End Sub
Private Sub Command11_Click()
Call check1
End Sub
Private Sub Label8_Click()
Order_Now.Show
Order_Now.Enabled = True
End Sub
Private Sub Option1_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(3).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option2_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(4).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option3_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(5).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text1.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text1.Text = ""
End If
End If
End Sub
Combo:-
Private Sub Command1_Click()
Call Combodesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command1.Caption
End Sub
Private Sub Command2_Click()
Call Combodesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command2.Caption
End Sub
Private Sub Command3_Click()
Call Combodesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command3.Caption
End Sub
Private Sub Command4_Click()
Call Combodesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command4.Caption
End Sub
Private Sub Command5_Click()
If Label7.Caption = "" And Text1.Text = "" Then
MsgBox ("Select The Order"), vbCritical
ElseIf Label7.Caption = "" Then
MsgBox ("Select the Size"), vbCritical
ElseIf Text1.Text = "" Then
MsgBox ("Enter the Quantity"), vbCritical
Else
lab = Combo.Label1.Caption
pri = Val(Combo.Label7.Caption)
quan = Val(Combo.Text1.Text)
Set l = Order_Now.ListView1.ListItems.Add(, , lab)
l.SubItems(1) = pri
l.SubItems(2) = quan
vat = (pri * quan * 20) / 100
l.SubItems(3) = vat
cal = pri * quan + vat
l.SubItems(4) = cal
Call Combodesc
For i = 1 To Order_Now.ListView1.ListItems.Count
total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4))
Next
Order_Now.Label4.Caption = total
End If
End Sub
Private Sub Command6_Click()
Call Combodesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command6.Caption
End Sub
Private Sub Command7_Click()
Call Combodesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command7.Caption
End Sub
Private Sub Command8_Click()
Call Combodesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command8.Caption
End Sub
Private Sub Command9_Click()
Call Combodesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command9.Caption
End Sub
Private Sub Form_Load()
Combo.BackColor = RGB(240, 6, 9)
Combo.Top = Combo.Height / 2.2 - Combo.Height / 3
Combo.Left = Combo.Width / 3 - Combo.Width / 3
End Sub
Private Sub Form_Activate()
Order_Now.Enabled = False
End Sub
Private Sub Form_Deactivate()
Order_Now.Enabled = True
End Sub
Private Sub Command10_Click()
Order_Now.Show: Order_Now.Enabled = True
End Sub
Private Sub Command11_Click()
Call check1
End Sub
Private Sub Label8_Click()
Order_Now.Show
Order_Now.Enabled = True
End Sub
Private Sub Option1_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(3).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option2_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(4).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option3_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(5).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text1.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text1.Text = ""
End If
End If
End Sub
Customer_info:-
Private Sub Command1_Click()
Main_Interface.Enabled = True
Unload Me
End Sub
Private Sub Command16_Click()
Unload Me
Main_Interface.Show
Main_Interface.Enabled = True
End Sub
Private Sub Command17_Click()
Call connect
If (Text1.Text <> "" And Text2.Text <> "") Then
With ju
check = 0
Do Until .EOF
If .Fields(7).Value = Text1.Text And .Fields(6).Value = Text2.Text Then
check = 1
Exit Do
Else
check = 0
End If
.MoveNext
Loop
If check = 1 Then
Frame3.Visible = False
Frame1.Visible = True
Command1.SetFocus
Label2.Caption = .Fields(0)
Label8.Caption = .Fields(1)
Label10.Caption = .Fields(2)
Label11.Caption = .Fields(3)
Label12.Caption = .Fields(8)
Label13.Caption = .Fields(4)
Else
MsgBox ("Wrong Id or Password::Try again"), vbCritical, ("Mcdonald's")
Text1.Text = ""
Text2.Text = ""
Text2.SetFocus
End If
End With
Else
MsgBox ("Fill the Details Correctly"), vbCritical, ("Mcdonald's")
Text2.SetFocus
End If
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text1.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 8 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode
= 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text1.Text = ""
End If
End If
End Sub
Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer)
If Text2.Text = "" Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or (KeyCode >= 60 And KeyCode <= 90) Or KeyCode = 13 Or KeyCode =
35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text2.Text = ""
End If
End If
End Sub
Delete_Admin:-
Private Sub Combo1_Click()
Combo1.Refresh
Text2.Enabled = True
End Sub
Private Sub Command1_Click()
Text2.Text = ""
Label4.Caption = ""
Command3.Enabled = False
Command4.Enabled = False
Command1.Enabled = False
Combo1.Text = "Select plz"
End Sub
Private Sub Command2_Click()
Unload Me
Main_Interface.Show
Main_Interface.Enabled = True
Main_Interface.Frame1.Visible = True
Main_Interface.Frame1.Enabled = True
End Sub
Private Sub Command3_Click()
Text2.Text = ""
Label4.Caption = ""
Command4.Enabled = False
Command1.Enabled = False
Command3.Enabled = False
Combo1.Text = "Select plz"
End Sub
Private Sub Command4_Click()
check = MsgBox("Are You Sure to want to DELETE the Entry", vbYesNoCancel,
"Choose the Correct...")
If (check = 6) Then
With tmidpass
.MoveFirst
check = 0
i = 0
If (Combo1.Text <> "" And Text2.Text <> "" And Label4.Caption <> "") Then
Do Until .EOF
If (.Fields(0).Value = Combo1.Text And .Fields(2).Value = Text2.Text And
.Fields(1) = Label4.Caption) Then
check = 1
cout = i
i = i + 1
Exit Do
Else
check = 0
i = i + 1
End If
.MoveNext
Loop
If (check = 1) Then
.Delete adAffectCurrent
Combo1.RemoveItem (cout)
Combo1.Text = "Select plz"
Text2.Text = ""
Label4.Caption = ""
Command3.Enabled = False
Command4.Enabled = False
Else
End If
End If
End With
Else
If (check = 7) Then
Else
End If
End If
End Sub
Private Sub Form_Load()
Call connect
With tmidpass
Do Until .EOF
Data = .Fields(0).Value
Combo1.AddItem (Data)
.MoveNext
Loop
End With
Combo1.Text = "Select plz"
End Sub
Private Sub Text2_LostFocus()
Call connect
With tmidpass
If (Combo1.Text <> "" And Text2.Text <> "") Then
check = 0
Do Until .EOF
If (.Fields(0).Value = Combo1.Text And .Fields(2).Value = Text2.Text) Then
check = 1
Exit Do
Else
check = 0
End If
.MoveNext
Loop
If (check = 1) Then
Label4.Caption = .Fields(1).Value
Else
Label4.Caption = ""
MsgBox ("Please Enter Correct Id & Pass.")
Combo1.SetFocus
End If
End If
End With
If (Combo1.Text <> "" And Text2.Text <> "" And Label4.Caption <> "") Then
Command4.Enabled = True
Command1.Enabled = True
Command3.Enabled = True
Else
Command4.Enabled = False
Command1.Enabled = False
Command3.Enabled = False
End If
End Sub
Delete_Employee:-
Private Sub Combo1_Click()
Combo1.Refresh
Text2.Enabled = True
End Sub
Private Sub Command1_Click()
Text2.Text = ""
Label4.Caption = ""
Command3.Enabled = False
Command4.Enabled = False
Command1.Enabled = False
Combo1.Text = "Select plz"
End Sub
Private Sub Command2_Click()
Unload Me
Main_Interface.Show
Main_Interface.Enabled = True
Main_Interface.Frame1.Visible = True
Main_Interface.Frame1.Enabled = True
End Sub
Private Sub Command3_Click()
Text2.Text = ""
Label4.Caption = ""
Command4.Enabled = False
Command1.Enabled = False
Command3.Enabled = False
Combo1.Text = "Select plz"
End Sub
Private Sub Command4_Click()
Call connect
check = MsgBox("Are You Sure to want to DELETE the Entry", vbYesNoCancel,
"Choose the Correct...")
If (check = 6) Then
With eidpass
.MoveFirst
check = 0
i = 0
If (Combo1.Text <> "" And Text2.Text <> "" And Label4.Caption <> "") Then
Do Until .EOF
If (.Fields(0).Value = Combo1.Text And .Fields(2).Value = Text2.Text And
.Fields(1) = Label4.Caption) Then
check = 1
cout = i
i = i + 1
Exit Do
Else
check = 0
i = i + 1
End If
.MoveNext
Loop
If (check = 1) Then
With bmemp
.MoveFirst
Do Until .EOF
If (Label4.Caption = .Fields(1).Value) Then
.Delete adAffectCurrent
Exit Do
End If
.MoveNext
Loop
End With
With tbemp
.Close
.Open "alter table Today_Best drop " & eidpass.Fields(1).Value & " ", con,
adOpenDynamic, adLockOptimistic
End With
.Delete adAffectCurrent
Combo1.RemoveItem (cout)
Combo1.Text = "Select plz"
Text2.Text = ""
Label4.Caption = ""
Command3.Enabled = False
Command4.Enabled = False
Else
End If
End If
End With
Else
If (check = 7) Then
Else
End If
End If
End Sub
Private Sub Form_Load()
Call connect
With eidpass
Do Until .EOF
Data = .Fields(0).Value
Combo1.AddItem (Data)
.MoveNext
Loop
End With
Combo1.Text = "Select plz"
End Sub
Private Sub Text2_LostFocus()
Call connect
With eidpass
If (Combo1.Text <> "" And Text2.Text <> "") Then
check = 0
Do Until .EOF
If (.Fields(0).Value = Combo1.Text And .Fields(2).Value = Text2.Text) Then
check = 1
Exit Do
Else
check = 0
End If
.MoveNext
Loop
If (check = 1) Then
Label4.Caption = .Fields(1).Value
Else
Label4.Caption = ""
MsgBox ("Please Enter Correct Id & Pass.")
Combo1.SetFocus
End If
End If
End With
If (Combo1.Text <> "" And Text2.Text <> "" And Label4.Caption <> "") Then
Command4.Enabled = True
Command1.Enabled = True
Command3.Enabled = True
Else
Command4.Enabled = False
Command1.Enabled = False
Command3.Enabled = False
End If
End Sub
Fries:-
Private Sub Command1_Click()
Call Friesdesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command1.Caption
End Sub
Private Sub Command2_Click()
Call Friesdesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command2.Caption
End Sub
Private Sub Command3_Click()
Call Friesdesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command3.Caption
End Sub
Private Sub Command4_Click()
Call Friesdesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command4.Caption
End Sub
Private Sub Command5_Click()
If Label7.Caption = "" And Text1.Text = "" Then
MsgBox ("Select The Order"), vbCritical
ElseIf Label7.Caption = "" Then
MsgBox ("Select the Size"), vbCritical
ElseIf Text1.Text = "" Then
MsgBox ("Enter the Quantity"), vbCritical
Else
lab = Fries.Label1.Caption
pri = Val(Fries.Label7.Caption)
quan = Val(Fries.Text1.Text)
Set l = Order_Now.ListView1.ListItems.Add(, , lab)
l.SubItems(1) = pri
l.SubItems(2) = quan
vat = (pri * quan * 20) / 100
l.SubItems(3) = vat
cal = pri * quan + vat
l.SubItems(4) = cal
Call Friesdesc
total = 0
For i = 1 To Order_Now.ListView1.ListItems.Count
total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4))
Next
Order_Now.Label4.Caption = total
End If
End Sub
Private Sub Command6_Click()
Call Friesdesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command6.Caption
End Sub
Private Sub Command7_Click()
Call Friesdesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command7.Caption
End Sub
Private Sub Command8_Click()
Call Friesdesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command8.Caption
End Sub
Private Sub Command9_Click()
Call Friesdesc
Image5.Visible = False
Frame1.Visible = True
Label1.Caption = Command9.Caption
End Sub
Private Sub Form_Load()
Fries.BackColor = RGB(240, 6, 9)
Fries.Top = Fries.Height / 2.2 - Fries.Height / 3
Fries.Left = Fries.Width / 3 - Fries.Width / 3
End Sub
Private Sub Form_Activate()
Order_Now.Enabled = False
End Sub
Private Sub Form_Deactivate()
Order_Now.Enabled = True
End Sub
Private Sub Command10_Click()
Order_Now.Show: Order_Now.Enabled = True
End Sub
Private Sub Command11_Click()
Call check1
End Sub
Private Sub Label8_Click()
Order_Now.Show
Order_Now.Enabled = True
End Sub
Private Sub Option1_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(3).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option2_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(4).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option3_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(5).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text1.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text1.Text = ""
End If
End If
End Sub
Icecream:-
Private Sub Command1_Click()
Call Icecreamdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command1.Caption
End Sub
Private Sub Command2_Click()
Call Icecreamdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command2.Caption
End Sub
Private Sub Command3_Click()
Call Icecreamdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command3.Caption
End Sub
Private Sub Command4_Click()
Call Icecreamdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command4.Caption
End Sub
Private Sub Command5_Click()
If Label7.Caption = "" And Text1.Text = "" Then
MsgBox ("Select The Order"), vbCritical
ElseIf Label7.Caption = "" Then
MsgBox ("Select the Size"), vbCritical
ElseIf Text1.Text = "" Then
MsgBox ("Enter the Quantity"), vbCritical
Else
lab = Icecream.Label1.Caption
pri = Val(Icecream.Label7.Caption)
quan = Val(Icecream.Text1.Text)
Set l = Order_Now.ListView1.ListItems.Add(, , lab)
l.SubItems(1) = pri
l.SubItems(2) = quan
vat = (pri * quan * 20) / 100
l.SubItems(3) = vat
cal = pri * quan + vat
l.SubItems(4) = cal
Call Icecreamdesc
total = 0
For i = 1 To Order_Now.ListView1.ListItems.Count
total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4))
Next
Order_Now.Label4.Caption = total
End If
End Sub
Private Sub Command6_Click()
Call Icecreamdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command6.Caption
End Sub
Private Sub Command7_Click()
Call Icecreamdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command7.Caption
End Sub
Private Sub Command8_Click()
Call Icecreamdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command8.Caption
End Sub
Private Sub Command9_Click()
Call Icecreamdesc
Image5.Visible = False
Frame1.Visible = True
Text1.SetFocus
Label1.Caption = Command9.Caption
End Sub
Private Sub Form_Load()
Icecream.BackColor = RGB(240, 6, 9)
Icecream.Top = Icecream.Height / 2.2 - Icecream.Height / 3
Icecream.Left = Icecream.Width / 3 - Icecream.Width / 3
End Sub
Private Sub Form_Activate()
Order_Now.Enabled = False
End Sub
Private Sub Form_Deactivate()
Order_Now.Enabled = True
End Sub
Private Sub Command10_Click()
Order_Now.Show: Order_Now.Enabled = True
End Sub
Private Sub Command11_Click()
Call check1
End Sub
Private Sub Label8_Click()
Order_Now.Show
Order_Now.Enabled = True
End Sub
Private Sub Option1_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(3).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option2_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(4).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option3_Click()
Call connect
With all
Do Until .EOF
If (Label1.Caption = .Fields(2).Value) Then
price = .Fields(5).Value
Label7.Caption = price
End If
.MoveNext
Loop
End With
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text1.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text1.Text = ""
End If
End If
End Sub
Join_us:-
Already in Our List Update Pofile:-
Dim cpass, cmcno
Dim apass, amcno
Dim check
Dim num, k
Dim a, m As Integer
Private Sub Command1_Click()
Call connect
With ju
If (Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" Or
Text5.Text = "") Then
MsgBox "please fill all entries"
Else
check = 0
.MoveFirst
Do Until .EOF
If Text3.Text = (.Fields(2).Value) Then
check = 1
Exit Do
Else
check = 0
End If
.MoveNext
Loop
If (check = 1) Then
mgbox = MsgBox("Number is Already In Our List" & vbNewLine & "You
Want to overwright the data ???", vbYesNoCancel)
If (mgbox = 6) Then
.Fields(0) = StrConv(Text1.Text, vbProperCase)
.Fields(1) = StrConv(Text2.Text, vbProperCase)
.Fields(2) = StrConv(Text3.Text, vbProperCase)
.Fields(3) = StrConv(Text4.Text, vbProperCase)
.Fields(4) = StrConv(Text6.Text, vbProperCase)
.Fields(8) = StrConv(Text5.Text, vbProperCase)
.Update
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Else
End If
Else
apass = 1001
m = 0
If .RecordCount = 0 Then
m = 1
apass = 1001
Else
.MoveFirst
Do Until ju.EOF
If .Fields(5).Value > m Then
m = .Fields(5).Value
apass = apass + 11
End If
.MoveNext
Loop
m = m + 1
End If
.AddNew
amcno = "MCcn" & Format(m, "0000")
.Fields(0) = StrConv(Text1.Text, vbProperCase)
.Fields(1) = StrConv(Text2.Text, vbProperCase)
.Fields(2) = StrConv(Text3.Text, vbProperCase)
.Fields(3) = StrConv(Text4.Text, vbProperCase)
.Fields(4) = StrConv(Text6.Text, vbProperCase)
.Fields(5) = m
.Fields(6) = amcno
.Fields(7) = apass
.Fields(8) = StrConv(Text5.Text, vbProperCase)
.Update
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Frame2.Visible = True
Join_us.Label15.Caption = amcno
Join_us.Label16.Caption = apass
End If
End If
End With
End Sub
Private Sub Command2_Click()
Main_Interface.Show
Unload Me
End Sub
Private Sub Command3_Click()
If (Text7.Text = "" Or Text8.Text = "") Then
MsgBox ("Please Fill Both Entries")
Else
Call connect
check = 0
With ju
Do Until .EOF
If ((.Fields(6).Value = Text7.Text) And (.Fields(7).Value = Text8.Text))
Then
check = 1
Exit Do
Else
check = 0
End If
.MoveNext
Loop
If (check = 1) Then
Frame1.Visible = False
Text1.Text = .Fields(0)
Text2.Text = .Fields(1)
Text3.Text = .Fields(2)
Text4.Text = .Fields(3)
Text5.Text = .Fields(8)
Text6.Text = .Fields(4)
Else
Frame1.Visible = True
MsgBox ("Enter Correct ID And Password")
Text7.Text = ""
Text8.Text = ""
End If
End With
End If
End Sub
Private Sub Command4_Click()
Frame1.Visible = False
End Sub
Private Sub Command5_Click()
Frame2.Visible = False
End Sub
Private Sub Form_Load()
Timer1.Enabled = True
Frame1.Visible = False
End Sub
Private Sub Label10_Click()
Frame1.Visible = True
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text1.Text = "") Then
Else
If KeyCode = 16 Or KeyCode = 32 Or KeyCode = 37 Or KeyCode = 38 Or
KeyCode = 39 Or KeyCode = 40 Or KeyCode = 35 Or KeyCode = 36 Or KeyCode
= 8 Then
ElseIf (Not ((KeyCode >= 65 And KeyCode <= 90)) Or ((KeyCode >= 97 And
KeyCode <= 122))) Then
str1 = Left(Text1.Text, Len(Text1.Text) - 1)
Text1.Text = ""
Text1.SelText = Right(str1, Len(str1))
Else
End If
End If
End Sub
Private Sub Text3_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text3.Text = "") Then
k = 0
Else
'MsgBox (KeyCode)
k = k + 1
If (k = 1) Then
If (KeyCode = 105 Or KeyCode = 104 Or KeyCode = 103) Then
Else
MsgBox ("Enter a Valid Number")
Text3.Text = ""
End If
End If
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text3.Text = ""
End If
End If
End Sub
Private Sub Text5_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text5.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text5.Text = ""
End If
End If
End Sub
Private Sub Text5_LostFocus()
If Text5.Text = "" Then
ElseIf (Val(Text5.Text) < 5000) Then
MsgBox ("Membership Amount is NOT < 5000")
Text5.SetFocus
End If
End Sub
Private Sub Text6_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text6.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 8 Or KeyCode = 35 _
Or KeyCode = 36 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or
KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text6.Text = ""
End If
End If
End Sub
Private Sub Text7_KeyUp(KeyCode As Integer, Shift As Integer)
If Text7.Text = "" Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or (KeyCode >= 60 And KeyCode <= 90) Or KeyCode = 13 Or KeyCode =
35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text7.Text = ""
End If
End If
End Sub
Private Sub Text8_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text8.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 8 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode
= 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text8.Text = ""
End If
End If
End Sub
Private Sub Timer1_Timer()
If a = 0 Then
Label8.Caption = " "
Label8.Caption = "I"
a = 1
ElseIf a = 1 Then
Label8.Caption = " "
Label8.Caption = "I m"
a = 2
ElseIf a = 2 Then
Label8.Caption = " "
Label8.Caption = "I m l"
a = 3
ElseIf a = 3 Then
Label8.Caption = " "
Label8.Caption = "I m lo"
a = 4
ElseIf a = 4 Then
Label8.Caption = " "
Label8.Caption = "I m lov"
a = 5
ElseIf a = 5 Then
Label8.Caption = " "
Label8.Caption = "I m lovi"
a = 6
ElseIf a = 6 Then
Label8.Caption = " "
Label8.Caption = "I m lovin"
a = 7
ElseIf a = 7 Then
Label8.Caption = " "
Label8.Caption = "I m lovin i"
a = 8
ElseIf a = 8 Then
Label8.Caption = " "
Label8.Caption = "I m lovin it"
a = 9
ElseIf a = 9 Then
Label8.Caption = " "
Label8.Caption = " "
a = 0
End If
End Sub
Modify:-
Private Sub Command20_Click()
Label30.Caption = Val(Text3.Text) * Val(Label1.Caption)
vat = Val(Label30.Caption) * 20 / 100
Order_Now.ListView1.ListItems.Item(i).Text = Label22.Caption
Order_Now.ListView1.ListItems.Item(i).SubItems(1) = Label1.Caption
Order_Now.ListView1.ListItems.Item(i).SubItems(2) = Text3.Text
Order_Now.ListView1.ListItems.Item(i).SubItems(3) = vat
Order_Now.ListView1.ListItems.Item(i).SubItems(4) = (Val(Label30.Caption) +
vat)
End Sub
Private Sub Command21_Click()
Order_Now.Show
Order_Now.Enabled = True
Unload Me
Unload Burger
Unload Chicken
Unload Coffee
Unload Combo
Unload Chocolate
Unload Fries
Unload Icecream
Unload Salad
Unload Shakes
End Sub
Private Sub Command22_Click()
Label1.Caption = ""
Label22.Caption = ""
Label30.Caption = ""
Text3.Text = ""
Option1.Value = False
Option2.Value = False
Option3.Value = False
End Sub
Private Sub Form_Activate()
Order_Now.Enabled = False
End Sub
Private Sub Command23_Click()
Order_Now.ListView1.ListItems.Remove (i)
i = i - 1
End Sub
Private Sub Command24_Click()
i = Order_Now.ListView1.ListItems.Count
Label22.Caption = Order_Now.ListView1.ListItems.Item(i).Text
Text3.Text = (Order_Now.ListView1.ListItems.Item(i).SubItems(2))
Label1.Caption = (Order_Now.ListView1.ListItems.Item(i).SubItems(1))
total = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) *
(Order_Now.ListView1.ListItems.Item(i).SubItems(2))
Option1.Value = False
Option2.Value = False
Option3.Value = False
Label30.Caption = total
price = (Val(Label30.Caption) / Val(Text3.Text))
Call connect
With all
Do Until .EOF
If (Label22.Caption = (.Fields(2).Value)) Then
If (price = Val(.Fields(3).Value)) Then
Option1.Value = True
Option2.Value = False
Option3.Value = False
Else
If (price = Val(.Fields(4).Value)) Then
Option2.Value = True
Option1.Value = False
Option3.Value = False
Else
If (price = Val(.Fields(5).Value)) Then
Option3.Value = True
Option1.Value = False
Option2.Value = False
End If
End If
End If
End If
.MoveNext
Loop
End With
End Sub
Private Sub Command25_Click()
i = 1
Label22.Caption = Order_Now.ListView1.ListItems.Item(i).Text
Text3.Text = (Order_Now.ListView1.ListItems.Item(i).SubItems(2))
Label1.Caption = (Order_Now.ListView1.ListItems.Item(i).SubItems(1))
total = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) *
(Order_Now.ListView1.ListItems.Item(i).SubItems(2))
Option1.Value = False
Option2.Value = False
Option3.Value = False
Label30.Caption = total
price = (Val(Label30.Caption) / Val(Text3.Text))
Call connect
With all
Do Until .EOF
If (Label22.Caption = .Fields(2).Value) Then
If (price = Val(.Fields(3).Value)) Then
Option1.Value = True
Option2.Value = False
Option3.Value = False
Else
If (price = Val(.Fields(4).Value)) Then
Option2.Value = True
Option1.Value = False
Option3.Value = False
Else
If (price = Val(.Fields(5).Value)) Then
Option3.Value = True
Option1.Value = False
Option2.Value = False
End If
End If
End If
End If
.MoveNext
Loop
End With
End Sub
Private Sub Form_Deactivate()
Order_Now.Enabled = True
End Sub
Private Sub Form_Load()
Modify.BackColor = RGB(240, 6, 9)
Modify.Top = Modify.Height / 2.2 - Modify.Height / 3
Modify.Left = Modify.Width / 3 - Modify.Width / 3
i = 1
Label22.Caption = Order_Now.ListView1.ListItems.Item(i).Text
Text3.Text = (Order_Now.ListView1.ListItems.Item(i).SubItems(2))
Label1.Caption = (Order_Now.ListView1.ListItems.Item(i).SubItems(1))
total = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) *
(Order_Now.ListView1.ListItems.Item(i).SubItems(2))
Option1.Value = False
Option2.Value = False
Option3.Value = False
Label30.Caption = total
price = (Val(Label30.Caption) / Val(Text3.Text))
Call connect
With all
Do Until .EOF
If (Label22.Caption = .Fields(2).Value) Then
If (price = Val(.Fields(3).Value)) Then
Option1.Value = True
Option2.Value = False
Option3.Value = False
Else
If (price = Val(.Fields(4).Value)) Then
Option2.Value = True
Option1.Value = False
Option3.Value = False
Else
If (price = Val(.Fields(5).Value)) Then
Option3.Value = True
Option1.Value = False
Option2.Value = False
End If
End If
End If
End If
.MoveNext
Loop
End With
End Sub
Private Sub Command1_Click()
If (i = Order_Now.ListView1.ListItems.Count) Then
i = 0
End If
i = i + 1
Label22.Caption = Order_Now.ListView1.ListItems.Item(i).Text
Text3.Text = (Order_Now.ListView1.ListItems.Item(i).SubItems(2))
Label1.Caption = (Order_Now.ListView1.ListItems.Item(i).SubItems(1))
total = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) *
(Order_Now.ListView1.ListItems.Item(i).SubItems(2))
Option1.Value = False
Option2.Value = False
Option3.Value = False
Label30.Caption = total
price = (Val(Label30.Caption) / Val(Text3.Text))
Call connect
With all
Do Until .EOF
If (Label22.Caption = .Fields(2).Value) Then
If (price = Val(.Fields(3).Value)) Then
Option1.Value = True
Option2.Value = False
Option3.Value = False
Else
If (price = Val(.Fields(4).Value)) Then
Option2.Value = True
Option1.Value = False
Option3.Value = False
Else
If (price = Val(.Fields(5).Value)) Then
Option3.Value = True
Option1.Value = False
Option2.Value = False
End If
End If
End If
End If
.MoveNext
Loop
End With
End Sub
Private Sub Command2_Click()
If (i = 1) Then
i = (Order_Now.ListView1.ListItems.Count + 1)
End If
i = i - 1
Label22.Caption = Order_Now.ListView1.ListItems.Item(i).Text
Text3.Text = (Order_Now.ListView1.ListItems.Item(i).SubItems(2))
Label1.Caption = (Order_Now.ListView1.ListItems.Item(i).SubItems(1))
total = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) *
(Order_Now.ListView1.ListItems.Item(i).SubItems(2))
Label30.Caption = total
Option1.Value = False
Option2.Value = False
Option3.Value = False
price = (Val(Label30.Caption) / Val(Text3.Text))
Call connect
With all
Do Until .EOF
If (Label22.Caption = .Fields(2).Value) Then
If (price = Val(.Fields(3).Value)) Then
Option1.Value = True
Option2.Value = False
Option3.Value = False
Else
If (price = Val(.Fields(4).Value)) Then
Option2.Value = True
Option1.Value = False
Option3.Value = False
Else
If (price = Val(.Fields(5).Value)) Then
Option3.Value = True
Option1.Value = False
Option2.Value = False
End If
End If
End If
End If
.MoveNext
Loop
End With
End Sub
Private Sub Option1_Click()
Call connect
With all
Do Until .EOF
If (Label22.Caption = .Fields(2).Value) Then
price = .Fields(3).Value
Label1.Caption = price
End If
.MoveNext
Loop
total = (Val(Text3.Text) * Val(Label1.Caption))
Label30.Caption = total
End With
End Sub
Private Sub Option2_Click()
Call connect
With all
Do Until .EOF
If (Label22.Caption = .Fields(2).Value) Then
price = .Fields(4).Value
Label1.Caption = price
End If
.MoveNext
Loop
total = (Val(Text3.Text) * Val(Label1.Caption))
Label30.Caption = total
End With
End Sub
Private Sub Option3_Click()
Call connect
With all
Do Until .EOF
If (Label22.Caption = .Fields(2).Value) Then
price = .Fields(5).Value
Label1.Caption = price
End If
.MoveNext
Loop
total = (Val(Text3.Text) * Val(Label1.Caption))
Label30.Caption = total
End With
End Sub
Order_Now:-
Dim check, k
Private Sub Command10_Click()
If ListView1.ListItems.Count = 0 Then
MsgBox ("Please Select the order first"), vbCritical
Else
ListView1.Visible = False
Frame2.Visible = True
Text8.SetFocus
Label4.Visible = False
Label22.Visible = False
Text7.Text = ""
Text8.Text = ""
Text3.Text = ""
Text2.Text = ""
Text1.Text = ""
End If
End Sub
Private Sub Command11_Click()
If ListView1.ListItems.Count = 0 Then
MsgBox ("Please Select the order first"), vbCritical
Else
Modify.Show
Modify.Text3.SetFocus
End If
End Sub
Private Sub Command13_Click()
check = 0
check = MsgBox("Are you sure you wanna logout?", vbYesNoCancel, "Choose the
Correct...")
If (check = 6) Then
ListView1.ListItems.Clear
ListView1.Visible = True
Frame6.Visible = True
Frame4.Visible = True
Frame3.Visible = False
Frame5.Visible = False
Label4.Caption = ""
Label5.Caption = ""
Label6.Caption = ""
Label4.Caption = "0"
ListView1.Top = 0
total = 0
Label22.Visible = True
Command15.Visible = True
Command10.Visible = True
Command11.Visible = True
Label4.Visible = True
Unload DataReport1
Unload Blank
Login_Form.Show
Else
If (check = 7) Then
End If
End If
End Sub
Private Sub Command14_Click()
Call connect
If (Text7.Text = "" Or Text8.Text = "" Or Text3.Text = "") Then
MsgBox ("Please Fill All Entries")
Else
cname = Text7.Text
phone = Text8.Text
With tempbill
If (.RecordCount = 0) Then
Else
.MoveFirst
Do Until .EOF
.Delete
.MoveNext
Loop
End If
c = Val(ListView1.ListItems.Count)
i = 1
c = c + 1
Do Until i = c
.AddNew
.Fields(0).Value = (ListView1.ListItems.Item(i).Text)
.Fields(1).Value = ListView1.ListItems.Item(i).SubItems(1)
.Fields(2).Value = ListView1.ListItems.Item(i).SubItems(2)
.Fields(3).Value = ListView1.ListItems.Item(i).SubItems(3)
.Fields(4).Value = ListView1.ListItems.Item(i).SubItems(4)
i = i + 1
.Update
Loop
End With
With pbill
If .RecordCount = 0 Then
mid = "MD-00010191110"
With bmemp
.MoveFirst
Do Until .EOF
.Fields(2) = 0
.Fields(3) = 0
.Fields(4) = 0
.Fields(5) = 0
.Fields(6) = 0
.Fields(7) = 0
.Fields(8) = 0
.Fields(9) = 0
.Fields(10) = 0
.Fields(11) = 0
.Fields(12) = 0
.Fields(13) = 0
.Update
.MoveNext
Loop
End With
With tmidpass
If (.RecordCount = 0) Then
Else
.MoveFirst
Do Until .EOF
.Fields(4).Value = 0
.Update
.MoveNext
Loop
End If
End With
With eidpass
If (.RecordCount = 0) Then
Else
.MoveFirst
Do Until .EOF
.Fields(4).Value = 0
.Update
.MoveNext
Loop
End If
End With
Else
.MoveFirst
Do Until .EOF
mid = .Fields(3).Value
.MoveNext
Loop
End If
End With
mid = Val(Right(mid, 11)) + 1
gbill = "MD-" & Format(mid, "00000000000")
Frame5.Top = 7680
Frame5.Left = 13740
Frame2.Visible = False
Frame4.Visible = False
Frame5.Visible = True
Label22.Visible = False
Label4.Visible = False
Label5.Visible = True
Label6.Visible = True
Label8.Visible = True
Label9.Visible = True
Label10.Visible = True
Label7.Visible = True
Label14.Visible = True
Label13.Visible = True
Command19.Visible = True
Command20.Visible = True
Label13.Caption = ""
Label18.Caption = ""
Label8.Caption = ""
Label9.Caption = ""
Label6.Caption = Text7.Text
Label5.Caption = Text8.Text
ser = Val(Label4.Caption) * 4 / 100
total = Val(Label4.Caption) + ser
ListView1.Visible = True
Label8.Caption = ser
Label9.Caption = total
Label13.Caption = Label4.Caption
'MsgBox (gbill)
j = 1
btime = Time
With pbill
Do Until j = c
.AddNew
.Fields(0).Value = Text7.Text
.Fields(1).Value = Text8.Text
.Fields(2).Value = Text3.Text
'MsgBox (gbill)
.Fields(3).Value = gbill
.Fields(4).Value = Date
.Fields(5).Value = btime
.Fields(6).Value = ListView1.ListItems.Item(j).Text
.Fields(7).Value = ListView1.ListItems.Item(j).SubItems(1)
.Fields(8).Value = ListView1.ListItems.Item(j).SubItems(2)
.Fields(9).Value = ListView1.ListItems.Item(j).SubItems(3)
.Fields(10).Value = ListView1.ListItems.Item(j).SubItems(4)
.Fields(11).Value = 0
.Fields(12).Value = ser
.Fields(13).Value = total
.Fields(14).Value = Label16.Caption
j = j + 1
.Update
Loop
End With
Text7.Text = ""
Text8.Text = ""
Text3.Text = ""
With tmidpass
If (.RecordCount = 0) Then
Else
.MoveFirst
Do Until .EOF
If (Label16.Caption = .Fields(1).Value) Then
.Fields(4).Value = (Val(.Fields(4).Value) +
Order_Now.ListView1.ListItems.Count)
.Update
Exit Do
End If
.MoveNext
Loop
End If
End With
With eidpass
If (.RecordCount = 0) Then
Else
.MoveFirst
Do Until .EOF
If (Label16.Caption = .Fields(1).Value) Then
.Fields(4).Value = (Val(.Fields(4).Value) +
Order_Now.ListView1.ListItems.Count)
.Update
Exit Do
End If
.MoveNext
Loop
End If
End With
With bmemp
.MoveFirst
Do Until .EOF
If (Label16.Caption = .Fields(1).Value) Then
k = Month(Date)
k = k + 1
.Fields(k).Value = (Val(.Fields(k).Value) +
Order_Now.ListView1.ListItems.Count)
.Update
Exit Do
End If
.MoveNext
Loop
.MoveFirst
Do Until .EOF
tot = 0
tot = (tot + Val(.Fields(2).Value) + Val(.Fields(3).Value) +
Val(.Fields(4).Value) + Val(.Fields(5).Value) + Val(.Fields(6).Value) +
Val(.Fields(7).Value) + Val(.Fields(8).Value) + Val(.Fields(9).Value) +
Val(.Fields(10).Value) + Val(.Fields(11).Value) + Val(.Fields(12).Value) +
Val(.Fields(13).Value))
.Fields(14).Value = tot
.Update
.MoveNext
Loop
End With
With tbemp
If (.RecordCount = 0) Then
k = 0
'MsgBox (k)
Else
.MoveFirst
k = 0
Do Until .EOF
If (.Fields(0).Value = Date) Then
'MsgBox (k)
k = 1
Exit Do
Else
k = 0
End If
.MoveNext
Loop
End If
'MsgBox (k)
If (k = 0) Then
' MsgBox (k)
.AddNew
.Fields(0) = Date
.Update
With eidpass
If (.RecordCount = 0) Then
Else
.MoveFirst
Do Until .EOF
If (Order_Now.Label16.Caption = .Fields(1).Value) Then
i = (Val(.Fields(3).Value))
'MsgBox ("i=" & i)
If IsNull(tbemp.Fields(i)) Then
tbemp.Fields(i) = 1
tbemp.Update
'MsgBox (i)
'MsgBox (tbemp.Fields(i))
Else
'MsgBox (i)
'MsgBox (tbemp.Fields(i))
tbemp.Fields(i) = (Val(tbemp.Fields(i)) + 1)
tbemp.Update
End If
End If
.MoveNext
Loop
End If
End With
Else
With eidpass
If (.RecordCount = 0) Then
Else
.MoveFirst
Do Until .EOF
If (Order_Now.Label16.Caption = .Fields(1).Value) Then
i = (Val(.Fields(3).Value))
'MsgBox ("i=" & i)
tbemp.Fields(i) = (Val(.Fields(4).Value))
tbemp.Update
End If
.MoveNext
Loop
End If
End With
End If
End With
With tbemp
.MoveFirst
Do Until .EOF
For i = 1 To eidpass.RecordCount
If (IsNull(.Fields(i).Value)) Then
.Fields(i).Value = 0
End If
Next
.MoveNext
Loop
End With
End If
End Sub
Private Sub Command15_Click()
Call check1
End Sub
Private Sub Command16_Click()
Frame3.Visible = False
Frame2.Visible = True
End Sub
Private Sub Command17_Click()
Call connect
With ju
Do Until .EOF
If .Fields(7).Value = Text1.Text And .Fields(6).Value = Text2.Text Then
check = 1
Label6.Visible = True
Label5.Visible = True
Label6.Caption = .Fields(0).Value
Label5.Caption = .Fields(2).Value
Exit Do
Else
check = 2
End If
.MoveNext
Loop
If check = 1 Then
phone = .Fields(2).Value
cname = .Fields(0).Value
dis = (Val(Order_Now.Label4.Caption) * 5 / 100)
Label18.Caption = dis
ser = (Val(Label4.Caption) - dis) * 20 / 100
total = (Val(Label4.Caption) - dis) + ser
Label8.Caption = ser
Label9.Caption = total
Label26.Caption = .Fields(8).Value
netamt = Val(Label26.Caption) - Val(Label9.Caption)
With pbill
Do Until .EOF
If (gbill = .Fields(3).Value) Then
.Fields(0).Value = cname
.Fields(1).Value = phone
.Fields(11).Value = dis
.Fields(12).Value = ser
.Fields(13).Value = total
.Update
End If
.MoveNext
Loop
End With
If (netamt < 0) Then
Label24.Caption = (-(netamt))
Label29.Caption = 0
.Fields(8).Value = Val(Label29.Caption)
.Update
Else
Label29.Caption = netamt
Label24.Caption = 0
.Fields(8).Value = Val(Label29.Caption)
.Update
End If
Frame3.Visible = False
ListView1.Visible = True
Frame2.Visible = False
Frame5.Visible = True
Frame4.Visible = False
Frame5.Top = 7680
Frame5.Left = 13740
Command10.Visible = False
Command11.Visible = False
Label22.Visible = False
Command15.Visible = False
Command19.Visible = True
Command20.Visible = True
Label13.Caption = Label4.Caption
Label4.Visible = False
Label17.Visible = True
Label23.Visible = True
Label24.Visible = True
Label28.Visible = True
Label29.Visible = True
Label26.Visible = True
Label27.Visible = True
Label18.Visible = True
Label8.Visible = True
Label9.Visible = True
Label10.Visible = True
Label7.Visible = True
Label14.Visible = True
Label13.Visible = True
Text2.Text = ""
Text1.Text = ""
Else
MsgBox ("Not a memeber")
Text2.Text = ""
Text1.Text = ""
End If
End With
End Sub
Private Sub Command18_Click()
Frame2.Visible = False
ListView1.Visible = True
End Sub
Private Sub Command19_Click()
ListView1.ListItems.Clear
ListView1.Visible = True
Frame6.Visible = True
Frame4.Visible = True
Frame3.Visible = False
Frame5.Visible = False
Label4.Caption = ""
Label5.Caption = ""
Label6.Caption = ""
Label4.Caption = "0"
total = 0
ListView1.Top = 0
Label22.Visible = True
Command15.Visible = True
Command10.Visible = True
Command11.Visible = True
Label4.Visible = True
Unload DataReport1
Unload Blank
End Sub
Private Sub Command20_Click()
Blank.Width = 13005
Blank.Show
Blank.Enabled = False
Set DataReport1.DataSource = tempbill
DataReport1.Sections(2).Controls("label6").Caption = cname
DataReport1.Sections(2).Controls("label7").Caption = phone
DataReport1.Sections(5).Controls("Label12").Caption =
Round(Val(Label18.Caption))
DataReport1.Sections(5).Controls("Label19").Caption =
Round(Val(Label8.Caption))
DataReport1.Sections(5).Controls("Label10").Caption =
Round(Val(Label9.Caption))
DataReport1.Sections("Section1").Controls("text1").DataField = "pname"
DataReport1.Sections("Section1").Controls("text2").DataField = "price"
DataReport1.Sections("Section1").Controls("text3").DataField = "quantity"
DataReport1.Sections("Section1").Controls("text4").DataField = "vat"
DataReport1.Sections("Section1").Controls("text5").DataField = "amt"
DataReport1.Sections(2).Controls("label15").Caption = gbill
DataReport1.Sections(2).Controls("label16").Caption = Date
DataReport1.Sections(2).Controls("label17").Caption = Time
DataReport1.Refresh
DataReport1.Show
End Sub
Private Sub Command21_Click()
Frame7.Visible = False
End Sub
Private Sub Command22_Click()
Label22.Caption = ""
Label30.Caption = ""
Text3.Text = ""
Option1.Value = False
Option2.Value = False
Option3.Value = False
End Sub
Private Sub Command1_Click()
Combo.Show
Combo.Image5.Visible = True
Combo.Frame1.Visible = False
End Sub
Private Sub Command2_Click()
Salad.Show
Salad.Image5.Visible = True
Salad.Frame1.Visible = False
End Sub
Private Sub Command3_Click()
Icecream.Show
Icecream.Image5.Visible = True
Icecream.Frame1.Visible = False
End Sub
Private Sub Command4_Click()
Coffee.Show
Coffee.Image5.Visible = True
Coffee.Frame1.Visible = False
End Sub
Private Sub Command5_Click()
Shakes.Show
Shakes.Image5.Visible = True
Shakes.Frame1.Visible = False
End Sub
Private Sub Command6_Click()
Chicken.Show
Chicken.Image5.Visible = True
Chicken.Frame1.Visible = False
End Sub
Private Sub Command7_Click()
Fries.Show
Fries.Image5.Visible = True
Fries.Frame1.Visible = False
End Sub
Private Sub Command8_Click()
Burger.Show
Burger.Image5.Visible = True
Burger.Frame1.Visible = False
End Sub
Private Sub Command9_Click()
Chocolate.Show
Chocolate.Image5.Visible = True
Chocolate.Frame1.Visible = False
End Sub
Private Sub Form_Load()
Frame4.Top = 10035
Frame4.Left = 13680
Order_Now.BackColor = RGB(241, 6, 11)
Label2.BackColor = RGB(241, 6, 11)
End Sub
Private Sub Label19_Click()
Frame3.Visible = True
Text2.SetFocus
Frame3.Left = 13800
Frame3.Top = 3840
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text1.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 36 Or KeyCode = 8 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode
= 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text1.Text = ""
End If
End If
End Sub
Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer)
If Text2.Text = "" Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or (KeyCode >= 60 And KeyCode <= 90) Or KeyCode = 13 Or KeyCode =
35 Or _
KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode
= 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text2.Text = ""
End If
End If
End Sub
Private Sub Text3_KeyUp(KeyCode As Integer, Shift As Integer)
'MsgBox (KeyCode)
If (Text3.Text = "") Then
Else
If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <=
105) Or KeyCode = 13 Or KeyCode = 35 Or _
KeyCode = 111 Or KeyCode = 191 Or KeyCode = 36 Or KeyCode = 32 Or
KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode
= 39 Or KeyCode = 40) Then
Else
MsgBox ("Not Allowed")
Text3.Text = ""
End If
End If
End Sub
Private Sub Text3_LostFocus()
'MsgBox TypeName(Text3.Text)
If (Text3.Text = "") Then
Else
If (IsDate(Text3.Text)) Then
If (CDate(Text3.Text) > Date) Then
MsgBox ("Not Valid Date")
Text3.Text = ""
Text3.SetFocus
End If
Else
MsgBox ("Please Input Proper Date")
Text3.Text = ""
Text3.SetFocus
End If
End If
End Sub
Private Sub Text7_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text7.Text = "") Then
Else
If KeyCode = 16 Or KeyCode = 32 Or KeyCode = 37 Or KeyCode = 38 Or
KeyCode = 39 Or KeyCode = 40 Or KeyCode = 35 Or KeyCode = 36 Or KeyCode
= 8 Then
ElseIf (Not ((KeyCode >= 65 And KeyCode <= 90)) Or ((KeyCode >= 97 And
KeyCode <= 122))) Then
str1 = Left(Text7.Text, Len(Text7.Text) - 1)
Text7.Text = ""
Text7.SelText = Right(str1, Len(str1))
Else
End If
End If
End Sub
Private Sub Text8_KeyUp(KeyCode As Integer, Shift As Integer)
If (Text8.Text = "") Then
k = 0
Else
k = k + 1
If (k = 1) Then
If (KeyCode = 105 Or KeyCode = 104 Or KeyCode = 103 Or KeyCode = 55
Or KeyCode = 56 Or KeyCode = 57) Then
Else
MsgBox ("Enter a Valid Number")
Text8.Text = ""
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project

Mais conteúdo relacionado

Mais procurados

Demat account 1
Demat account 1Demat account 1
Demat account 1kammy virk
 
IT Career Development - An Introduction into the Industry
IT Career Development - An Introduction into the IndustryIT Career Development - An Introduction into the Industry
IT Career Development - An Introduction into the IndustryLawal Adekunle
 
Bachelor Of Information Technology Australia
Bachelor Of Information Technology AustraliaBachelor Of Information Technology Australia
Bachelor Of Information Technology Australiaviteduau
 
Career in computer science
Career in computer scienceCareer in computer science
Career in computer scienceAri Banerjee
 
Careers in Information Technology and Web Development
Careers in Information Technology and Web DevelopmentCareers in Information Technology and Web Development
Careers in Information Technology and Web DevelopmentREVA University
 
Bachelor of Information Technology Melbourne
Bachelor of Information Technology MelbourneBachelor of Information Technology Melbourne
Bachelor of Information Technology Melbournevitseo1
 
The Workplace Engagement Economy Where HR, Social, Mobile, and Tech Collide
The Workplace Engagement Economy Where HR, Social, Mobile, and Tech CollideThe Workplace Engagement Economy Where HR, Social, Mobile, and Tech Collide
The Workplace Engagement Economy Where HR, Social, Mobile, and Tech CollideJessica Miller-Merrell
 
Campus news information system - Android
Campus news information system - AndroidCampus news information system - Android
Campus news information system - AndroidDhruvil Dhulia
 
Bachelor of Information Technology Sydney
Bachelor of Information Technology SydneyBachelor of Information Technology Sydney
Bachelor of Information Technology Sydneyvitseo1
 
It presentation final1
It presentation final1It presentation final1
It presentation final1wakhale
 
Title 09 - computer application in media industries (2)
Title   09 - computer application in media industries (2)Title   09 - computer application in media industries (2)
Title 09 - computer application in media industries (2)Adzline Nurul
 
ppt on career options after 12 in IT sector
ppt on career options after 12 in IT sectorppt on career options after 12 in IT sector
ppt on career options after 12 in IT sectoraditigupta335
 
Computer applications in buiseness
Computer applications in buisenessComputer applications in buiseness
Computer applications in buisenessDewan Md. Faysal
 
IRJET- Android Application for Training and Placement Cell using Machine ...
IRJET-  	  Android Application for Training and Placement Cell using Machine ...IRJET-  	  Android Application for Training and Placement Cell using Machine ...
IRJET- Android Application for Training and Placement Cell using Machine ...IRJET Journal
 
The role of computer in modern business
The role of computer in modern businessThe role of computer in modern business
The role of computer in modern businessTuhin Parves
 
MBA computer application in business intro
MBA computer application in business introMBA computer application in business intro
MBA computer application in business introCyriac Jose
 

Mais procurados (19)

Demat account 1
Demat account 1Demat account 1
Demat account 1
 
IT Career Development - An Introduction into the Industry
IT Career Development - An Introduction into the IndustryIT Career Development - An Introduction into the Industry
IT Career Development - An Introduction into the Industry
 
Bachelor Of Information Technology Australia
Bachelor Of Information Technology AustraliaBachelor Of Information Technology Australia
Bachelor Of Information Technology Australia
 
Career in computer science
Career in computer scienceCareer in computer science
Career in computer science
 
Careers in Information Technology and Web Development
Careers in Information Technology and Web DevelopmentCareers in Information Technology and Web Development
Careers in Information Technology and Web Development
 
Bachelor of Information Technology Melbourne
Bachelor of Information Technology MelbourneBachelor of Information Technology Melbourne
Bachelor of Information Technology Melbourne
 
The Workplace Engagement Economy Where HR, Social, Mobile, and Tech Collide
The Workplace Engagement Economy Where HR, Social, Mobile, and Tech CollideThe Workplace Engagement Economy Where HR, Social, Mobile, and Tech Collide
The Workplace Engagement Economy Where HR, Social, Mobile, and Tech Collide
 
Campus news information system - Android
Campus news information system - AndroidCampus news information system - Android
Campus news information system - Android
 
The HR Technology Selection Guide
The HR Technology Selection GuideThe HR Technology Selection Guide
The HR Technology Selection Guide
 
Bachelor of Information Technology Sydney
Bachelor of Information Technology SydneyBachelor of Information Technology Sydney
Bachelor of Information Technology Sydney
 
It presentation final1
It presentation final1It presentation final1
It presentation final1
 
Title 09 - computer application in media industries (2)
Title   09 - computer application in media industries (2)Title   09 - computer application in media industries (2)
Title 09 - computer application in media industries (2)
 
linitcv
linitcvlinitcv
linitcv
 
ppt on career options after 12 in IT sector
ppt on career options after 12 in IT sectorppt on career options after 12 in IT sector
ppt on career options after 12 in IT sector
 
Computer applications in buiseness
Computer applications in buisenessComputer applications in buiseness
Computer applications in buiseness
 
Importance of software engineering
Importance of software engineeringImportance of software engineering
Importance of software engineering
 
IRJET- Android Application for Training and Placement Cell using Machine ...
IRJET-  	  Android Application for Training and Placement Cell using Machine ...IRJET-  	  Android Application for Training and Placement Cell using Machine ...
IRJET- Android Application for Training and Placement Cell using Machine ...
 
The role of computer in modern business
The role of computer in modern businessThe role of computer in modern business
The role of computer in modern business
 
MBA computer application in business intro
MBA computer application in business introMBA computer application in business intro
MBA computer application in business intro
 

Destaque

11.[45 60]electricity billing systems at residential level in sylhet city
11.[45 60]electricity billing systems at residential level in sylhet city11.[45 60]electricity billing systems at residential level in sylhet city
11.[45 60]electricity billing systems at residential level in sylhet cityAlexander Decker
 
Electricity billing-system-screens
Electricity billing-system-screensElectricity billing-system-screens
Electricity billing-system-screensFreeprojectz
 
GSM BASED ELECTRICITY BILLING WITH TOD METERING -MINI PROJECT
GSM BASED ELECTRICITY BILLING WITH TOD METERING -MINI PROJECTGSM BASED ELECTRICITY BILLING WITH TOD METERING -MINI PROJECT
GSM BASED ELECTRICITY BILLING WITH TOD METERING -MINI PROJECTAthul MG
 
Mobile based electricity
Mobile based electricityMobile based electricity
Mobile based electricityHansi Thenuwara
 
Electricity billing-system-project-on-jsp
Electricity billing-system-project-on-jspElectricity billing-system-project-on-jsp
Electricity billing-system-project-on-jspFreeprojectz
 
GSM BASED PREPAID ENERGY METER BILLING VIA SMS
GSM BASED PREPAID ENERGY METER BILLING VIA SMSGSM BASED PREPAID ENERGY METER BILLING VIA SMS
GSM BASED PREPAID ENERGY METER BILLING VIA SMSSRINIVAS REDDY
 
Course registration system dfd
Course registration system dfdCourse registration system dfd
Course registration system dfdUtsav mistry
 
LinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedLinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedSlideShare
 
State of the Word 2011
State of the Word 2011State of the Word 2011
State of the Word 2011photomatt
 

Destaque (9)

11.[45 60]electricity billing systems at residential level in sylhet city
11.[45 60]electricity billing systems at residential level in sylhet city11.[45 60]electricity billing systems at residential level in sylhet city
11.[45 60]electricity billing systems at residential level in sylhet city
 
Electricity billing-system-screens
Electricity billing-system-screensElectricity billing-system-screens
Electricity billing-system-screens
 
GSM BASED ELECTRICITY BILLING WITH TOD METERING -MINI PROJECT
GSM BASED ELECTRICITY BILLING WITH TOD METERING -MINI PROJECTGSM BASED ELECTRICITY BILLING WITH TOD METERING -MINI PROJECT
GSM BASED ELECTRICITY BILLING WITH TOD METERING -MINI PROJECT
 
Mobile based electricity
Mobile based electricityMobile based electricity
Mobile based electricity
 
Electricity billing-system-project-on-jsp
Electricity billing-system-project-on-jspElectricity billing-system-project-on-jsp
Electricity billing-system-project-on-jsp
 
GSM BASED PREPAID ENERGY METER BILLING VIA SMS
GSM BASED PREPAID ENERGY METER BILLING VIA SMSGSM BASED PREPAID ENERGY METER BILLING VIA SMS
GSM BASED PREPAID ENERGY METER BILLING VIA SMS
 
Course registration system dfd
Course registration system dfdCourse registration system dfd
Course registration system dfd
 
LinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedLinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-Presented
 
State of the Word 2011
State of the Word 2011State of the Word 2011
State of the Word 2011
 

Semelhante a Kirtesh Khandelwal Visual Basics Project

Pinkle makhijani supermarket billing system vb project
Pinkle makhijani supermarket billing system vb projectPinkle makhijani supermarket billing system vb project
Pinkle makhijani supermarket billing system vb projectPinkleMakhijani
 
IRJET- Voice based Email Application for Blind People
IRJET-  	  Voice based Email Application for Blind PeopleIRJET-  	  Voice based Email Application for Blind People
IRJET- Voice based Email Application for Blind PeopleIRJET Journal
 
Bca Final Year VB Practical File
Bca Final Year VB Practical FileBca Final Year VB Practical File
Bca Final Year VB Practical FileRahul Saini
 
Taxation project new
Taxation project newTaxation project new
Taxation project newIT
 
Why Computer Science.pptx
Why Computer Science.pptxWhy Computer Science.pptx
Why Computer Science.pptxslidecell212100
 
Ait 3 B Task 1 Final
Ait 3 B Task 1 FinalAit 3 B Task 1 Final
Ait 3 B Task 1 Finallac_cheese
 
MBA 5401, Management Information Systems 1 Course Lea.docx
 MBA 5401, Management Information Systems 1 Course Lea.docx MBA 5401, Management Information Systems 1 Course Lea.docx
MBA 5401, Management Information Systems 1 Course Lea.docxaryan532920
 
2021 Trends in Data Science
2021 Trends in Data Science2021 Trends in Data Science
2021 Trends in Data ScienceMITAcademy1
 
IRJET- Displaying Smart Phone Data in the Desktop using Firebase
IRJET- Displaying Smart Phone Data in the Desktop using FirebaseIRJET- Displaying Smart Phone Data in the Desktop using Firebase
IRJET- Displaying Smart Phone Data in the Desktop using FirebaseIRJET Journal
 
Avadhoot_Mane_DotNet_Resume_2016
Avadhoot_Mane_DotNet_Resume_2016Avadhoot_Mane_DotNet_Resume_2016
Avadhoot_Mane_DotNet_Resume_2016Avadhoot Mane
 
Can body write an essay for me on dream job in Computer Engineerin.pdf
Can body write an essay for me on dream job in Computer Engineerin.pdfCan body write an essay for me on dream job in Computer Engineerin.pdf
Can body write an essay for me on dream job in Computer Engineerin.pdfmanjan6
 
Freelancer profile / Pasi Vuorio
Freelancer profile / Pasi VuorioFreelancer profile / Pasi Vuorio
Freelancer profile / Pasi VuorioPasi Vuorio
 
E-commrce page.docx
E-commrce page.docxE-commrce page.docx
E-commrce page.docxAmitmAHI4
 
Mis project report on DELHI INFO.COM MANAGEMENT INFORMATION SYSTEM
Mis project report on DELHI INFO.COM MANAGEMENT INFORMATION SYSTEMMis project report on DELHI INFO.COM MANAGEMENT INFORMATION SYSTEM
Mis project report on DELHI INFO.COM MANAGEMENT INFORMATION SYSTEMpankaj pandey
 
When e government is not egovernment
When e government is not egovernmentWhen e government is not egovernment
When e government is not egovernmentJobe Bacwadi
 
When e government is not egovernment
When e government is not egovernmentWhen e government is not egovernment
When e government is not egovernmentJobe Bacwadi
 
BEST COMPUTER INSTITUTE IN DELHI.pptx
BEST COMPUTER INSTITUTE IN DELHI.pptxBEST COMPUTER INSTITUTE IN DELHI.pptx
BEST COMPUTER INSTITUTE IN DELHI.pptxKalpanaMalhotra
 

Semelhante a Kirtesh Khandelwal Visual Basics Project (20)

Billing project
Billing projectBilling project
Billing project
 
Pinkle makhijani supermarket billing system vb project
Pinkle makhijani supermarket billing system vb projectPinkle makhijani supermarket billing system vb project
Pinkle makhijani supermarket billing system vb project
 
IRJET- Voice based Email Application for Blind People
IRJET-  	  Voice based Email Application for Blind PeopleIRJET-  	  Voice based Email Application for Blind People
IRJET- Voice based Email Application for Blind People
 
Bca Final Year VB Practical File
Bca Final Year VB Practical FileBca Final Year VB Practical File
Bca Final Year VB Practical File
 
Taxation project new
Taxation project newTaxation project new
Taxation project new
 
Why Computer Science.pptx
Why Computer Science.pptxWhy Computer Science.pptx
Why Computer Science.pptx
 
Ait 3 B Task 1 Final
Ait 3 B Task 1 FinalAit 3 B Task 1 Final
Ait 3 B Task 1 Final
 
MBA 5401, Management Information Systems 1 Course Lea.docx
 MBA 5401, Management Information Systems 1 Course Lea.docx MBA 5401, Management Information Systems 1 Course Lea.docx
MBA 5401, Management Information Systems 1 Course Lea.docx
 
2021 Trends in Data Science
2021 Trends in Data Science2021 Trends in Data Science
2021 Trends in Data Science
 
IRJET- Displaying Smart Phone Data in the Desktop using Firebase
IRJET- Displaying Smart Phone Data in the Desktop using FirebaseIRJET- Displaying Smart Phone Data in the Desktop using Firebase
IRJET- Displaying Smart Phone Data in the Desktop using Firebase
 
Avadhoot_Mane_DotNet_Resume_2016
Avadhoot_Mane_DotNet_Resume_2016Avadhoot_Mane_DotNet_Resume_2016
Avadhoot_Mane_DotNet_Resume_2016
 
Can body write an essay for me on dream job in Computer Engineerin.pdf
Can body write an essay for me on dream job in Computer Engineerin.pdfCan body write an essay for me on dream job in Computer Engineerin.pdf
Can body write an essay for me on dream job in Computer Engineerin.pdf
 
What about me
What about meWhat about me
What about me
 
Freelancer profile / Pasi Vuorio
Freelancer profile / Pasi VuorioFreelancer profile / Pasi Vuorio
Freelancer profile / Pasi Vuorio
 
E-commrce page.docx
E-commrce page.docxE-commrce page.docx
E-commrce page.docx
 
Mis project report on DELHI INFO.COM MANAGEMENT INFORMATION SYSTEM
Mis project report on DELHI INFO.COM MANAGEMENT INFORMATION SYSTEMMis project report on DELHI INFO.COM MANAGEMENT INFORMATION SYSTEM
Mis project report on DELHI INFO.COM MANAGEMENT INFORMATION SYSTEM
 
When e government is not egovernment
When e government is not egovernmentWhen e government is not egovernment
When e government is not egovernment
 
When e government is not egovernment
When e government is not egovernmentWhen e government is not egovernment
When e government is not egovernment
 
BEST COMPUTER INSTITUTE IN DELHI.pptx
BEST COMPUTER INSTITUTE IN DELHI.pptxBEST COMPUTER INSTITUTE IN DELHI.pptx
BEST COMPUTER INSTITUTE IN DELHI.pptx
 
CAREER IN I.T.
CAREER IN I.T.CAREER IN I.T.
CAREER IN I.T.
 

Último

DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 

Último (20)

DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 

Kirtesh Khandelwal Visual Basics Project

  • 1. Project Report 2017 Visual Basic Dezyne E’ Cole College 106/10, Civil Lines, Ajmer Tel: 0145-2624679 www.dezyneecole.com 2016-2017 Submitted by: Kirtesh Khandelwal 1
  • 2. ACKNOWLEDGEMENT We are extremely grateful and remain indebted to our guide MR. Tarun Sharma for being a source of inspiration and for his constant support in the Design, Implementation and Evaluation of the project. We are thankful to them for their constant constructive criticism and invaluable suggestions, which benefited us a lot while developing the project on “Restaurant Billing System”. He has been a constant source of inspiration and motivation for hard work. He has been very cooperative throughout this project work. Through this column, it would be our utmost pleasure to express our warm thanks to him for their encouragement, cooperation and consent without which we mightn’t be able to accomplish this project. We also express our gratitude to “Mrs. Vinita Mathur” for providing us the infrastructure to carry out the project and to all staff members who were directly and indirectly instrument in enabling us to stay committed for the project. We also express our gratitude to our college “DEZYNE E’COLE COLLEGE” for providing us the information to carry out the project and for providing us the experienced mentors who were directly and indirectly instrument in enabling us to stay committed for the project.
  • 3. SYNOPSIS We are creating a software that is Restaurant Billing System. This project is based on McDonald’s billing of product according to Customer requirement. This project gives information about: 1. Yearly, Monthly, Daily sales of product. 2. Yearly, Monthly, Daily Best Employee. 3. We can fetch the information or details about the Customers. 4. Only the Authorized person can access this Software. 5. Show the details about the product like product name, price, size etc. 6. Add new Employees and Admin only by the Admin. 7. Delete any Employee and Admin only by the Admin. 8. Easily switch from Admin to Employee panel and from Employee to Admin panel. 9. Update the product according to Customer requirement. 10.Each Employee and Customer has its unique id so easy to fetch the detail. 11.Automation like auto Id concept, auto Password Generator auto Bill number generator. 12.Re-generating of bill for the Customer facility. So overall it give user friendly interface and have unique id and password so all data is safe from the unauthorized person. This project provides all facilities that is required in billing system.
  • 4. Introduction of Information Technology (IT) Information Technology – The term commonly used as a synonym for computers and computer mentors, but it also emphasis other information distribution technologies such as television and telephones. Several industries are associated with information technology, including computer hardware, software, electronics, semiconductors, internet, telecommunication equipment and ecommerce. Human have been storing, retrieving, manipulating and communicating information since the summaries in Mesopotamia developed writing in about 3000BC, but the term information technology in the modern sense first appeared in a 1958 article published in the Howard business Review, authors Harold T. Leavitt and Thomas L. whisper commented that the new technology does not yet have a single established name. We shall call it information technology their definition consist of their categories. Technique for processing, the application of statistical and mathematics method of decision making and the simulation of higher order thinking through computer program. Based on the storage and processing technologies employed, it is possible to distinguish four distinct phase of IT development: pre-mechanical (1450-1840), electromechanical (18401940), electronic (1940-present) and moreover it as a service. This article focuses on the most recent period (electronic), which began in about 1940. Set of tools, processes, and methodologies (such as coding, programming, data communication, data conversion, storage & retrieval, system analysis & design, system control) and associated equipment employee to collect process and present information. In broad terms, it also includes office automation, multimedia and Tele – communication. Information Technology, a source we call the “computer”, that can show you what information via Tele-portal, scoping, working calibration for transmitting throughout the world. More commonly known as I.T. is the most popular career and the fastest growing industry in the world. There are several success stories about people who choose this field for a career and are now on top of their game. Information technology covers a board spectrum of hardware and software solution that enable organizations to gather, organize and analyze data. It also details technology based workflow processes.
  • 5. Few reasons for why people choose IT –  Low cost of education The biggest advantage of choosing information technology for a career is that it has very low cost of education as compared to many other career choices. You don’t need degree to become an I.T. professional. Instead, you can get quick training to be certified in specific areas of information technology. This way you save huge amounts of money that you may have otherwise spent on years of college tuition.  Fastest changing industry The information technology industry operates at a speed much faster than any other industry and for this reason, there’s always a significant demand for highly skilled workers with the innovations in cloud computing, big data and cyber security an aspiring I.T. professional has many avenues to pursue and grow from and I.T. professional never stops learning, and must always stay on top of the latest technology trend in order to be successful in the field. The more training and knowledge the I.T. professional has the more employable he or she will be.  Better income It is well known fact that information technology professionals are paid well, compared to other professionals. An I.T. professional with the right mix of certifications & experience can find a permanent position in either the public or private sector. Recently many companies have been extensively hiring experts in cloud computing, cyber security and network security to help enhance their current systems. Bachelor of Computer Application BCA is a part of information technology. In this age of computers and everything being digitalized, knowledge about machines is very important. It helps the person have a distinct advantage over the others who do not have a degree in computer applications. The domain is growing a rapid pace. In the 1990’s with the advent of globalization computers grew in prominence and slowly started to replace the paper and files in offices. It brought down the cost to quite an exist. BCA is a three year undergraduate degree course. Students will be taught subjects which are related to the technological applications that are requires in today’s practical work field.
  • 6. 1. Skills to be learnt – Students who study for a bachelor of computer application (BCA) will get skills and information not only about computer and information technology but also in communication, organization and management. One also get to learn programming languages such as C, C++, JAVA, JavaScript, HTML&CSS, SQL, Foxpro, Oracle, Visual Basics, Asp etc. 2. Career opportunities – BCA given a number of opportunities to individuals to go ahead and shine in their lives. The opportunities available for people doing BCA are galore. A few of them like software programmer, system and network administrator, web designer, faculty for computer science / communication technology etc. the range of chances in information technology are immense. According to our MDS University we have learnt many theory & practical subjects –  First Year o Management and accounting o Computer fundamental o PC software o Fundamentals of C Programming o Data structure and algorithm o Multimedia Basic  Second year o Communication skills o Database management system o Client server technology o Java Programming o C++ Programming o Computer Graphics  Third year o Visual Basic Programming o Relational database management system (ORACLE / SQL) o E – Commerce o Computer Network and Mobile Computing o Internet tools & website development (JavaScript, ASP) o Management Information System
  • 7. Introduction to Project “Restaurant Billing System” in “Visual Basic Programming Language” which includes many features like:  Graphical and User friendly interface.  Less time consuming.  No paper work.  Efficient working.  Easy updation of database.  Login through unique id and password by admin i.e. security from an unauthorized people. Why it is made –  The main purpose of this project is replace the manually work.  Provide a friendly environment to maintain the details of customer and employee.  This project reduce the paper work.  It reduce complexity.  Security from unauthorized user.  For easy billing of restaurant.  Give accurate result. Visual Basic – Visual Basic 6.0 Language Visual basic (VB) is a 3rd generation event-driven programming language developed by Microsoft for their operating system windows. Visual basic is a widely understood high level programming language, written using simple English. Like – words & syntax. It is an interpreted language. Code can be run immediately after being written. Having an interpreter makes its simpler to use, as there is no need for the computer to compile the code, possibly finding errors to fix, before the compiled version can be run. Once the code is working, it can be compiled into an .exe file so that it will run on all modern windows computers, whether VB is installed or not. The language allows a beginning programmer to produce professional – looking windows applications, as its include drawing tools to create normal windows and structures which allow programs to be adapted for use with the internet. VB will not run on operating systems other than windows.
  • 8. Visual Basic has its origin in basic which was developed round about the year 1960, when high level languages were just being introduced to the computer community. Microsoft has made it extremely powerful by gearing all its good features to the windows environment. Evaluation of Visual Basic – VB 1.0 was introduced in 1991. The drag and drop design for creating the user interface is derived from prototype from generator developed by Allan cooper and his company called Tripod. Microsoft contracted with cooper and his associates to develop Tripod into a programmable form system for windows 3.0, under the code name Ruby (no relation to the Ruby programming language). Tripod did not include a programming language at all. Microsoft decided to combine Ruby with the basic language to create Visual Basic. Need of Visual Basic – Visual Basic is easy to learn programming language. With Visual Basic you can develop windows based applications and Games. Visual Basic is much easier to learn than others language (like Visual C++), and yet it’s powerful programming language. Visual Basic suite more for desktop application developing than for Games developing. You can create sophisticated games using Visual Basic, Visual Basic will be probably powerful enough to suite all your application and games programming needs. Ms-Access Requirement –  All the databases are created in the Microsoft access 2003.  Microsoft access 2003 is the product of Microsoft.  Microsoft access 2003, we create table which is the combination of rows and columns.  When we want to connect Microsoft access database in VB project so we save the Microsoft access file with .mdb extension.  We use Microsoft access 2003 with visual basic because visual basic supports Microsoft access 2003.  We can create multiple tables in single database.  Visual basic does not support Microsoft access 2007 or later version.
  • 9. Project & Their Facilities The project that I made is “Restaurant Billing System Software”. This project is based on billing of product. This project provides all information that required in billing software. This software describes the working of supermarket. This project contains lots of information will entered properly. This project basically works on two categories:-  Front End  Back End  Front End - Basically this project work on visual basic.  Back End - Basically this project works on MS Access 2003.  At the Front hand basically this project works on Visual Basic. It is event driven programming based project.  At the Back hand basically this project works on Microsoft Access 2003. My project contains ADODB connectivity with modules and also contains List View so that all the information shown in List View. MS Access contains the database and the tables which is help to fetch the records. The file extension of MS Access 2003 is .MDB. Why we made this project:- 1. To give knowledge of computer and reduce the work load of human being. 2. In my project there are so many facilities available which get our work easier. 3. It will increase the productivity and reduce the duplicity of data. 4. It will access easier to information related to the student. 5. It will maintain all records and time saving interface application. 6. It reduces the paper work. 7. It is accurate and reduce the complexity. 8. It saves the cost of employee. 9. It will give security to the staff. 10.To provide easy to user interface.
  • 10. Objectives of Restaurant Management System – 1. Automation – The application automates each and every activity of the manual system and increases its throughput. Thus the response time of the system is very less and it works very fast. 2. Accuracy – The application provides the user a quick response with very accurate information regarding the user etc. any details or system in an accurate manner, as when required. 3. User Friendly – The application “Restaurant Billing System” has a very user friendly interface. Thus the users will full very easy to work on it. The application provides accuracy along with a pleasant interface. Make the present manual system more interactive, speedy and user friendly. 4. Availability – The all Restaurant detail store permanently in the database admin can see the data in the availability of any information, whatever needed. 5. Maintain Cost – Reduce the cost of maintenance. It is standalone application so no required of cost for maintain it. DIFFERENT LEVELS OF DFD (Dataflow Diagram) – 0 LEVEL DFD (Dataflow Diagram) 1 LEVEL DFD (Dataflow Diagram) Restaurent Billing System ADMIN EMPLOYEE Restaurent Billing System ADMIN EMPLOYEE Database Request Request Response Response
  • 12. In this project we create following tables – 1. Admin Details 2. Employee Details 3. Best Employee Details 4. Categories Details 5. Customer Details 6. Menu Details 7. Permanent Details 8. Temporary Details 9. Today Best Details Admin Details:- Fields Data Type Default Key Extra ID Text Not Null - Auto generated mem_name Text Not Null - - mem_pass Text Not Null - - auto_num Number Not Null - - product_sell Number Not Null - - Employee Details:- Fields Data Type Default Key Extra ID Text Not Null - Auto generated mem_name Text Not Null - - mem_pass Text Not Null - -
  • 13. Best Employee Details:- Categories Details:- auto_num Number Not Null - Auto generated product_sell Number Not Null - - Fields Data Type Default Key Extra Emp_id Text Not Null - Auto increment Emp_name Text Not Null - - January Number Not Null - - Fabrary Number Not Null - - March Number Not Null - - April Number Not Null - - May Number Not Null - - June Number Not Null - - July Number Not Null - - Auguest Number Not Null - - September Number Not Null - - October Number Not Null - - November Number Not Null - - December Number Not Null - - Total Number Not Null - - Fields Data Type Default Key Extra ID Number Not Null - Auto generated category Memo Not Null - -
  • 14. Customer Details:- Menu Details:- Permanent Details:- Fields Data Type Default Key Extra Cname Text Not Null - - Address Text Not Null - - Contact Number Not Null - - Email Number Not Null - - Pincode Number Not Null - - auto no Number Not Null - Auto generated Mccardno Text Not Null - - Mccardpass Text Not Null - Auto generated Memamt Number Not Null - - Fields Data Type Default Key Extra Id Number Not Null - Auto generated Category Text Not Null - - Pname Text Not Null - - Samt Text Not Null - - Mamt Text Not Null - - Lamt Text Not Null - - Fields Data Type Default Key Extra cusname Text Not Null - - cusphno Text Not Null - - cusdob Date/Time Not Null - - bill_no Text Not Null - Auto
  • 15. Temporary Details:- Today Best Details:- generated bdate Date/Time Not Null - - btime Date/Time Not Null - Auto generated pname Text Not Null - - price number Not Null - - quantity number Not Null - - vat number Not Null - - amt number Not Null - - dis number Not Null - - ser_tax number Not Null - - total number Not Null - - employeee Text Not Null - - Fields Data Type Default Key Extra pname Text Not Null - - price Number Not Null - - quantity Number Not Null - - vat Number Not Null - - amt Number Not Null - - Fields Data Type Default Key Extra Tdate Date/Time Not Null - - Emp1 name Number Not Null - Auto generated Emp2 name Number Not Null - Auto generated ….. name Number Not Null - Auto generated Empn name Number Not Null - Auto generated
  • 16. SOFTWARE REQUIREMENTS:- 1. Visual studio 6 which contain visual basic 6.0 2. Microsoft access 2003 which extension should be .MDB 3. GUI(Graphical User Interface) operating system (Window7) HARDWARE REQUIREMENTS:- 1. Central Processing Unit (RAM, ROM, HARD DISK). 2. Desktop (LCD, LED, CRT, Any visual display). 3. Mouse and Keyboard. 4. Internal Memory 500MB. 5. Minimum 2GB RAM. MY PROJECT Login_Form:-
  • 17. Private Sub Command1_Click() Frame3.Visible = True Text1.SetFocus End Sub Private Sub Command2_Click() Frame4.Visible = True Text3.SetFocus End Sub Private Sub Command3_Click() Call terminate End Sub Private Sub Command4_Click() Call terminate End Sub Private Sub Command5_Click()
  • 18. Call connect find = 0 With tmidpass Do Until .EOF If ((.Fields(0).Value = Text1.Text Or .Fields(1).Value = Text1.Text) And (.Fields(2).Value = Text2.Text)) Then adname = .Fields(1).Value Order_Now.Label15.Caption = "Current Admin :" Order_Now.Label16.Caption = adname find = 1 ElseIf ((.Fields(0).Value = Text1.Text Or .Fields(1).Value = Text1.Text) And (.Fields(2).Value <> Text2.Text)) Then find = 2 ElseIf ((.Fields(0).Value <> Text1.Text Or .Fields(1).Value <> Text1.Text) And (.Fields(2).Value = Text2.Text)) Then find = 3 End If .MoveNext Loop If find = 1 Then Main_Interface.Show Main_Interface.Command3.Enabled = True Main_Interface.Command1.Enabled = True Main_Interface.Command11.Enabled = True Main_Interface.Command4.Enabled = True Main_Interface.Command12.Enabled = True Main_Interface.Command13.Enabled = True Main_Interface.Command5.Enabled = True Main_Interface.Command3.Visible = True Main_Interface.Command1.Visible = True
  • 19. Main_Interface.Command11.Visible = True Main_Interface.Command4.Visible = True Main_Interface.Command5.Visible = True Main_Interface.Command12.Visible = True Main_Interface.Command13.Visible = True Main_Interface.Command1.Top = 1320 Main_Interface.Command4.Top = 2160 Main_Interface.Command3.Top = 3120 Main_Interface.Command13.Top = 3960 Main_Interface.Command12.Top = 4800 Main_Interface.Command5.Top = 5640 Main_Interface.Command11.Top = 6600 Main_Interface.Command1.Left = 840 Main_Interface.Command4.Left = 840 Main_Interface.Command3.Left = 840 Main_Interface.Command13.Left = 840 Main_Interface.Command12.Left = 840 Main_Interface.Command5.Left = 840 Main_Interface.Command11.Left = 840 Unload Me ElseIf find = 2 Then MsgBox ("Wrong Password::Try again"), vbCritical, ("Mcdonald's") Text2.Text = "" Text2.SetFocus ElseIf find = 3 Then MsgBox ("Invalid ID or Name"), vbCritical, ("Mcdonald's") Text1.Text = "" Text1.SetFocus Else
  • 20. MsgBox ("Fill the Details Correctly"), vbCritical, ("Mcdonald's") Text2.Text = "" Text1.Text = "" Text1.SetFocus End If End With End Sub Private Sub Command6_Click() Frame3.Visible = False End Sub Private Sub Command7_Click() Frame4.Visible = False End Sub Private Sub Command8_Click() Call connect find = 0 With eidpass Do Until .EOF If ((.Fields(0).Value = Text3.Text Or .Fields(1).Value = Text3.Text) And (.Fields(2).Value = Text4.Text)) Then find = 1 empname = .Fields(1).Value Order_Now.Label15.Caption = "Current Emp. :" Order_Now.Label16.Caption = empname Main_Interface.Command4.Enabled = False
  • 21. Else If ((.Fields(0).Value = Text3.Text Or .Fields(1).Value = Text3.Text) And (.Fields(2).Value <> Text4.Text)) Then find = 2 Else If ((.Fields(0).Value <> Text3.Text Or .Fields(1).Value <> Text3.Text) And (.Fields(2).Value = Text4.Text)) Then find = 3 End If End If End If .MoveNext Loop If find = 1 Then Unload Me Main_Interface.Command3.Enabled = True Main_Interface.Command1.Enabled = True Main_Interface.Command11.Enabled = True Main_Interface.Command4.Enabled = False Main_Interface.Command12.Enabled = True Main_Interface.Command13.Enabled = False Main_Interface.Command5.Enabled = True Main_Interface.Command4.Visible = False Main_Interface.Command13.Visible = False Main_Interface.Command1.Visible = True Main_Interface.Command3.Visible = True Main_Interface.Command12.Visible = True Main_Interface.Command5.Visible = True Main_Interface.Command11.Visible = True Main_Interface.Command1.Top = 1680
  • 22. Main_Interface.Command3.Top = 2760 Main_Interface.Command12.Top = 3840 Main_Interface.Command5.Top = 4920 Main_Interface.Command11.Top = 6000 Main_Interface.Command1.Left = 840 Main_Interface.Command3.Left = 840 Main_Interface.Command12.Left = 840 Main_Interface.Command5.Left = 840 Main_Interface.Command11.Left = 840 Main_Interface.Show Else If find = 2 Then MsgBox ("Wrong Password::Try Again"), vbCritical, ("Mcdonald's") Text4.Text = "" Text4.SetFocus Else If find = 3 Then MsgBox ("Invalid ID or Name::Try Again"), vbCritical, ("Mcdonald's") Text3.Text = "" Text3.SetFocus Else MsgBox ("Fill the Details Correctly"), vbCritical, ("Mcdonald's") Text3.Text = "" Text4.Text = "" Text3.SetFocus End If End If End If
  • 23. End With End Sub Private Sub Command9_Click() Call terminate End Sub Private Sub Form_Load() Frame3.Visible = False Frame4.Visible = False End Sub Private Sub Picture1_Click() Timer1.Enabled = True Frame4.Visible = False Command1.SetFocus End Sub Private Sub Picture2_Click() Timer2.Enabled = True Frame3.Visible = False Command3.SetFocus End Sub Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) If Text1.Text = "" Then Else
  • 24. If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or (KeyCode >= 60 And KeyCode <= 90) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text1.Text = "" End If End If End Sub Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer) If (Text2.Text = "") Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text2.Text = "" End If End If End Sub Private Sub Text3_KeyUp(KeyCode As Integer, Shift As Integer) If Text3.Text = "" Then Else
  • 25. If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or (KeyCode >= 60 And KeyCode <= 90) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text3.Text = "" End If End If End Sub Private Sub Text4_KeyUp(KeyCode As Integer, Shift As Integer) If (Text4.Text = "") Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text4.Text = "" End If End If End Sub Private Sub Timer1_Timer() If Timer1.Enabled = True Then Picture1.Top = Picture1.Top - 60
  • 26. Timer2.Enabled = False Picture2.Top = 80 End If End Sub Private Sub Timer2_Timer() If Timer2.Enabled = True Then Picture2.Top = Picture2.Top - 60 Timer1.Enabled = False Picture1.Top = 80 End If End Sub Main_Interface:-
  • 27. Admin Main Interface:- Employee Main Interface:- Dim a As Integer Private Sub Command1_Click() Order_Now.Show Main_Interface.Hide End Sub
  • 28. Private Sub Command10_Click() Frame1.Visible = False Frame2.Enabled = True Command1.SetFocus End Sub Private Sub Command11_Click() Login_Form.Show End Sub Private Sub Command12_Click() Generate_Bill.Show End Sub Private Sub Command13_Click() Sales.Show End Sub Private Sub Command3_Click() Main_Interface.Enabled = False Customer_info.Show Customer_info.Top = 2500 Customer_info.Left = 5820 End Sub Private Sub Command4_Click() Frame2.Enabled = False Frame1.Visible = True
  • 29. Command9.SetFocus End Sub Private Sub Command5_Click() Join_us.Show Main_Interface.Hide End Sub Private Sub Command6_Click() Add_Emp.Show Main_Interface.Frame1.Enabled = False Main_Interface.Enabled = False Frame1.Visible = False End Sub Private Sub Command7_Click() Delete_Admin.Show Main_Interface.Frame1.Enabled = False Main_Interface.Enabled = False Frame1.Visible = False End Sub Private Sub Command8_Click() Delete_Employee.Show Main_Interface.Frame1.Enabled = False Main_Interface.Enabled = False Frame1.Visible = False End Sub
  • 30. Private Sub Command9_Click() Add_Admin.Show Main_Interface.Frame1.Enabled = False Main_Interface.Enabled = False Frame1.Visible = False End Sub Private Sub Form_Load() Main_Interface.BackColor = RGB(241, 6, 11) Timer1.Enabled = True End Sub Private Sub Timer1_Timer() If a = 0 Then Label2.Caption = " " Label2.Caption = "I" a = 1 ElseIf a = 1 Then Label2.Caption = " " Label2.Caption = "I m" a = 2 ElseIf a = 2 Then Label2.Caption = " " Label2.Caption = "I m l" a = 3 ElseIf a = 3 Then Label2.Caption = " "
  • 31. Label2.Caption = "I m lo" a = 4 ElseIf a = 4 Then Label2.Caption = " " Label2.Caption = "I m lov" a = 5 ElseIf a = 5 Then Label2.Caption = " " Label2.Caption = "I m lovi" a = 6 ElseIf a = 6 Then Label2.Caption = " " Label2.Caption = "I m lovin" a = 7 ElseIf a = 7 Then Label2.Caption = " " Label2.Caption = "I m lovin i" a = 8 ElseIf a = 8 Then Label2.Caption = " " Label2.Caption = "I m lovin it" a = 9 ElseIf a = 9 Then Label2.Caption = " " Label2.Caption = " " a = 0 End If End Sub
  • 32. Update Staff:- Add Admin:- Private Sub Command1_Click() Text2.Enabled = True Text1.Enabled = True
  • 33. Command3.Enabled = True Call connect With tmidpass If (Label20.Caption = "" And Text2.Text = "" And Label4.Caption = "") Then m = 0 If .RecordCount = 0 Then m = 1 Else .MoveFirst Do Until .EOF If .Fields(3).Value > m Then m = .Fields(3).Value End If .MoveNext Loop m = m + 1 End If tmid = "TMid" & Format(m, "0000") Label20.Caption = tmid Else MsgBox ("Please Clear All Boxes") End If End With End Sub Private Sub Command2_Click() Unload Me
  • 34. Main_Interface.Show Main_Interface.Enabled = True Main_Interface.Frame1.Visible = True Main_Interface.Frame1.Enabled = True End Sub Private Sub Command3_Click() Label20.Caption = "" Text2.Text = "" Text1.Text = "" Label4.Caption = "" End Sub Private Sub Command4_Click() If (Text2.Text = "") Then MsgBox ("Enter the name Plzzzz..") End If Call connect With tmidpass If (Label20.Caption <> "" And Text2.Text <> "" And Label4.Caption = "") Then apass = 1111 m = 0 If .RecordCount = 0 Then m = 1 apass = 1111 Else .MoveFirst Do Until .EOF
  • 35. If .Fields(3).Value > m Then m = .Fields(3).Value apass = apass + 11 End If .MoveNext Loop m = m + 1 End If .AddNew .Fields(0) = Label20.Caption .Fields(1) = StrConv(Text2.Text, vbProperCase) .Fields(2) = apass .Fields(3) = m .Fields(4) = 0 .Update Label4.Caption = apass End If End With End Sub Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) If (Text1.Text <> "") Then length = Len(Text1.Text) i = 0 gap = 1 Do Until i = length c = (Asc(Right(Text1.Text, (i + 1))))
  • 36. If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then If (gap = 1 Or gap = 2) Then check = 1 Else check = 0 End If Else check = 0 Exit Do End If If (c = 32) Then gap = Val(gap) + 1 End If i = i + 1 Loop If (check = 0) Then Command4.Enabled = False Else Command4.Enabled = True End If Else Command4.Enabled = False End If End Sub Private Sub Text1_LostFocus() If (Text1.Text <> "") Then length = Len(Text1.Text) i = 0
  • 37. gap = 1 Do Until i = length c = (Asc(Right(Text1.Text, (i + 1)))) If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then If (gap = 1 Or gap = 2) Then check = 1 Else check = 0 End If Else check = 0 Exit Do End If If (c = 32) Then gap = Val(gap) + 1 End If i = i + 1 Loop If (check = 0) Then MsgBox ("Please Enter Only Characters") Text1.SetFocus Command4.Enabled = False Else If (Text2.Text <> "") Then Command4.Enabled = True Else Command4.Enabled = False End If End If
  • 38. Else If (Text2.Text = "") Then Command4.Enabled = False Else Command4.Enabled = False End If End If End Sub Private Sub Text1_GotFocus() Command4.Enabled = False End Sub Private Sub Text2_GotFocus() Command4.Enabled = False End Sub Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer) If (Text2.Text <> "") Then length = Len(Text2.Text) i = 0 gap = 1 Do Until i = length c = (Asc(Right(Text2.Text, (i + 1)))) If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then If (gap = 1 Or gap = 2) Then check = 1 Else check = 0 End If
  • 39. Else check = 0 Exit Do End If If (c = 32) Then gap = Val(gap) + 1 End If i = i + 1 Loop If (check = 0) Then Command4.Enabled = False Else Command4.Enabled = True End If Else Command4.Enabled = False End If End Sub Private Sub Text2_LostFocus() If (Text2.Text <> "") Then length = Len(Text2.Text) i = 0 gap = 1 Do Until i = length c = (Asc(Right(Text2.Text, (i + 1)))) If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then If (gap = 1 Or gap = 2) Then check = 1
  • 40. Else check = 0 End If Else check = 0 Exit Do End If If (c = 32) Then gap = Val(gap) + 1 End If i = i + 1 Loop If (check = 0) Then MsgBox ("Please Enter Only Characters") Text2.SetFocus Command4.Enabled = False Else If (Text1.Text <> "") Then Command4.Enabled = True Else Command4.Enabled = False End If End If Else Command4.Enabled = False End If End Sub
  • 41. Add Employee:- Private Sub Command1_Click() Text2.Enabled = True Text1.Enabled = True Command3.Enabled = True Call connect With eidpass If (Label20.Caption = "" And Text2.Text = "" And Label4.Caption = "") Then Label20.Caption = "" Text2.Text = "" Label4.Caption = "" m = 0 If .RecordCount = 0 Then m = 1 Else
  • 42. .MoveFirst Do Until .EOF If .Fields(3).Value > m Then m = .Fields(3).Value End If .MoveNext Loop m = m + 1 End If emid = "EMid" & Format(m, "0000") Label20.Caption = emid End If End With End Sub Private Sub Command2_Click() Unload Me Main_Interface.Show Main_Interface.Enabled = True Main_Interface.Frame1.Visible = True Main_Interface.Frame1.Enabled = True End Sub Private Sub Command3_Click() Label20.Caption = "" Text2.Text = "" Text1.Text = "" Label4.Caption = ""
  • 43. End Sub Private Sub Command4_Click() If (Text2.Text = "") Then MsgBox ("Enter the name Plzzzz..") End If Call connect With eidpass If (Label20.Caption <> "" And Text2.Text <> "" And Label4.Caption = "") Then apass = 1111 m = 0 If .RecordCount = 0 Then m = 1 apass = 1111 Else .MoveFirst Do Until .EOF If .Fields(3).Value > m Then m = .Fields(3).Value apass = apass + 11 End If .MoveNext Loop m = m + 1 End If .AddNew .Fields(0) = Label20.Caption .Fields(1) = StrConv(Text2.Text, vbProperCase)
  • 44. .Fields(2) = apass .Fields(3) = m .Fields(4) = 0 .Update Label4.Caption = apass With tbemp .Close .Open "alter table Today_best add " & Text2.Text & " " & "number", con, adOpenDynamic, adLockOptimistic End With With bmemp .AddNew .Fields(0) = Label20.Caption .Fields(1) = StrConv(Text2.Text, vbProperCase) .Fields(2) = 0 .Fields(3) = 0 .Fields(4) = 0 .Fields(5) = 0 .Fields(6) = 0 .Fields(7) = 0 .Fields(8) = 0 .Fields(9) = 0 .Fields(10) = 0 .Fields(11) = 0 .Fields(12) = 0 .Fields(13) = 0 .Update
  • 45. End With End If End With End Sub Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) If (Text1.Text <> "") Then length = Len(Text1.Text) i = 0 gap = 1 Do Until i = length c = (Asc(Right(Text1.Text, (i + 1)))) If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then If (gap = 1 Or gap = 2) Then check = 1 Else check = 0 End If Else check = 0 Exit Do End If If (c = 32) Then gap = Val(gap) + 1 End If i = i + 1 Loop If (check = 0) Then Command4.Enabled = False
  • 46. Else Command4.Enabled = True End If Else Command4.Enabled = False End If End Sub Private Sub Text1_LostFocus() If (Text1.Text <> "") Then length = Len(Text1.Text) i = 0 gap = 1 Do Until i = length c = (Asc(Right(Text1.Text, (i + 1)))) If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then If (gap = 1 Or gap = 2) Then check = 1 Else check = 0 End If Else check = 0 Exit Do End If If (c = 32) Then gap = Val(gap) + 1 End If i = i + 1
  • 47. Loop If (check = 0) Then MsgBox ("Please Enter Only Characters") Text1.SetFocus Command4.Enabled = False Else If (Text2.Text <> "") Then Command4.Enabled = True Else Command4.Enabled = False End If End If Else Command4.Enabled = False End If End Sub Private Sub Text1_GotFocus() Command4.Enabled = False End Sub Private Sub Text2_GotFocus() Command4.Enabled = False End Sub Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer) If (Text2.Text <> "") Then length = Len(Text2.Text) i = 0 gap = 1 Do Until i = length
  • 48. c = (Asc(Right(Text2.Text, (i + 1)))) If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then If (gap = 1 Or gap = 2) Then check = 1 Else check = 0 End If Else check = 0 Exit Do End If If (c = 32) Then gap = Val(gap) + 1 End If i = i + 1 Loop If (check = 0) Then Command4.Enabled = False Else Command4.Enabled = True End If Else Command4.Enabled = False End If End Sub Private Sub Text2_LostFocus() If (Text2.Text <> "") Then length = Len(Text2.Text)
  • 49. i = 0 gap = 1 Do Until i = length c = (Asc(Right(Text2.Text, (i + 1)))) If ((c >= 97 And c <= 122) Or (c >= 65 And c <= 90) Or (c = 32)) Then If (gap = 1 Or gap = 2) Then check = 1 Else check = 0 End If Else check = 0 Exit Do End If If (c = 32) Then gap = Val(gap) + 1 End If i = i + 1 Loop If (check = 0) Then MsgBox ("Please Enter Only Characters") Text2.SetFocus Command4.Enabled = False Else If (Text1.Text <> "") Then Command4.Enabled = True Else Command4.Enabled = False End If
  • 50. End If Else Command4.Enabled = False End If End Sub Blank:- Private Sub Form_Load() Blank.BackColor = RGB(246, 6, 9) Blank.Top = Blank.Height / 2.2 - Blank.Height / 3 Blank.Left = Blank.Width / 3 - Blank.Width / 3 End Sub Burger:- Private Sub Command1_Click() Call Burgerdesc Image5.Visible = False Frame1.Visible = True
  • 51. Text1.SetFocus Label1.Caption = Command1.Caption End Sub Private Sub Command2_Click() Call Burgerdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command2.Caption End Sub Private Sub Command3_Click() Call Burgerdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command3.Caption End Sub Private Sub Command4_Click() Call Burgerdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command4.Caption End Sub Private Sub Command5_Click()
  • 52. If Label7.Caption = "" And Text1.Text = "" Then MsgBox ("Select The Order"), vbCritical ElseIf Label7.Caption = "" Then MsgBox ("Select the Size"), vbCritical ElseIf Text1.Text = "" Then MsgBox ("Enter the Quantity"), vbCritical Else lab = Burger.Label1.Caption pri = Val(Burger.Label7.Caption) quan = Val(Burger.Text1.Text) Set l = Order_Now.ListView1.ListItems.Add(, , lab) l.SubItems(1) = pri l.SubItems(2) = quan vat = (pri * quan * 20) / 100 l.SubItems(3) = vat cal = pri * quan + vat l.SubItems(4) = cal total = 0 Call Burgerdesc For i = 1 To Order_Now.ListView1.ListItems.Count total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4)) Next Order_Now.Label4.Caption = total End If End Sub Private Sub Command6_Click()
  • 53. Call Burgerdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command6.Caption End Sub Private Sub Command7_Click() Call Burgerdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command7.Caption End Sub Private Sub Command8_Click() Call Burgerdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command8.Caption End Sub Private Sub Command9_Click() Call Burgerdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command9.Caption End Sub
  • 54. Private Sub Command10_Click() Order_Now.Show: Order_Now.Enabled = True End Sub Private Sub Command11_Click() Call check1 End Sub Private Sub Form_Activate() Order_Now.Enabled = False End Sub Private Sub Form_Deactivate() Order_Now.Enabled = True End Sub Private Sub Form_Load() Burger.BackColor = RGB(246, 6, 9) Burger.Top = Burger.Height / 2.2 - Burger.Height / 3 Burger.Left = Burger.Width / 3 - Burger.Width / 3 End Sub Private Sub Label8_Click() Order_Now.Show Order_Now.Enabled = True End Sub
  • 55. Private Sub Option1_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(3).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Option2_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(4).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Option3_Click() Call connect With all
  • 56. Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(5).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) If (Text1.Text = "") Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text1.Text = "" End If End If End Sub
  • 57. Chicken:- Private Sub Command1_Click() Call Chickendesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command1.Caption End Sub Private Sub Command2_Click() Call Chickendesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command2.Caption End Sub Private Sub Command3_Click()
  • 58. Call Chickendesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command3.Caption End Sub Private Sub Command4_Click() Call Chickendesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command4.Caption End Sub Private Sub Command5_Click() If Label7.Caption = "" And Text1.Text = "" Then MsgBox ("Select The Order"), vbCritical ElseIf Label7.Caption = "" Then MsgBox ("Select the Size"), vbCritical ElseIf Text1.Text = "" Then MsgBox ("Enter the Quantity"), vbCritical Else lab = Chicken.Label1.Caption pri = Val(Chicken.Label7.Caption) quan = Val(Chicken.Text1.Text) Set l = Order_Now.ListView1.ListItems.Add(, , lab) l.SubItems(1) = pri l.SubItems(2) = quan
  • 59. vat = (pri * quan * 20) / 100 l.SubItems(3) = vat cal = pri * quan + vat l.SubItems(4) = cal Call Chickendesc total = 0 For i = 1 To Order_Now.ListView1.ListItems.Count total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4)) Next Order_Now.Label4.Caption = total End If End Sub Private Sub Command6_Click() Call Chickendesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command6.Caption End Sub Private Sub Command7_Click() Call Chickendesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command7.Caption End Sub
  • 60. Private Sub Command8_Click() Call Chickendesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command8.Caption End Sub Private Sub Command9_Click() Call Chickendesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command9.Caption End Sub Private Sub Form_Load() Chicken.BackColor = RGB(240, 6, 9) Chicken.Top = Chicken.Height / 2.2 - Chicken.Height / 3 Chicken.Left = Chicken.Width / 3 - Chicken.Width / 3 End Sub Private Sub Form_Activate() Order_Now.Enabled = False End Sub Private Sub Form_Deactivate() Order_Now.Enabled = True End Sub Private Sub Command10_Click()
  • 61. Order_Now.Show: Order_Now.Enabled = True End Sub Private Sub Command11_Click() Call check1 End Sub Private Sub Form_LostFocus() Unload Me End Sub Private Sub Label8_Click() Order_Now.Show Order_Now.Enabled = True End Sub Private Sub Option1_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(3).Value Label7.Caption = price End If .MoveNext Loop End With
  • 62. End Sub Private Sub Option2_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(4).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Option3_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(5).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
  • 63. If (Text1.Text = "") Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text1.Text = "" End If End If End Sub Chocolate:- Private Sub Command1_Click()
  • 64. Call Chocolatedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command1.Caption End Sub Private Sub Command2_Click() Call Chocolatedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command2.Caption End Sub Private Sub Command3_Click() Call Chocolatedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command3.Caption End Sub Private Sub Command4_Click() Call Chocolatedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command4.Caption
  • 65. End Sub Private Sub Command5_Click() If Label7.Caption = "" And Text1.Text = "" Then MsgBox ("Select The Order"), vbCritical ElseIf Label7.Caption = "" Then MsgBox ("Select the Size"), vbCritical ElseIf Text1.Text = "" Then MsgBox ("Enter the Quantity"), vbCritical Else lab = Chocolate.Label1.Caption pri = Val(Chocolate.Label7.Caption) quan = Val(Chocolate.Text1.Text) Set l = Order_Now.ListView1.ListItems.Add(, , lab) l.SubItems(1) = pri l.SubItems(2) = quan vat = (pri * quan * 20) / 100 l.SubItems(3) = vat cal = pri * quan + vat l.SubItems(4) = cal Call Chocolatedesc total = 0 For i = 1 To Order_Now.ListView1.ListItems.Count total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4)) Next Order_Now.Label4.Caption = total End If End Sub
  • 66. Private Sub Command6_Click() Call Chocolatedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command6.Caption End Sub Private Sub Command7_Click() Call Chocolatedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command7.Caption End Sub Private Sub Command8_Click() Call Chocolatedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command8.Caption End Sub Private Sub Command9_Click() Call Chocolatedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command9.Caption End Sub
  • 67. Private Sub Form_Load() Chocolate.BackColor = RGB(240, 6, 9) Chocolate.Top = Chocolate.Height / 2.2 - Chocolate.Height / 3 Chocolate.Left = Chocolate.Width / 3 - Chocolate.Width / 3 End Sub Private Sub Form_Activate() Order_Now.Enabled = False End Sub Private Sub Form_Deactivate() Order_Now.Enabled = True End Sub Private Sub Command10_Click() Order_Now.Show: Order_Now.Enabled = True End Sub Private Sub Command11_Click() Call check1 End Sub Private Sub Form_LostFocus() Unload Me End Sub Private Sub Label8_Click() Order_Now.Show
  • 68. Order_Now.Enabled = True End Sub Private Sub Option1_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(3).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Option2_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(4).Value Label7.Caption = price End If .MoveNext Loop End With End Sub
  • 69. Private Sub Option3_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(5).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) If (Text1.Text = "") Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text1.Text = "" End If End If End Sub
  • 70. Coffee:- Private Sub Command1_Click() Call Coffeedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command1.Caption End Sub Private Sub Command2_Click() Call Coffeedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command2.Caption End Sub Private Sub Command3_Click()
  • 71. Call Coffeedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command3.Caption End Sub Private Sub Command4_Click() Call Coffeedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command4.Caption End Sub Private Sub Command5_Click() If Label7.Caption = "" And Text1.Text = "" Then MsgBox ("Select The Order"), vbCritical ElseIf Label7.Caption = "" Then MsgBox ("Select the Size"), vbCritical ElseIf Text1.Text = "" Then MsgBox ("Enter the Quantity"), vbCritical Else lab = Coffee.Label1.Caption pri = Val(Coffee.Label7.Caption) quan = Val(Coffee.Text1.Text) Set l = Order_Now.ListView1.ListItems.Add(, , lab) l.SubItems(1) = pri l.SubItems(2) = quan
  • 72. vat = (pri * quan * 20) / 100 l.SubItems(3) = vat cal = pri * quan + vat l.SubItems(4) = cal Call Coffeedesc total = 0 For i = 1 To Order_Now.ListView1.ListItems.Count total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4)) Next Order_Now.Label4.Caption = total End If End Sub Private Sub Command6_Click() Call Coffeedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command6.Caption End Sub Private Sub Command7_Click() Call Coffeedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command7.Caption End Sub Private Sub Command8_Click()
  • 73. Call Coffeedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command8.Caption End Sub Private Sub Command9_Click() Call Coffeedesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command9.Caption End Sub Private Sub Form_Load() Coffee.BackColor = RGB(240, 6, 9) Coffee.Top = Coffee.Height / 2.2 - Coffee.Height / 3 Coffee.Left = Coffee.Width / 3 - Coffee.Width / 3 End Sub Private Sub Form_Activate() Order_Now.Enabled = False End Sub Private Sub Form_Deactivate() Order_Now.Enabled = True End Sub Private Sub Command10_Click() Order_Now.Show: Order_Now.Enabled = True
  • 74. End Sub Private Sub Command11_Click() Call check1 End Sub Private Sub Label8_Click() Order_Now.Show Order_Now.Enabled = True End Sub Private Sub Option1_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(3).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Option2_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then
  • 75. price = .Fields(4).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Option3_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(5).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) If (Text1.Text = "") Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
  • 76. Else MsgBox ("Not Allowed") Text1.Text = "" End If End If End Sub Combo:- Private Sub Command1_Click() Call Combodesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command1.Caption End Sub
  • 77. Private Sub Command2_Click() Call Combodesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command2.Caption End Sub Private Sub Command3_Click() Call Combodesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command3.Caption End Sub Private Sub Command4_Click() Call Combodesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command4.Caption End Sub Private Sub Command5_Click() If Label7.Caption = "" And Text1.Text = "" Then MsgBox ("Select The Order"), vbCritical ElseIf Label7.Caption = "" Then MsgBox ("Select the Size"), vbCritical ElseIf Text1.Text = "" Then MsgBox ("Enter the Quantity"), vbCritical Else
  • 78. lab = Combo.Label1.Caption pri = Val(Combo.Label7.Caption) quan = Val(Combo.Text1.Text) Set l = Order_Now.ListView1.ListItems.Add(, , lab) l.SubItems(1) = pri l.SubItems(2) = quan vat = (pri * quan * 20) / 100 l.SubItems(3) = vat cal = pri * quan + vat l.SubItems(4) = cal Call Combodesc For i = 1 To Order_Now.ListView1.ListItems.Count total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4)) Next Order_Now.Label4.Caption = total End If End Sub Private Sub Command6_Click() Call Combodesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command6.Caption End Sub Private Sub Command7_Click() Call Combodesc Image5.Visible = False Frame1.Visible = True
  • 79. Label1.Caption = Command7.Caption End Sub Private Sub Command8_Click() Call Combodesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command8.Caption End Sub Private Sub Command9_Click() Call Combodesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command9.Caption End Sub Private Sub Form_Load() Combo.BackColor = RGB(240, 6, 9) Combo.Top = Combo.Height / 2.2 - Combo.Height / 3 Combo.Left = Combo.Width / 3 - Combo.Width / 3 End Sub Private Sub Form_Activate() Order_Now.Enabled = False End Sub Private Sub Form_Deactivate() Order_Now.Enabled = True End Sub Private Sub Command10_Click()
  • 80. Order_Now.Show: Order_Now.Enabled = True End Sub Private Sub Command11_Click() Call check1 End Sub Private Sub Label8_Click() Order_Now.Show Order_Now.Enabled = True End Sub Private Sub Option1_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(3).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Option2_Click() Call connect With all Do Until .EOF
  • 81. If (Label1.Caption = .Fields(2).Value) Then price = .Fields(4).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Option3_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(5).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) If (Text1.Text = "") Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
  • 82. Else MsgBox ("Not Allowed") Text1.Text = "" End If End If End Sub Customer_info:-
  • 83. Private Sub Command1_Click() Main_Interface.Enabled = True Unload Me End Sub Private Sub Command16_Click() Unload Me Main_Interface.Show Main_Interface.Enabled = True End Sub Private Sub Command17_Click() Call connect If (Text1.Text <> "" And Text2.Text <> "") Then With ju check = 0 Do Until .EOF If .Fields(7).Value = Text1.Text And .Fields(6).Value = Text2.Text Then
  • 84. check = 1 Exit Do Else check = 0 End If .MoveNext Loop If check = 1 Then Frame3.Visible = False Frame1.Visible = True Command1.SetFocus Label2.Caption = .Fields(0) Label8.Caption = .Fields(1) Label10.Caption = .Fields(2) Label11.Caption = .Fields(3) Label12.Caption = .Fields(8) Label13.Caption = .Fields(4) Else MsgBox ("Wrong Id or Password::Try again"), vbCritical, ("Mcdonald's") Text1.Text = "" Text2.Text = "" Text2.SetFocus End If End With Else MsgBox ("Fill the Details Correctly"), vbCritical, ("Mcdonald's") Text2.SetFocus End If
  • 85. End Sub Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) If (Text1.Text = "") Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 8 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text1.Text = "" End If End If End Sub Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer) If Text2.Text = "" Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or (KeyCode >= 60 And KeyCode <= 90) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text2.Text = "" End If End If
  • 86. End Sub Delete_Admin:- Private Sub Combo1_Click() Combo1.Refresh Text2.Enabled = True End Sub Private Sub Command1_Click() Text2.Text = "" Label4.Caption = "" Command3.Enabled = False Command4.Enabled = False Command1.Enabled = False Combo1.Text = "Select plz" End Sub Private Sub Command2_Click()
  • 87. Unload Me Main_Interface.Show Main_Interface.Enabled = True Main_Interface.Frame1.Visible = True Main_Interface.Frame1.Enabled = True End Sub Private Sub Command3_Click() Text2.Text = "" Label4.Caption = "" Command4.Enabled = False Command1.Enabled = False Command3.Enabled = False Combo1.Text = "Select plz" End Sub Private Sub Command4_Click() check = MsgBox("Are You Sure to want to DELETE the Entry", vbYesNoCancel, "Choose the Correct...") If (check = 6) Then With tmidpass .MoveFirst check = 0 i = 0 If (Combo1.Text <> "" And Text2.Text <> "" And Label4.Caption <> "") Then Do Until .EOF If (.Fields(0).Value = Combo1.Text And .Fields(2).Value = Text2.Text And .Fields(1) = Label4.Caption) Then check = 1 cout = i
  • 88. i = i + 1 Exit Do Else check = 0 i = i + 1 End If .MoveNext Loop If (check = 1) Then .Delete adAffectCurrent Combo1.RemoveItem (cout) Combo1.Text = "Select plz" Text2.Text = "" Label4.Caption = "" Command3.Enabled = False Command4.Enabled = False Else End If End If End With Else If (check = 7) Then Else End If End If End Sub
  • 89. Private Sub Form_Load() Call connect With tmidpass Do Until .EOF Data = .Fields(0).Value Combo1.AddItem (Data) .MoveNext Loop End With Combo1.Text = "Select plz" End Sub Private Sub Text2_LostFocus() Call connect With tmidpass If (Combo1.Text <> "" And Text2.Text <> "") Then check = 0 Do Until .EOF If (.Fields(0).Value = Combo1.Text And .Fields(2).Value = Text2.Text) Then check = 1 Exit Do Else check = 0 End If .MoveNext Loop
  • 90. If (check = 1) Then Label4.Caption = .Fields(1).Value Else Label4.Caption = "" MsgBox ("Please Enter Correct Id & Pass.") Combo1.SetFocus End If End If End With If (Combo1.Text <> "" And Text2.Text <> "" And Label4.Caption <> "") Then Command4.Enabled = True Command1.Enabled = True Command3.Enabled = True Else Command4.Enabled = False Command1.Enabled = False Command3.Enabled = False End If End Sub
  • 91. Delete_Employee:- Private Sub Combo1_Click() Combo1.Refresh Text2.Enabled = True End Sub Private Sub Command1_Click() Text2.Text = "" Label4.Caption = "" Command3.Enabled = False Command4.Enabled = False Command1.Enabled = False Combo1.Text = "Select plz" End Sub Private Sub Command2_Click() Unload Me Main_Interface.Show
  • 92. Main_Interface.Enabled = True Main_Interface.Frame1.Visible = True Main_Interface.Frame1.Enabled = True End Sub Private Sub Command3_Click() Text2.Text = "" Label4.Caption = "" Command4.Enabled = False Command1.Enabled = False Command3.Enabled = False Combo1.Text = "Select plz" End Sub Private Sub Command4_Click() Call connect check = MsgBox("Are You Sure to want to DELETE the Entry", vbYesNoCancel, "Choose the Correct...") If (check = 6) Then With eidpass .MoveFirst check = 0 i = 0 If (Combo1.Text <> "" And Text2.Text <> "" And Label4.Caption <> "") Then Do Until .EOF If (.Fields(0).Value = Combo1.Text And .Fields(2).Value = Text2.Text And .Fields(1) = Label4.Caption) Then check = 1 cout = i i = i + 1
  • 93. Exit Do Else check = 0 i = i + 1 End If .MoveNext Loop If (check = 1) Then With bmemp .MoveFirst Do Until .EOF If (Label4.Caption = .Fields(1).Value) Then .Delete adAffectCurrent Exit Do End If .MoveNext Loop End With With tbemp .Close .Open "alter table Today_Best drop " & eidpass.Fields(1).Value & " ", con, adOpenDynamic, adLockOptimistic End With .Delete adAffectCurrent Combo1.RemoveItem (cout) Combo1.Text = "Select plz" Text2.Text = "" Label4.Caption = ""
  • 94. Command3.Enabled = False Command4.Enabled = False Else End If End If End With Else If (check = 7) Then Else End If End If End Sub Private Sub Form_Load() Call connect With eidpass Do Until .EOF Data = .Fields(0).Value Combo1.AddItem (Data) .MoveNext Loop End With Combo1.Text = "Select plz" End Sub Private Sub Text2_LostFocus()
  • 95. Call connect With eidpass If (Combo1.Text <> "" And Text2.Text <> "") Then check = 0 Do Until .EOF If (.Fields(0).Value = Combo1.Text And .Fields(2).Value = Text2.Text) Then check = 1 Exit Do Else check = 0 End If .MoveNext Loop If (check = 1) Then Label4.Caption = .Fields(1).Value Else Label4.Caption = "" MsgBox ("Please Enter Correct Id & Pass.") Combo1.SetFocus End If End If End With If (Combo1.Text <> "" And Text2.Text <> "" And Label4.Caption <> "") Then Command4.Enabled = True Command1.Enabled = True Command3.Enabled = True
  • 96. Else Command4.Enabled = False Command1.Enabled = False Command3.Enabled = False End If End Sub Fries:- Private Sub Command1_Click() Call Friesdesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command1.Caption End Sub Private Sub Command2_Click() Call Friesdesc
  • 97. Image5.Visible = False Frame1.Visible = True Label1.Caption = Command2.Caption End Sub Private Sub Command3_Click() Call Friesdesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command3.Caption End Sub Private Sub Command4_Click() Call Friesdesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command4.Caption End Sub Private Sub Command5_Click() If Label7.Caption = "" And Text1.Text = "" Then MsgBox ("Select The Order"), vbCritical ElseIf Label7.Caption = "" Then MsgBox ("Select the Size"), vbCritical ElseIf Text1.Text = "" Then MsgBox ("Enter the Quantity"), vbCritical Else lab = Fries.Label1.Caption pri = Val(Fries.Label7.Caption)
  • 98. quan = Val(Fries.Text1.Text) Set l = Order_Now.ListView1.ListItems.Add(, , lab) l.SubItems(1) = pri l.SubItems(2) = quan vat = (pri * quan * 20) / 100 l.SubItems(3) = vat cal = pri * quan + vat l.SubItems(4) = cal Call Friesdesc total = 0 For i = 1 To Order_Now.ListView1.ListItems.Count total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4)) Next Order_Now.Label4.Caption = total End If End Sub Private Sub Command6_Click() Call Friesdesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command6.Caption End Sub Private Sub Command7_Click() Call Friesdesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command7.Caption
  • 99. End Sub Private Sub Command8_Click() Call Friesdesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command8.Caption End Sub Private Sub Command9_Click() Call Friesdesc Image5.Visible = False Frame1.Visible = True Label1.Caption = Command9.Caption End Sub Private Sub Form_Load() Fries.BackColor = RGB(240, 6, 9) Fries.Top = Fries.Height / 2.2 - Fries.Height / 3 Fries.Left = Fries.Width / 3 - Fries.Width / 3 End Sub Private Sub Form_Activate() Order_Now.Enabled = False End Sub Private Sub Form_Deactivate() Order_Now.Enabled = True End Sub Private Sub Command10_Click() Order_Now.Show: Order_Now.Enabled = True
  • 100. End Sub Private Sub Command11_Click() Call check1 End Sub Private Sub Label8_Click() Order_Now.Show Order_Now.Enabled = True End Sub Private Sub Option1_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(3).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Option2_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then
  • 101. price = .Fields(4).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Option3_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(5).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) If (Text1.Text = "") Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then
  • 102. Else MsgBox ("Not Allowed") Text1.Text = "" End If End If End Sub Icecream:- Private Sub Command1_Click() Call Icecreamdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command1.Caption End Sub Private Sub Command2_Click() Call Icecreamdesc
  • 103. Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command2.Caption End Sub Private Sub Command3_Click() Call Icecreamdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command3.Caption End Sub Private Sub Command4_Click() Call Icecreamdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command4.Caption End Sub Private Sub Command5_Click() If Label7.Caption = "" And Text1.Text = "" Then MsgBox ("Select The Order"), vbCritical ElseIf Label7.Caption = "" Then MsgBox ("Select the Size"), vbCritical ElseIf Text1.Text = "" Then MsgBox ("Enter the Quantity"), vbCritical
  • 104. Else lab = Icecream.Label1.Caption pri = Val(Icecream.Label7.Caption) quan = Val(Icecream.Text1.Text) Set l = Order_Now.ListView1.ListItems.Add(, , lab) l.SubItems(1) = pri l.SubItems(2) = quan vat = (pri * quan * 20) / 100 l.SubItems(3) = vat cal = pri * quan + vat l.SubItems(4) = cal Call Icecreamdesc total = 0 For i = 1 To Order_Now.ListView1.ListItems.Count total = total + Val(Order_Now.ListView1.ListItems.Item(i).SubItems(4)) Next Order_Now.Label4.Caption = total End If End Sub Private Sub Command6_Click() Call Icecreamdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command6.Caption End Sub Private Sub Command7_Click()
  • 105. Call Icecreamdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command7.Caption End Sub Private Sub Command8_Click() Call Icecreamdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command8.Caption End Sub Private Sub Command9_Click() Call Icecreamdesc Image5.Visible = False Frame1.Visible = True Text1.SetFocus Label1.Caption = Command9.Caption End Sub Private Sub Form_Load() Icecream.BackColor = RGB(240, 6, 9) Icecream.Top = Icecream.Height / 2.2 - Icecream.Height / 3 Icecream.Left = Icecream.Width / 3 - Icecream.Width / 3 End Sub Private Sub Form_Activate() Order_Now.Enabled = False End Sub
  • 106. Private Sub Form_Deactivate() Order_Now.Enabled = True End Sub Private Sub Command10_Click() Order_Now.Show: Order_Now.Enabled = True End Sub Private Sub Command11_Click() Call check1 End Sub Private Sub Label8_Click() Order_Now.Show Order_Now.Enabled = True End Sub Private Sub Option1_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(3).Value Label7.Caption = price End If .MoveNext Loop End With End Sub
  • 107. Private Sub Option2_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(4).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Option3_Click() Call connect With all Do Until .EOF If (Label1.Caption = .Fields(2).Value) Then price = .Fields(5).Value Label7.Caption = price End If .MoveNext Loop End With End Sub Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) If (Text1.Text = "") Then
  • 108. Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text1.Text = "" End If End If End Sub Join_us:-
  • 109. Already in Our List Update Pofile:-
  • 110. Dim cpass, cmcno Dim apass, amcno Dim check Dim num, k Dim a, m As Integer Private Sub Command1_Click() Call connect With ju If (Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" Or Text5.Text = "") Then MsgBox "please fill all entries" Else check = 0 .MoveFirst
  • 111. Do Until .EOF If Text3.Text = (.Fields(2).Value) Then check = 1 Exit Do Else check = 0 End If .MoveNext Loop If (check = 1) Then mgbox = MsgBox("Number is Already In Our List" & vbNewLine & "You Want to overwright the data ???", vbYesNoCancel) If (mgbox = 6) Then .Fields(0) = StrConv(Text1.Text, vbProperCase) .Fields(1) = StrConv(Text2.Text, vbProperCase) .Fields(2) = StrConv(Text3.Text, vbProperCase) .Fields(3) = StrConv(Text4.Text, vbProperCase) .Fields(4) = StrConv(Text6.Text, vbProperCase) .Fields(8) = StrConv(Text5.Text, vbProperCase) .Update Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = ""
  • 112. Else End If Else apass = 1001 m = 0 If .RecordCount = 0 Then m = 1 apass = 1001 Else .MoveFirst Do Until ju.EOF If .Fields(5).Value > m Then m = .Fields(5).Value apass = apass + 11 End If .MoveNext Loop m = m + 1 End If .AddNew amcno = "MCcn" & Format(m, "0000") .Fields(0) = StrConv(Text1.Text, vbProperCase) .Fields(1) = StrConv(Text2.Text, vbProperCase) .Fields(2) = StrConv(Text3.Text, vbProperCase) .Fields(3) = StrConv(Text4.Text, vbProperCase) .Fields(4) = StrConv(Text6.Text, vbProperCase)
  • 113. .Fields(5) = m .Fields(6) = amcno .Fields(7) = apass .Fields(8) = StrConv(Text5.Text, vbProperCase) .Update Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" Frame2.Visible = True Join_us.Label15.Caption = amcno Join_us.Label16.Caption = apass End If End If End With End Sub Private Sub Command2_Click() Main_Interface.Show Unload Me End Sub Private Sub Command3_Click() If (Text7.Text = "" Or Text8.Text = "") Then
  • 114. MsgBox ("Please Fill Both Entries") Else Call connect check = 0 With ju Do Until .EOF If ((.Fields(6).Value = Text7.Text) And (.Fields(7).Value = Text8.Text)) Then check = 1 Exit Do Else check = 0 End If .MoveNext Loop If (check = 1) Then Frame1.Visible = False Text1.Text = .Fields(0) Text2.Text = .Fields(1) Text3.Text = .Fields(2) Text4.Text = .Fields(3) Text5.Text = .Fields(8) Text6.Text = .Fields(4) Else Frame1.Visible = True MsgBox ("Enter Correct ID And Password") Text7.Text = ""
  • 115. Text8.Text = "" End If End With End If End Sub Private Sub Command4_Click() Frame1.Visible = False End Sub Private Sub Command5_Click() Frame2.Visible = False End Sub Private Sub Form_Load() Timer1.Enabled = True Frame1.Visible = False End Sub Private Sub Label10_Click() Frame1.Visible = True End Sub Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) If (Text1.Text = "") Then Else If KeyCode = 16 Or KeyCode = 32 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40 Or KeyCode = 35 Or KeyCode = 36 Or KeyCode = 8 Then
  • 116. ElseIf (Not ((KeyCode >= 65 And KeyCode <= 90)) Or ((KeyCode >= 97 And KeyCode <= 122))) Then str1 = Left(Text1.Text, Len(Text1.Text) - 1) Text1.Text = "" Text1.SelText = Right(str1, Len(str1)) Else End If End If End Sub Private Sub Text3_KeyUp(KeyCode As Integer, Shift As Integer) If (Text3.Text = "") Then k = 0 Else 'MsgBox (KeyCode) k = k + 1 If (k = 1) Then If (KeyCode = 105 Or KeyCode = 104 Or KeyCode = 103) Then Else MsgBox ("Enter a Valid Number") Text3.Text = "" End If End If If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed")
  • 117. Text3.Text = "" End If End If End Sub Private Sub Text5_KeyUp(KeyCode As Integer, Shift As Integer) If (Text5.Text = "") Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text5.Text = "" End If End If End Sub Private Sub Text5_LostFocus() If Text5.Text = "" Then ElseIf (Val(Text5.Text) < 5000) Then MsgBox ("Membership Amount is NOT < 5000") Text5.SetFocus End If End Sub Private Sub Text6_KeyUp(KeyCode As Integer, Shift As Integer) If (Text6.Text = "") Then
  • 118. Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 8 Or KeyCode = 35 _ Or KeyCode = 36 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text6.Text = "" End If End If End Sub Private Sub Text7_KeyUp(KeyCode As Integer, Shift As Integer) If Text7.Text = "" Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or (KeyCode >= 60 And KeyCode <= 90) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text7.Text = "" End If End If End Sub Private Sub Text8_KeyUp(KeyCode As Integer, Shift As Integer) If (Text8.Text = "") Then Else
  • 119. If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 8 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text8.Text = "" End If End If End Sub Private Sub Timer1_Timer() If a = 0 Then Label8.Caption = " " Label8.Caption = "I" a = 1 ElseIf a = 1 Then Label8.Caption = " " Label8.Caption = "I m" a = 2 ElseIf a = 2 Then Label8.Caption = " " Label8.Caption = "I m l" a = 3 ElseIf a = 3 Then Label8.Caption = " " Label8.Caption = "I m lo" a = 4 ElseIf a = 4 Then
  • 120. Label8.Caption = " " Label8.Caption = "I m lov" a = 5 ElseIf a = 5 Then Label8.Caption = " " Label8.Caption = "I m lovi" a = 6 ElseIf a = 6 Then Label8.Caption = " " Label8.Caption = "I m lovin" a = 7 ElseIf a = 7 Then Label8.Caption = " " Label8.Caption = "I m lovin i" a = 8 ElseIf a = 8 Then Label8.Caption = " " Label8.Caption = "I m lovin it" a = 9 ElseIf a = 9 Then Label8.Caption = " " Label8.Caption = " " a = 0 End If End Sub
  • 121. Modify:- Private Sub Command20_Click() Label30.Caption = Val(Text3.Text) * Val(Label1.Caption) vat = Val(Label30.Caption) * 20 / 100 Order_Now.ListView1.ListItems.Item(i).Text = Label22.Caption Order_Now.ListView1.ListItems.Item(i).SubItems(1) = Label1.Caption Order_Now.ListView1.ListItems.Item(i).SubItems(2) = Text3.Text Order_Now.ListView1.ListItems.Item(i).SubItems(3) = vat Order_Now.ListView1.ListItems.Item(i).SubItems(4) = (Val(Label30.Caption) + vat) End Sub Private Sub Command21_Click() Order_Now.Show Order_Now.Enabled = True
  • 122. Unload Me Unload Burger Unload Chicken Unload Coffee Unload Combo Unload Chocolate Unload Fries Unload Icecream Unload Salad Unload Shakes End Sub Private Sub Command22_Click() Label1.Caption = "" Label22.Caption = "" Label30.Caption = "" Text3.Text = "" Option1.Value = False Option2.Value = False Option3.Value = False End Sub Private Sub Form_Activate() Order_Now.Enabled = False End Sub Private Sub Command23_Click() Order_Now.ListView1.ListItems.Remove (i) i = i - 1 End Sub
  • 123. Private Sub Command24_Click() i = Order_Now.ListView1.ListItems.Count Label22.Caption = Order_Now.ListView1.ListItems.Item(i).Text Text3.Text = (Order_Now.ListView1.ListItems.Item(i).SubItems(2)) Label1.Caption = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) total = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) * (Order_Now.ListView1.ListItems.Item(i).SubItems(2)) Option1.Value = False Option2.Value = False Option3.Value = False Label30.Caption = total price = (Val(Label30.Caption) / Val(Text3.Text)) Call connect With all Do Until .EOF If (Label22.Caption = (.Fields(2).Value)) Then If (price = Val(.Fields(3).Value)) Then Option1.Value = True Option2.Value = False Option3.Value = False Else If (price = Val(.Fields(4).Value)) Then Option2.Value = True Option1.Value = False Option3.Value = False Else
  • 124. If (price = Val(.Fields(5).Value)) Then Option3.Value = True Option1.Value = False Option2.Value = False End If End If End If End If .MoveNext Loop End With End Sub Private Sub Command25_Click() i = 1 Label22.Caption = Order_Now.ListView1.ListItems.Item(i).Text Text3.Text = (Order_Now.ListView1.ListItems.Item(i).SubItems(2)) Label1.Caption = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) total = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) * (Order_Now.ListView1.ListItems.Item(i).SubItems(2)) Option1.Value = False Option2.Value = False Option3.Value = False Label30.Caption = total price = (Val(Label30.Caption) / Val(Text3.Text)) Call connect With all Do Until .EOF If (Label22.Caption = .Fields(2).Value) Then
  • 125. If (price = Val(.Fields(3).Value)) Then Option1.Value = True Option2.Value = False Option3.Value = False Else If (price = Val(.Fields(4).Value)) Then Option2.Value = True Option1.Value = False Option3.Value = False Else If (price = Val(.Fields(5).Value)) Then Option3.Value = True Option1.Value = False Option2.Value = False End If End If End If End If .MoveNext Loop End With End Sub Private Sub Form_Deactivate() Order_Now.Enabled = True End Sub
  • 126. Private Sub Form_Load() Modify.BackColor = RGB(240, 6, 9) Modify.Top = Modify.Height / 2.2 - Modify.Height / 3 Modify.Left = Modify.Width / 3 - Modify.Width / 3 i = 1 Label22.Caption = Order_Now.ListView1.ListItems.Item(i).Text Text3.Text = (Order_Now.ListView1.ListItems.Item(i).SubItems(2)) Label1.Caption = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) total = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) * (Order_Now.ListView1.ListItems.Item(i).SubItems(2)) Option1.Value = False Option2.Value = False Option3.Value = False Label30.Caption = total price = (Val(Label30.Caption) / Val(Text3.Text)) Call connect With all Do Until .EOF If (Label22.Caption = .Fields(2).Value) Then If (price = Val(.Fields(3).Value)) Then Option1.Value = True Option2.Value = False Option3.Value = False Else If (price = Val(.Fields(4).Value)) Then Option2.Value = True Option1.Value = False
  • 127. Option3.Value = False Else If (price = Val(.Fields(5).Value)) Then Option3.Value = True Option1.Value = False Option2.Value = False End If End If End If End If .MoveNext Loop End With End Sub Private Sub Command1_Click() If (i = Order_Now.ListView1.ListItems.Count) Then i = 0 End If i = i + 1 Label22.Caption = Order_Now.ListView1.ListItems.Item(i).Text Text3.Text = (Order_Now.ListView1.ListItems.Item(i).SubItems(2)) Label1.Caption = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) total = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) * (Order_Now.ListView1.ListItems.Item(i).SubItems(2)) Option1.Value = False Option2.Value = False
  • 128. Option3.Value = False Label30.Caption = total price = (Val(Label30.Caption) / Val(Text3.Text)) Call connect With all Do Until .EOF If (Label22.Caption = .Fields(2).Value) Then If (price = Val(.Fields(3).Value)) Then Option1.Value = True Option2.Value = False Option3.Value = False Else If (price = Val(.Fields(4).Value)) Then Option2.Value = True Option1.Value = False Option3.Value = False Else If (price = Val(.Fields(5).Value)) Then Option3.Value = True Option1.Value = False Option2.Value = False End If End If End If End If .MoveNext Loop
  • 129. End With End Sub Private Sub Command2_Click() If (i = 1) Then i = (Order_Now.ListView1.ListItems.Count + 1) End If i = i - 1 Label22.Caption = Order_Now.ListView1.ListItems.Item(i).Text Text3.Text = (Order_Now.ListView1.ListItems.Item(i).SubItems(2)) Label1.Caption = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) total = (Order_Now.ListView1.ListItems.Item(i).SubItems(1)) * (Order_Now.ListView1.ListItems.Item(i).SubItems(2)) Label30.Caption = total Option1.Value = False Option2.Value = False Option3.Value = False price = (Val(Label30.Caption) / Val(Text3.Text)) Call connect With all Do Until .EOF If (Label22.Caption = .Fields(2).Value) Then If (price = Val(.Fields(3).Value)) Then Option1.Value = True Option2.Value = False Option3.Value = False Else If (price = Val(.Fields(4).Value)) Then
  • 130. Option2.Value = True Option1.Value = False Option3.Value = False Else If (price = Val(.Fields(5).Value)) Then Option3.Value = True Option1.Value = False Option2.Value = False End If End If End If End If .MoveNext Loop End With End Sub Private Sub Option1_Click() Call connect With all Do Until .EOF If (Label22.Caption = .Fields(2).Value) Then price = .Fields(3).Value Label1.Caption = price End If .MoveNext Loop total = (Val(Text3.Text) * Val(Label1.Caption))
  • 131. Label30.Caption = total End With End Sub Private Sub Option2_Click() Call connect With all Do Until .EOF If (Label22.Caption = .Fields(2).Value) Then price = .Fields(4).Value Label1.Caption = price End If .MoveNext Loop total = (Val(Text3.Text) * Val(Label1.Caption)) Label30.Caption = total End With End Sub Private Sub Option3_Click() Call connect With all Do Until .EOF If (Label22.Caption = .Fields(2).Value) Then price = .Fields(5).Value
  • 132. Label1.Caption = price End If .MoveNext Loop total = (Val(Text3.Text) * Val(Label1.Caption)) Label30.Caption = total End With End Sub Order_Now:- Dim check, k Private Sub Command10_Click() If ListView1.ListItems.Count = 0 Then MsgBox ("Please Select the order first"), vbCritical
  • 133. Else ListView1.Visible = False Frame2.Visible = True Text8.SetFocus Label4.Visible = False Label22.Visible = False Text7.Text = "" Text8.Text = "" Text3.Text = "" Text2.Text = "" Text1.Text = "" End If End Sub Private Sub Command11_Click() If ListView1.ListItems.Count = 0 Then MsgBox ("Please Select the order first"), vbCritical Else Modify.Show Modify.Text3.SetFocus End If End Sub Private Sub Command13_Click() check = 0 check = MsgBox("Are you sure you wanna logout?", vbYesNoCancel, "Choose the Correct...") If (check = 6) Then ListView1.ListItems.Clear
  • 134. ListView1.Visible = True Frame6.Visible = True Frame4.Visible = True Frame3.Visible = False Frame5.Visible = False Label4.Caption = "" Label5.Caption = "" Label6.Caption = "" Label4.Caption = "0" ListView1.Top = 0 total = 0 Label22.Visible = True Command15.Visible = True Command10.Visible = True Command11.Visible = True Label4.Visible = True Unload DataReport1 Unload Blank Login_Form.Show Else If (check = 7) Then End If End If End Sub Private Sub Command14_Click() Call connect
  • 135. If (Text7.Text = "" Or Text8.Text = "" Or Text3.Text = "") Then MsgBox ("Please Fill All Entries") Else cname = Text7.Text phone = Text8.Text With tempbill If (.RecordCount = 0) Then Else .MoveFirst Do Until .EOF .Delete .MoveNext Loop End If c = Val(ListView1.ListItems.Count) i = 1 c = c + 1 Do Until i = c .AddNew .Fields(0).Value = (ListView1.ListItems.Item(i).Text) .Fields(1).Value = ListView1.ListItems.Item(i).SubItems(1) .Fields(2).Value = ListView1.ListItems.Item(i).SubItems(2) .Fields(3).Value = ListView1.ListItems.Item(i).SubItems(3) .Fields(4).Value = ListView1.ListItems.Item(i).SubItems(4) i = i + 1 .Update Loop End With
  • 136. With pbill If .RecordCount = 0 Then mid = "MD-00010191110" With bmemp .MoveFirst Do Until .EOF .Fields(2) = 0 .Fields(3) = 0 .Fields(4) = 0 .Fields(5) = 0 .Fields(6) = 0 .Fields(7) = 0 .Fields(8) = 0 .Fields(9) = 0 .Fields(10) = 0 .Fields(11) = 0 .Fields(12) = 0 .Fields(13) = 0 .Update .MoveNext Loop End With With tmidpass If (.RecordCount = 0) Then Else .MoveFirst Do Until .EOF .Fields(4).Value = 0
  • 137. .Update .MoveNext Loop End If End With With eidpass If (.RecordCount = 0) Then Else .MoveFirst Do Until .EOF .Fields(4).Value = 0 .Update .MoveNext Loop End If End With Else .MoveFirst Do Until .EOF mid = .Fields(3).Value .MoveNext Loop End If End With mid = Val(Right(mid, 11)) + 1 gbill = "MD-" & Format(mid, "00000000000")
  • 138. Frame5.Top = 7680 Frame5.Left = 13740 Frame2.Visible = False Frame4.Visible = False Frame5.Visible = True Label22.Visible = False Label4.Visible = False Label5.Visible = True Label6.Visible = True Label8.Visible = True Label9.Visible = True Label10.Visible = True Label7.Visible = True Label14.Visible = True Label13.Visible = True Command19.Visible = True Command20.Visible = True Label13.Caption = "" Label18.Caption = "" Label8.Caption = "" Label9.Caption = "" Label6.Caption = Text7.Text Label5.Caption = Text8.Text ser = Val(Label4.Caption) * 4 / 100 total = Val(Label4.Caption) + ser ListView1.Visible = True Label8.Caption = ser Label9.Caption = total
  • 139. Label13.Caption = Label4.Caption 'MsgBox (gbill) j = 1 btime = Time With pbill Do Until j = c .AddNew .Fields(0).Value = Text7.Text .Fields(1).Value = Text8.Text .Fields(2).Value = Text3.Text 'MsgBox (gbill) .Fields(3).Value = gbill .Fields(4).Value = Date .Fields(5).Value = btime .Fields(6).Value = ListView1.ListItems.Item(j).Text .Fields(7).Value = ListView1.ListItems.Item(j).SubItems(1) .Fields(8).Value = ListView1.ListItems.Item(j).SubItems(2) .Fields(9).Value = ListView1.ListItems.Item(j).SubItems(3) .Fields(10).Value = ListView1.ListItems.Item(j).SubItems(4) .Fields(11).Value = 0 .Fields(12).Value = ser .Fields(13).Value = total .Fields(14).Value = Label16.Caption j = j + 1 .Update Loop End With
  • 140. Text7.Text = "" Text8.Text = "" Text3.Text = "" With tmidpass If (.RecordCount = 0) Then Else .MoveFirst Do Until .EOF If (Label16.Caption = .Fields(1).Value) Then .Fields(4).Value = (Val(.Fields(4).Value) + Order_Now.ListView1.ListItems.Count) .Update Exit Do End If .MoveNext Loop End If End With With eidpass If (.RecordCount = 0) Then Else .MoveFirst Do Until .EOF If (Label16.Caption = .Fields(1).Value) Then .Fields(4).Value = (Val(.Fields(4).Value) + Order_Now.ListView1.ListItems.Count) .Update Exit Do End If .MoveNext
  • 141. Loop End If End With With bmemp .MoveFirst Do Until .EOF If (Label16.Caption = .Fields(1).Value) Then k = Month(Date) k = k + 1 .Fields(k).Value = (Val(.Fields(k).Value) + Order_Now.ListView1.ListItems.Count) .Update Exit Do End If .MoveNext Loop .MoveFirst Do Until .EOF tot = 0 tot = (tot + Val(.Fields(2).Value) + Val(.Fields(3).Value) + Val(.Fields(4).Value) + Val(.Fields(5).Value) + Val(.Fields(6).Value) + Val(.Fields(7).Value) + Val(.Fields(8).Value) + Val(.Fields(9).Value) + Val(.Fields(10).Value) + Val(.Fields(11).Value) + Val(.Fields(12).Value) + Val(.Fields(13).Value)) .Fields(14).Value = tot .Update .MoveNext Loop End With With tbemp If (.RecordCount = 0) Then
  • 142. k = 0 'MsgBox (k) Else .MoveFirst k = 0 Do Until .EOF If (.Fields(0).Value = Date) Then 'MsgBox (k) k = 1 Exit Do Else k = 0 End If .MoveNext Loop End If 'MsgBox (k) If (k = 0) Then ' MsgBox (k) .AddNew .Fields(0) = Date .Update With eidpass If (.RecordCount = 0) Then Else .MoveFirst Do Until .EOF If (Order_Now.Label16.Caption = .Fields(1).Value) Then i = (Val(.Fields(3).Value))
  • 143. 'MsgBox ("i=" & i) If IsNull(tbemp.Fields(i)) Then tbemp.Fields(i) = 1 tbemp.Update 'MsgBox (i) 'MsgBox (tbemp.Fields(i)) Else 'MsgBox (i) 'MsgBox (tbemp.Fields(i)) tbemp.Fields(i) = (Val(tbemp.Fields(i)) + 1) tbemp.Update End If End If .MoveNext Loop End If End With Else With eidpass If (.RecordCount = 0) Then Else .MoveFirst Do Until .EOF If (Order_Now.Label16.Caption = .Fields(1).Value) Then i = (Val(.Fields(3).Value)) 'MsgBox ("i=" & i)
  • 144. tbemp.Fields(i) = (Val(.Fields(4).Value)) tbemp.Update End If .MoveNext Loop End If End With End If End With With tbemp .MoveFirst Do Until .EOF For i = 1 To eidpass.RecordCount If (IsNull(.Fields(i).Value)) Then .Fields(i).Value = 0 End If Next .MoveNext Loop End With End If End Sub Private Sub Command15_Click() Call check1 End Sub Private Sub Command16_Click()
  • 145. Frame3.Visible = False Frame2.Visible = True End Sub Private Sub Command17_Click() Call connect With ju Do Until .EOF If .Fields(7).Value = Text1.Text And .Fields(6).Value = Text2.Text Then check = 1 Label6.Visible = True Label5.Visible = True Label6.Caption = .Fields(0).Value Label5.Caption = .Fields(2).Value Exit Do Else check = 2 End If .MoveNext Loop If check = 1 Then phone = .Fields(2).Value cname = .Fields(0).Value dis = (Val(Order_Now.Label4.Caption) * 5 / 100) Label18.Caption = dis ser = (Val(Label4.Caption) - dis) * 20 / 100 total = (Val(Label4.Caption) - dis) + ser
  • 146. Label8.Caption = ser Label9.Caption = total Label26.Caption = .Fields(8).Value netamt = Val(Label26.Caption) - Val(Label9.Caption) With pbill Do Until .EOF If (gbill = .Fields(3).Value) Then .Fields(0).Value = cname .Fields(1).Value = phone .Fields(11).Value = dis .Fields(12).Value = ser .Fields(13).Value = total .Update End If .MoveNext Loop End With If (netamt < 0) Then Label24.Caption = (-(netamt)) Label29.Caption = 0 .Fields(8).Value = Val(Label29.Caption) .Update Else Label29.Caption = netamt Label24.Caption = 0 .Fields(8).Value = Val(Label29.Caption)
  • 147. .Update End If Frame3.Visible = False ListView1.Visible = True Frame2.Visible = False Frame5.Visible = True Frame4.Visible = False Frame5.Top = 7680 Frame5.Left = 13740 Command10.Visible = False Command11.Visible = False Label22.Visible = False Command15.Visible = False Command19.Visible = True Command20.Visible = True Label13.Caption = Label4.Caption Label4.Visible = False Label17.Visible = True Label23.Visible = True Label24.Visible = True Label28.Visible = True Label29.Visible = True Label26.Visible = True Label27.Visible = True Label18.Visible = True Label8.Visible = True Label9.Visible = True Label10.Visible = True Label7.Visible = True
  • 148. Label14.Visible = True Label13.Visible = True Text2.Text = "" Text1.Text = "" Else MsgBox ("Not a memeber") Text2.Text = "" Text1.Text = "" End If End With End Sub Private Sub Command18_Click() Frame2.Visible = False ListView1.Visible = True End Sub Private Sub Command19_Click() ListView1.ListItems.Clear ListView1.Visible = True Frame6.Visible = True Frame4.Visible = True Frame3.Visible = False Frame5.Visible = False Label4.Caption = "" Label5.Caption = "" Label6.Caption = ""
  • 149. Label4.Caption = "0" total = 0 ListView1.Top = 0 Label22.Visible = True Command15.Visible = True Command10.Visible = True Command11.Visible = True Label4.Visible = True Unload DataReport1 Unload Blank End Sub Private Sub Command20_Click() Blank.Width = 13005 Blank.Show Blank.Enabled = False Set DataReport1.DataSource = tempbill DataReport1.Sections(2).Controls("label6").Caption = cname DataReport1.Sections(2).Controls("label7").Caption = phone DataReport1.Sections(5).Controls("Label12").Caption = Round(Val(Label18.Caption)) DataReport1.Sections(5).Controls("Label19").Caption = Round(Val(Label8.Caption)) DataReport1.Sections(5).Controls("Label10").Caption = Round(Val(Label9.Caption)) DataReport1.Sections("Section1").Controls("text1").DataField = "pname" DataReport1.Sections("Section1").Controls("text2").DataField = "price" DataReport1.Sections("Section1").Controls("text3").DataField = "quantity" DataReport1.Sections("Section1").Controls("text4").DataField = "vat" DataReport1.Sections("Section1").Controls("text5").DataField = "amt" DataReport1.Sections(2).Controls("label15").Caption = gbill
  • 150. DataReport1.Sections(2).Controls("label16").Caption = Date DataReport1.Sections(2).Controls("label17").Caption = Time DataReport1.Refresh DataReport1.Show End Sub Private Sub Command21_Click() Frame7.Visible = False End Sub Private Sub Command22_Click() Label22.Caption = "" Label30.Caption = "" Text3.Text = "" Option1.Value = False Option2.Value = False Option3.Value = False End Sub Private Sub Command1_Click() Combo.Show Combo.Image5.Visible = True Combo.Frame1.Visible = False End Sub Private Sub Command2_Click() Salad.Show Salad.Image5.Visible = True Salad.Frame1.Visible = False
  • 151. End Sub Private Sub Command3_Click() Icecream.Show Icecream.Image5.Visible = True Icecream.Frame1.Visible = False End Sub Private Sub Command4_Click() Coffee.Show Coffee.Image5.Visible = True Coffee.Frame1.Visible = False End Sub Private Sub Command5_Click() Shakes.Show Shakes.Image5.Visible = True Shakes.Frame1.Visible = False End Sub Private Sub Command6_Click() Chicken.Show Chicken.Image5.Visible = True Chicken.Frame1.Visible = False End Sub Private Sub Command7_Click() Fries.Show Fries.Image5.Visible = True
  • 152. Fries.Frame1.Visible = False End Sub Private Sub Command8_Click() Burger.Show Burger.Image5.Visible = True Burger.Frame1.Visible = False End Sub Private Sub Command9_Click() Chocolate.Show Chocolate.Image5.Visible = True Chocolate.Frame1.Visible = False End Sub Private Sub Form_Load() Frame4.Top = 10035 Frame4.Left = 13680 Order_Now.BackColor = RGB(241, 6, 11) Label2.BackColor = RGB(241, 6, 11) End Sub Private Sub Label19_Click() Frame3.Visible = True Text2.SetFocus Frame3.Left = 13800 Frame3.Top = 3840 End Sub
  • 153. Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) If (Text1.Text = "") Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 8 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text1.Text = "" End If End If End Sub Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer) If Text2.Text = "" Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or (KeyCode >= 60 And KeyCode <= 90) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text2.Text = "" End If End If End Sub Private Sub Text3_KeyUp(KeyCode As Integer, Shift As Integer)
  • 154. 'MsgBox (KeyCode) If (Text3.Text = "") Then Else If ((KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 And KeyCode <= 105) Or KeyCode = 13 Or KeyCode = 35 Or _ KeyCode = 111 Or KeyCode = 191 Or KeyCode = 36 Or KeyCode = 32 Or KeyCode = 8 Or KeyCode = 16 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40) Then Else MsgBox ("Not Allowed") Text3.Text = "" End If End If End Sub Private Sub Text3_LostFocus() 'MsgBox TypeName(Text3.Text) If (Text3.Text = "") Then Else If (IsDate(Text3.Text)) Then If (CDate(Text3.Text) > Date) Then MsgBox ("Not Valid Date") Text3.Text = "" Text3.SetFocus End If Else MsgBox ("Please Input Proper Date") Text3.Text = "" Text3.SetFocus End If
  • 155. End If End Sub Private Sub Text7_KeyUp(KeyCode As Integer, Shift As Integer) If (Text7.Text = "") Then Else If KeyCode = 16 Or KeyCode = 32 Or KeyCode = 37 Or KeyCode = 38 Or KeyCode = 39 Or KeyCode = 40 Or KeyCode = 35 Or KeyCode = 36 Or KeyCode = 8 Then ElseIf (Not ((KeyCode >= 65 And KeyCode <= 90)) Or ((KeyCode >= 97 And KeyCode <= 122))) Then str1 = Left(Text7.Text, Len(Text7.Text) - 1) Text7.Text = "" Text7.SelText = Right(str1, Len(str1)) Else End If End If End Sub Private Sub Text8_KeyUp(KeyCode As Integer, Shift As Integer) If (Text8.Text = "") Then k = 0 Else k = k + 1 If (k = 1) Then If (KeyCode = 105 Or KeyCode = 104 Or KeyCode = 103 Or KeyCode = 55 Or KeyCode = 56 Or KeyCode = 57) Then Else MsgBox ("Enter a Valid Number") Text8.Text = ""