You are on page 1of 63

INTRODUCTION

We have already known much about the computer, that computer plays as
important role in any organization. Now days each an every field or organization needs a
systematic and quick accessing device,this works is done through computer.
For “RESTAURANT MANAGEMENT” this is the best way to do our work without any
damages.
The Restaurant Management System helps the restaurant manager to manage the
restaurant more effectively and efficiently by computerizing meal ordering, billing and
inventory control. This management system is designed for a Food Planet Restaurant.
The system processes transaction and stores the resulting data. Reports will be
generated from these data which help the manager to make appropriate business decisions
for the restaurant. For example, knowing the number of customers for a particular time
interval, the manager can decide whether more waiters and chefs are required.

The use of our project in restaurants will allowed to better management


of resources and helps us for faster transaction.
This software also provides varity of different techniques used for the benefit of
both the owner & the customer’s as well.
OBJECTIVE

1) To maintain the billing record.


2) To maintain the booking records.
3) To maintain customer’s records.
4) To maintain employees records.
5) To maintain the list of regular customers.
PRELIMINARY SYSTEM ANALYIS

iii ) FEASIBILITY STUDY

Many feasibility studies are disillusioning for both users and analysts. First the study
often presupposes that when the feasibility document being prepared, the analyst is in a
position to evaluate solutions. Second most studies tend to overlook the confusion inherent
in system development-the constraint & the assumed attitudes. If the feasibility study is to
serve as a decision document, it must answer three key questions:
1. Is there a new and better way to do the job that will benefit the user?
2. What are the costs and savings of the alternative(s)?
3. What is recommended?
The most successful system project are necessarily the biggest or most
visible in a business but rather those that truly meet user expectations than for any other
reason.

Feasibility Considerations

Three key considerations are involved in the feasibility analysis: economic,


technical, behavioral. Let’s briefly review each consideration and how it relates to the
systems effort.
Economic Feasibility

Economic analysis is the most frequently used method for evaluating the
effectiveness of a candidate system. More commonly known as cost benefit analysis, the
procedure is to determine the benefits and savings that are expected fro a candidate
system and compare them with costs. If benefits outweigh costs, then the decision is
made to design and implement the system. Otherwise, further justification or alterations
in the proposed system will have to be made if it is to have a chance of being approved.
This is an ongoing effort that improves in accuracy at each phase of the system life
cycle.

Technical Feasibility

Technical feasibility centers on the existing computer system hardware, software,


etc. and to what extent it can support the proposed addition. For example, if the current
computer is operating at 80 percent capacity-an arbitrary ceiling-then running another
application could overload the system or required additional hardware. This involves
financial considerations to accommodate technical enhancements. If the budget is a
serious constraint, then the project is judged not feasible.

Behavioral Feasibility

People are inherently resistant to change, and computers have been known to
facilitate change. An estimate should be made of how strong a reaction the user staff is
likely to have toward the development of a computerized system. It is common
knowledge that computer installations have something to do with turnover, transfers,
retraining and changes in employee job status. Therefore, it is understandable that the
introduction of candidate systems requires special effort to educate, sell, and train the
staff on new ways of conducting bsiness.
iv) NEED OF NEW SYSTEM

After the deep study of Restaurants, we reached to the conclusion that they needs a
supporting system having user friendly environment and fast processing to carry out their
business day to day transaction smoothly and securely. This system provides them the
important figure to make these statements such as annual sales & purchase of goods. Profit
& loss of the particular year, etc. the new system is required because of following reasons
1. To maintain the customer information records.
2. To maintain the billing information records.
3. To maintain the booking information records.
4. To maintain the employee’s records.
5. To maintain the customer paid information.
6. To maintain the service details information.
7. Make availability of reports for customer record.
8. Make availability of reports for billing record.
9. Make availability of reports for employee record.
10. For the facts processing of the data.
11. To maintain the data security.
12. To support the backup & restore functions.
v) FLAWS IN PRESENT SYSTEM

As we had done a deep study on the working of the restaurants. We come across many
problem which they were facing. Therefore need of completely new system arises to
overcome on the flaws. The problem of existing software are described as under:

1. The process of entering data are very slow.


2. Accounts are maintain in register.
3. Because of slow working the time consumption the purpose was very much.
4. It does not support all the queries.
5. Generating a report is very time consuming.
6. It was very costly process.
7. The workload on the part of the owner & employees was to its limit.
PROJECT CATEGORY

Desktop application
A computer built around a microprocessor for use by an individual, as in office or
at home or school.
Software deigned to control the hardware of a specific data-processing system in
order to allow user application program to make use of it.
Refers to application running in desktop (or laptop) computer in contrast to web-
based application over the internet.

Single User Application:


The complementary term, single user, is most commonly used when talking about
any system being usable only by one person at a time, or in reference to a single-user.
SOFTWARE AND HARDWARE RQUIREMENT SPECIFICATION

Language to be used:-

A FRONT END

Visual basic is programming language used to develop many sophisticated


and user friendly software application for Microsoft windows.
Visual basic provides
The graphical user interface(GUI), which enables the user to interact with an
application. It also provides the integrated development Environment(IDE). Which helps the
professionals to do programming very easily. It provides many CASE tools such as Testing
and Debugging, which are essential to develop business application in the rapidly growing
fields.

These features make it easier to comprehend thing in a quicker and easier way.
Features such as easier to comprehensive. Faster application development and many other
aspect such as introduction of the activex technology and internet features makes visual
basic and intresting tool to work with. Visual basic is also a event driven programming, it
means it work & executes the lines of code of VB statement when those events called
changing values of text boxes etc.
BACK END

A. MS- ACCESS

MS-Access is the database management system(DBMS) software provided by the


lading software company Microsoft along with it’s windows operating system i.e.

Windows 9x. a database structure. A relational database s the most widely used
database structure. Data is organized in related tables. Each table is made of rows called
records and columns called field. Each record contain fields of data above some specific
items.

A basic teature of database program is the capability to locate & displays just the
information you want from tables of data. Most database management program include a
programming control language for advance users to create sophisticated application. In
addition they allow direct communication to larger, more specialized mainframe database
through language like structure query language(SQL).
DETAILED SYSTEM ANALYSIS

DATA FLOW DIAGRAM

Billing/Employee/Customer/Booking information
User

Restaurant
Management

Result
Request for the Items
Bill generate

Restaurant Counter

Data base Updation


MODULES

1. Customer Information:

It contains the information about the customer.

2. Employee information:

It contains the information about the employee.

3. Variety of dishes information:

It contains the information about the price list of dishes.


SYSTEM CHART

Employee Modular Chart

Employee

ID Name Salary Address Ph.Number

Show First Last Next

Validation

Data Base
CUSTOMER MODULAR CHART

Customer

Cust ID Date Cust Address City Ph no Paid Bal

Add New Save

View View

Validation

Data Base
ENTITY RELATIONSHIP DIAGRAM

Emp- Emp
City Item Item
Add Emp name qty
no
Emp-
Item Item
Name
-ID rate

Emp Employee Stock


Dat
-id information information
e

Sr.n
dat
o
e

Customer Billing
Dat information
information
e
Cust Total
ph. no Bill
no.
Cust- Table Amt
Cust- ID No.
City Cust Item
Cust-
-Add Name name
SOURCE CODE

Public I As Integer
Private Sub cmdlogin_Click()
If Text1.Text = "samrat" And Text2.Text = "samrat" Then
Unload Me
Form2.Show
Else
MsgBox ("Wrong password,Please try again")
Text1.Text = ""
Text2.Text = ""
End If

End Sub

Private Sub Command2_Click()


Unload Me
End Sub

Private Sub Timer1_Timer()


Label1.ForeColor = QBColor(I)
I=I+1
If I = 16 Then
I=0
End If

End Sub

Private Sub Timer1_Timer()

ProgressBar1.Value = ProgressBar1.Value + 10
lblper.Caption = ProgressBar1.Value & "%"
If ProgressBar1.Value >= ProgressBar1.Max Then
ProgressBar1.Value = 100
Timer1.Enabled = False
MDIForm1.Show
Unload Me

End If
End Sub
Private Sub cboareaname_KeyPress(KeyAscii As Integer)
If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub Command1_Click()


If cboareaname.Text = "Area" Then
MsgBox "Please select the area"
End If
Adodc1.Recordset.MoveFirst
Do While Adodc1.Recordset.EOF = False
If Adodc1.Recordset.Fields(0) = cboareaname.Text Then
Text2.Text = Adodc1.Recordset.Fields(1)
Text3.Text = Adodc1.Recordset.Fields(2)
Text4.Text = Adodc1.Recordset.Fields(3)

End If
Adodc1.Recordset.MoveNext
Loop

End Sub
Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)

If KeyAscii >= 47 And KeyAscii <= 57 Then


KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub Text3_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub Text4_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub
Private Sub cmdf_Click()
Adodc1.Recordset.MoveFirst
txtitemno.Text = Adodc1.Recordset.Fields("Item_no")
txtitemname.Text = Adodc1.Recordset.Fields("Item_name")
txtqua.Text = Adodc1.Recordset.Fields("Quantity")
txtamu.Text = Adodc1.Recordset.Fields("Amount")

End Sub

Private Sub cmdp_Click()


Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF = True Then
Adodc1.Recordset.MoveFirst
End If
txtitemno.Text = Adodc1.Recordset.Fields("Item_no")
txtitemname.Text = Adodc1.Recordset.Fields("Item_name")
txtqua.Text = Adodc1.Recordset.Fields("Quantity")
txtamu.Text = Adodc1.Recordset.Fields("Amount")

End Sub

Private Sub cmdn_Click()


Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF = True Then
Adodc1.Recordset.MoveLast
End If
txtitemno.Text = Adodc1.Recordset.Fields("Item_no")
txtitemname.Text = Adodc1.Recordset.Fields("Item_name")
txtqua.Text = Adodc1.Recordset.Fields("Quantity")
txtamu.Text = Adodc1.Recordset.Fields("Amount")

End Sub

Private Sub cmdl_Click()


Adodc1.Recordset.MoveLast
txtitemno.Text = Adodc1.Recordset.Fields("Item_no")
txtitemname.Text = Adodc1.Recordset.Fields("Item_name")
txtqua.Text = Adodc1.Recordset.Fields("Quantity")
txtamu.Text = Adodc1.Recordset.Fields("Amount")

End Sub

Private Sub cmdshow_Click()


txtitemno.Text = Adodc1.Recordset.Fields("Item_no")
txtitemname.Text = Adodc1.Recordset.Fields("Item_name")
txtqua.Text = Adodc1.Recordset.Fields("Quantity")
txtamu.Text = Adodc1.Recordset.Fields("Amount")

End Sub

Private Sub cmdexit_Click()


Unload Me
End Sub

Private Sub txtamu_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub txtitemname_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub txtitemno_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub
Private Sub txtqua_KeyPress(KeyAscii As Integer)
If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub
Private Sub Command5_Click()
Unload Me
End Sub

Private Sub Command6_Click()


DataReport1.Show
End Sub
Private Sub Command1_Click()

DataReport2.Show
End Sub

Private Sub Command2_Click()


Unload Me
End Sub

Dim pp As Integer
Private Sub cboitem_Click()
Adodc1.Recordset.MoveFirst
Do While Adodc1.Recordset.EOF = False
If Adodc1.Recordset.Fields(1) = cboitem.Text Then
txtamount.Text = Adodc1.Recordset.Fields(3)
End If
Adodc1.Recordset.MoveNext
Loop
End Sub

Private Sub cboitem_GotFocus()


Do While Adodc1.Recordset.EOF = False
cboitem.AddItem Adodc1.Recordset.Fields("item_name")
Adodc1.Recordset.MoveNext
Loop
End Sub

Private Sub cboitem_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If

End Sub

Private Sub cmdcon_Click()


If txtbillno.Text = "" Then
MsgBox "please enter all record"
ElseIf txtcustid.Text = "" Then
MsgBox "please enter all record"
ElseIf cboitem.Text = "" Then
MsgBox "please enter all record"
ElseIf txtqua.Text = "" Then
MsgBox "please enter all record"
ElseIf txtamount.Text = "" Then
MsgBox "please enter all record"
ElseIf txttotal.Text = "" Then
MsgBox "please click on total"
If pp <> 11 Then
Adodc2.Recordset.AddNew
Adodc2.Recordset.Fields("Bill number") = txtbillno.Text
Adodc2.Recordset.Fields("Customer id") = txtcustid.Text
Adodc2.Recordset.Fields("Item name") = cboitem.Text
Adodc2.Recordset.Fields("Quntity") = txtqua.Text
Adodc2.Recordset.Fields("Amount") = txtamount.Text
Adodc2.Recordset.Fields("Date of bill") = txtdate.Text

Adodc2.Recordset.Update
If Not Adodc2.Recordset.BOF Then
Adodc2.Recordset.MoveFirst
End If
While Not Adodc1.Recordset.EOF
If Adodc2.Recordset.Fields("Bill number") = txtbillno.Text Then
Adodc2.Recordset.Fields("Bill number") = txtbillno.Text
Adodc2.Recordset.Fields("Customer id") = txtcustid.Text
Adodc2.Recordset.Fields("Item name") = cboitem.Text
Adodc2.Recordset.Fields("Quntity") = txtqua.Text
Adodc2.Recordset.Fields("Amount") = txtamount.Text
Adodc2.Recordset.Fields("Date of bill") = txtdate.Text

Adodc2.Recordset.Update
Adodc2.Recordset.MoveLast
End If
Adodc2.Recordset.MoveNext
Wend
End If

PRO.Visible = False
Else
PRO.Visible = True
For II = 1 To 100
For JJ = 1 To 1000000
Next JJ
PRO.Value = II
Next II
PRO.Visible = False
MsgBox "Your billing is generated"
End If

End Sub

Private Sub cmdexit_Click()


Unload Me
End Sub

Private Sub cmdnew_Click()


txtbillno.Text = ""
txtcustid.Text = ""
txtqua.Text = ""
txtamount.Text = ""
txttotal.Text = ""
txtbillno.SetFocus
End Sub

Private Sub cmdser_Click()


Form18.Show
End Sub
Private Sub dpt1_Change()
txtdate.Text = Format(dpt1.Value, "DD / MM / YYYY")

End Sub

Private Sub Form_Load()

dpt1.Value = Date$
txtdate.Text = Format(Date$, "DD / MMM / YYYY")

End Sub

Private Sub txtamount_KeyPress(KeyAscii As Integer)


If (KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8 Then
KeyAscii = KeyAscii
Else
MsgBox "only enter a number"
KeyAscii = 0
End If
End Sub

Private Sub txtbillno_KeyPress(KeyAscii As Integer)


If (KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8 Then
KeyAscii = KeyAscii
Else
MsgBox "only enter a number"
KeyAscii = 0
End If
End Sub

Private Sub txtcustid_KeyPress(KeyAscii As Integer)


If (KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8 Then
KeyAscii = KeyAscii
Else
MsgBox "only enter a number"
KeyAscii = 0
End If
End Sub

Private Sub txtdate_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub txtqua_KeyPress(KeyAscii As Integer)


If (KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8 Then
KeyAscii = KeyAscii
Else
KeyAscii = 0
MsgBox "only enter a number"
End If

End Sub

Private Sub txttotal_GotFocus()


txttotal.Text = Val(txtqua.Text) * Val(txtamount)

End Sub

Private Sub txttotal_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub Command1_Click()


Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text1.SetFocus
End Sub
Private Sub Command2_Click()
If Text1.Text = "" Then
MsgBox "please enter all record"
ElseIf Text2.Text = "" Then
MsgBox "please enter all record"
ElseIf List1 = "" Then
MsgBox "please select booking item"
PRO.Visible = False

If pp <> 11 Then
Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields(0) = Text1.Text
Adodc1.Recordset.Fields(1) = Text2.Text
Adodc1.Recordset.Fields(2) = Text3.Text
Adodc1.Recordset.Fields(3) = List1.Text

Adodc1.Recordset.Update
Else
If Not Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
End If
While Not Adodc1.Recordset.EOF
If Adodc1.Recordset.Fields(0) = Text1.Text Then
Adodc1.Recordset.Fields(0) = Text1.Text
Adodc1.Recordset.Fields(1) = Text2.Text
Adodc1.Recordset.Fields(2) = Text3.Text
Adodc1.Recordset.Fields(3) = List1.Text

Adodc1.Recordset.Update
Adodc1.Recordset.MoveLast
End If
Adodc1.Recordset.MoveNext
Wend
End If
PRO.Visible = False
Else
PRO.Visible = True
For II = 1 To 100
For JJ = 1 To 1000000
Next JJ
PRO.Value = II
Next II
PRO.Visible = False
MsgBox "Your booking is confirm"
End If
End Sub

Private Sub Command3_Click()


Form19.Show
End Sub

Private Sub Command4_Click()


Unload Me
End Sub

Private Sub dpt1_Change()


Text3.Text = Format(dpt1.Value, "DD / MMM / YYYY")
End Sub

Private Sub Form_Load()


dpt1.Value = Date$
Text3.Text = Format(Date$, "DD / MMM / YYYY")

End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)


If (KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8 Then
KeyAscii = KeyAscii
Else
MsgBox "only enter a number"
KeyAscii = 0
End If
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)


If (KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8 Then
KeyAscii = KeyAscii
Else
MsgBox "only enter a number"
KeyAscii = 0
End If
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii >= 47 And KeyAscii <= 64 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub list1_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If

End Sub
Dim pp As Integer
Private Sub cmdexit_Click()
Unload Me
End Sub

Private Sub cmdnew_Click()


txtcno.Text = ""
txtcid.Text = ""
txtdetails.Text = ""
txtrema.Text = ""
txtcno.SetFocus
End Sub

Private Sub cmdsave_Click()

If txtcid.Text = "" Then


MsgBox "please enter all record"
ElseIf txtcno.Text = "" Then
MsgBox "please enter all record"
ElseIf txtdetails.Text = "" Then
MsgBox "please enter all record"
ElseIf txtrema.Text = "" Then
MsgBox "please enter all record"

If pp <> 11 Then
Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields(0) = txtcno.Text
Adodc1.Recordset.Fields(1) = txtcid.Text
Adodc1.Recordset.Fields(2) = txtdor.Text
Adodc1.Recordset.Fields(3) = txtdetails.Text
Adodc1.Recordset.Fields(4) = txtrema.Text
Adodc1.Recordset.Update
Else
If Not Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
End If
While Not Adodc1.Recordset.EOF
If Adodc1.Recordset.Fields(0) = txtcno.Text Then
Adodc1.Recordset.Fields(0) = txtcno.Text
Adodc1.Recordset.Fields(1) = txtcid.Text
Adodc1.Recordset.Fields(2) = txtdor.Text
Adodc1.Recordset.Fields(3) = txtdetails.Text
Adodc1.Recordset.Fields(4) = txtrema.Text
Adodc1.Recordset.Update
Adodc1.Recordset.MoveLast
End If
Adodc1.Recordset.MoveNext
Wend
End If
PRO.Visible = False

Else
PRO.Visible = True
For II = 1 To 100
For JJ = 1 To 1000000
Next JJ
PRO.Value = II
Next II
PRO.Visible = False

MsgBox "we are accept your complaint"


End If

End Sub
Private Sub Command1_Click()
Form20.Show
End Sub

Private Sub dtp_Change()


txtdor.Text = Format(dtp.Value, "DD / MMM / YYYY")

End Sub

Private Sub Form_Load()


dtp.Value = Date$
txtdor.Text = Format(Date$, "DD / MMM / YYYY")
End Sub

Private Sub txtcid_KeyPress(KeyAscii As Integer)


If (KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8 Then
KeyAscii = KeyAscii
Else
MsgBox "only enter a number"
KeyAscii = 0
End If
End Sub

Private Sub txtcno_KeyPress(KeyAscii As Integer)


If (KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8 Then
KeyAscii = KeyAscii
Else
MsgBox "only enter a number"
KeyAscii = 0
End If
End Sub

Private Sub txtdetails_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You can't Enter number"
End If
End Sub

Private Sub txtdor_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub txtrema_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You can't Enter number"
End If
End Sub
Private Sub Command1_Click()
warning = MsgBox("Your current data is now going to be erased! Make sure that you have
already saved it.", vbOKCancel, "Warning!")

If warning = vbCancel Then

Else
If warning = vbOK Then
RichTextBox1.Text = ""
End If
End If

End Sub

Private Sub Command2_Click()


CommonDialog1.Filter = "Text files|*.txt|"
CommonDialog1.ShowOpen
RichTextBox1.LoadFile CommonDialog1.FileName, rtfText
End Sub

Private Sub Command3_Click()


CommonDialog1.ShowSave
RichTextBox1.SaveFile CommonDialog1.FileName, rtfText

End Sub
Private Sub Command4_Click()
Unload Me
End Sub

Private Sub Form_Load()


RichTextBox1.MaxLength = 0
End Sub

Private Sub Text1_Change()


On Error Resume Next
RichTextBox1.MaxLength = Text1.Text
End Sub

Private Sub Form_KeyPress(KeyAscii As Integer)


Unload Me
End Sub

Private Sub NEXTWINDOW_Click()


Form1.Show
Unload Me
End Sub

Private Sub Timer1_Timer()


Static I As Integer
If I = 4 Then
Unload Me
Form1.Show
End If
I=I+1
End Sub
Option Explicit
Dim a As Integer
Dim op As String
Private Sub Command1_Click()
Text1.Text = Text1.Text + Command1.Caption
End Sub
Private Sub Command10_Click()
Text1.Text = ""
End Sub

Private Sub Command11_Click()


Unload Me
End Sub

Private Sub Command12_Click()


op = "+"
a = Val(Text1.Text)
Text1.Text = ""
End Sub

Private Sub Command13_Click()


op = "/"
a = Val(Text1.Text)
Text1.Text = ""
End Sub

Private Sub Command14_Click()


op = "*"
a = Val(Text1.Text)
Text1.Text = ""
End Sub

Private Sub Command15_Click()


op = "-"
a = Val(Text1.Text)
Text1.Text = ""
End Sub

Private Sub Command16_Click()


If op = "+" Then
Text1.Text = a + Val(Text1.Text)
End If
If op = "-" Then
Text1.Text = a - Val(Text1.Text)
End If
If op = "*" Then
Text1.Text = a * Val(Text1.Text)
End If
If op = "/" Then
Text1.Text = a / Val(Text1.Text)
End If
If op = "%" Then
Text1.Text = Val(Text1.Text) / 100
End If

End Sub

Private Sub Command17_Click()


op = "%"
a = Val(Text1.Text)
Text1.Text = ""
End Sub

Private Sub Command18_Click()


Text1.Text = Text1.Text + Command18.Caption
End Sub

Private Sub Command2_Click()


Text1.Text = Text1.Text + Command2.Caption
End Sub

Private Sub Command3_Click()


Text1.Text = Text1.Text + Command3.Caption
End Sub

Private Sub Command4_Click()


Text1.Text = Text1.Text + Command4.Caption
End Sub

Private Sub Command5_Click()


Text1.Text = Text1.Text + Command5.Caption
End Sub

Private Sub Command6_Click()


Text1.Text = Text1.Text + Command6.Caption
End Sub

Private Sub Command7_Click()


Text1.Text = Text1.Text + Command7.Caption
End Sub

Private Sub Command8_Click()


Text1.Text = Text1.Text + Command8.Caption
End Sub

Private Sub Command9_Click()


Text1.Text = Text1.Text + Command9.Caption
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii >= 47 And KeyAscii <= 64 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If

End Sub
Private Sub Command1_Click()
Form3.Show
Form4.Show
Form7.Show
Form8.Show
Form9.Show
Form12.Show

End Sub
Dim pp As Integer

Private Sub cbo1_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub Command1_Click()


Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
cbo1.Text = ""
Text1.SetFocus
End Sub

Private Sub Command2_Click()


If pp <> 11 Then
Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields("cust_id") = Text1.Text
Adodc1.Recordset.Fields("cust_name") = Text2.Text
Adodc1.Recordset.Fields("cust_add") = Text3.Text
Adodc1.Recordset.Fields("cust_phno") = Text4.Text
Adodc1.Recordset.Fields("dateofreg") = Text5.Text
Adodc1.Recordset.Fields("amount") = Text6.Text
Adodc1.Recordset.Fields("notes") = cbo1.Text
Adodc1.Recordset.Update
Else
If Not Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
End If
While Not Adodc1.Recordset.EOF
If Adodc1.Recordset.Fields("cust_id") = Text1.Text Then
Adodc1.Recordset.Fields("cust_id") = CInt(Text1.Text)
Adodc1.Recordset.Fields("cust_name") = Text2.Text
Adodc1.Recordset.Fields("cust_add") = Text3.Text
Adodc1.Recordset.Fields("cust_phno") = Text4.Text
Adodc1.Recordset.Fields("dateofreg") = Text5.Text
Adodc1.Recordset.Fields("amount") = Text6.Text
Adodc1.Recordset.Fields("notes") = cbo1.Text

Adodc1.Recordset.Update
Adodc1.Recordset.MoveLast
End If
Adodc1.Recordset.MoveNext
Wend
End If
If Text1.Text = "" Then
MsgBox "please enter all record"
ElseIf Text2.Text = "" Then
MsgBox "please enter all record"
ElseIf Text3.Text = "" Then
MsgBox "please enter all record"
ElseIf Text4.Text = "" Then
MsgBox "please enter all record"
ElseIf Text5.Text = "" Then
MsgBox "please enter all record"
ElseIf Text6.Text = "" Then
MsgBox "please enter all record"
ElseIf cbo1.Text = "" Then
MsgBox "please enter all record"

PRO.Visible = False
Else
PRO.Visible = True
For II = 1 To 100
For JJ = 1 To 1000000
Next JJ
PRO.Value = II
Next II
PRO.Visible = False
MsgBox "Your Registration is confirm"
End If
End Sub

Private Sub Command3_Click()


Unload Me
End Sub

Private Sub dtp_Change()


Text5.Text = Format(dtp.Value, "DD / MM / YYYY")

End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)


If (KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8 Then
KeyAscii = KeyAscii
Else
MsgBox "only enter a number"
KeyAscii = 0
End If
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You can't Enter number"
End If
End Sub

Private Sub Text4_KeyPress(KeyAscii As Integer)


If (KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8 Then
KeyAscii = KeyAscii
Else
MsgBox "only enter a number"
KeyAscii = 0
End If
End Sub

Private Sub Text5_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub Text6_KeyPress(KeyAscii As Integer)


If (KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8 Then
KeyAscii = KeyAscii
Else
MsgBox "only enter a number"
KeyAscii = 0
End If
End Sub
Private Sub Command1_Click()
Text1.Text = Adodc1.Recordset.Fields(0)
Text2.Text = Adodc1.Recordset.Fields(1)
Text3.Text = Adodc1.Recordset.Fields(2)
Text4.Text = Adodc1.Recordset.Fields(3)
Text5.Text = Adodc1.Recordset.Fields(4)
Text6.Text = Adodc1.Recordset.Fields(5)
End Sub

Private Sub Command2_Click()


Unload Me
End Sub

Private Sub Command3_Click()


Adodc1.Recordset.MoveFirst
Text1.Text = Adodc1.Recordset.Fields(0)
Text2.Text = Adodc1.Recordset.Fields(1)
Text3.Text = Adodc1.Recordset.Fields(2)
Text4.Text = Adodc1.Recordset.Fields(3)
Text5.Text = Adodc1.Recordset.Fields(4)
Text6.Text = Adodc1.Recordset.Fields(5)
End Sub

Private Sub Command4_Click()


Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF = True Then
Adodc1.Recordset.MoveFirst
End If
Text1.Text = Adodc1.Recordset.Fields(0)
Text2.Text = Adodc1.Recordset.Fields(1)
Text3.Text = Adodc1.Recordset.Fields(2)
Text4.Text = Adodc1.Recordset.Fields(3)
Text5.Text = Adodc1.Recordset.Fields(4)
Text6.Text = Adodc1.Recordset.Fields(5)
End Sub

Private Sub Command5_Click()


Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF = True Then
Adodc1.Recordset.MoveLast
End If
Text1.Text = Adodc1.Recordset.Fields(0)
Text2.Text = Adodc1.Recordset.Fields(1)
Text3.Text = Adodc1.Recordset.Fields(2)
Text4.Text = Adodc1.Recordset.Fields(3)
Text5.Text = Adodc1.Recordset.Fields(4)
Text6.Text = Adodc1.Recordset.Fields(5)
End Sub

Private Sub Command6_Click()


Adodc1.Recordset.MoveLast
Text1.Text = Adodc1.Recordset.Fields(0)
Text2.Text = Adodc1.Recordset.Fields(1)
Text3.Text = Adodc1.Recordset.Fields(2)
Text4.Text = Adodc1.Recordset.Fields(3)
Text5.Text = Adodc1.Recordset.Fields(4)
Text6.Text = Adodc1.Recordset.Fields(5)
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub Text3_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub Text4_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub Text5_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub Text6_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub

Private Sub Text7_KeyPress(KeyAscii As Integer)


If KeyAscii >= 47 And KeyAscii <= 57 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii >= 65 And KeyAscii <= 90 Or KeyAscii >= 97 And KeyAscii <= 122 Then
KeyAscii = 0
MsgBox "You cant Enter"
ElseIf KeyAscii > 0 And KeyAscii <= 47 Or KeyAscii = 8 Then
KeyAscii = 0
MsgBox "You cant Enter"
End If
End Sub
Private Sub Command1_Click()
DataReport3.Show
End Sub

Private Sub Command2_Click()


Unload Me
End Sub

Private Sub Command1_Click()


Unload Me
End Sub
Private Sub Command1_Click()
Unload Me
End Sub

Private Sub mnuc_Click()


Clipboard.Clear
Clipboard.SetText Frmnotepad.rtfText.SelText
rtfText.SelText = ""
End Sub

Private Sub mnuc1_Click()

Clipboard.SetText Frmnotepad.rtfText.SelText
End Sub

Private Sub mnuex_Click()


Unload Me
End Sub

Private Sub mnufont_Click()


On Error GoTo e:
CommonDialog1.Flags = cdlCFEffects Or cdlCFBoth
CommonDialog1.ShowFont
rtfText.Font.Name = CommonDialog1.FontName
rtfText.Font.Size = CommonDialog1.FontSize
rtfText.Font.Bold = CommonDialog1.FontBold
rtfText.Font.Italic = CommonDialog1.FontItalic
rtfText.Font.Underline = CommonDialog1.FontUnderline
e:
End Sub

Private Sub mnun_Click()


Static count As Long
Dim frmn As Frmnotepad
count = count + 1
Set frmn = New Frmnotepad
frmn.Caption = "document" & count
frmn.Show
End Sub

Private Sub mnuo_Click()


Dim sfile As String
'Call loadnewdoc
CommonDialog1.DialogTitle = "Open"
CommonDialog1.Filter = "All files(*.*)|*.*"
CommonDialog1.ShowOpen
sfile = CommonDialog1.FileName
Frmnotepad.rtfText.LoadFile sfile
Frmnotepad.Caption = sfile

End Sub
Private Sub mnup_Click()
rtfText.SelText = Clipboard.GetText
End Sub

Private Sub mnus_Click()


Dim sfile As String
CommonDialog1.DialogTitle = "Save"
CommonDialog1.Filter = "All files(*.*)|*.*"
CommonDialog1.ShowSave
sfile = CommonDialog1.FileName
Frmnotepad.rtfText.SaveFile sfile
sfile = Frmnotepad.Caption
End Sub

Private Sub mnuab_Click()


Form15.Show
End Sub

Private Sub mnuabout_Click()


Form15.Show
End Sub

Private Sub mnuarea_Click()


Form3.Show
End Sub

Private Sub mnubill_Click()


Form7.Show
End Sub

Private Sub mnubook_Click()


Form8.Show
End Sub

Private Sub mnucal_Click()


Form12.Show
End Sub

Private Sub mnucas_Click()


Form13.Show
End Sub

Private Sub mnucom_Click()


Form9.Show
End Sub
Private Sub mnucus_Click()
Form16.Show
End Sub

Private Sub mnucust_Click()


Form5.Show
End Sub

Private Sub mnuemp_Click()


Form17.Show
End Sub

Private Sub mnuemplo_Click()


Form6.Show
End Sub

Private Sub mnuitem_Click()


Form4.Show
End Sub

Private Sub mnunote_Click()


Frmnotepad.Show
End Sub

Private Sub mnutext_Click()


Form10.Show
End Sub
BIBILIOGRAPHY

Books for Front End:-

BOOKS AUTHORS

Mastering Visual Basic 6.0 Evangelos pettoutses


Visual Basic 6.0
Project in Visual Basic 6.0 Soma Dasgupta
Database Management System Mr.Desai

You might also like