Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ON
MARKETING MANAGEMENT
AT
By
Padaniya Amir.
Patel Hardik.
ACADEMIC YEAR
2006
SUBMITTED TO
CERTIFICATE
_____________ _________________
RajuBhagat Amir Padaniya.
(Director) Hardik Patel.
(Group Members)
_______________
Rahul Pethani
(Project Guide)
PREFACE
There is a wide difference between theory and practical. If one has only theoretical
background of any subject, one would not succeed in own aim therefore it is necessary for
any person to have adequate practical knowledge of the concerned subject. As we know B.Sc.
I.T. is a course based on “Information Technology” and it is totally practical field. With only
theoretical knowledge one can’t be succeed or one can’t be on the peak position.
In the course of B.Sc. I.T. designed by the “Saurashtra Univercity” they have taken
full care of this things and designed the course in such a manor with which student can get
theoretical and practical both type of knowledge perfectly. According to the rules &
regulation of “Software Development”. In which we have to create a software project of any
institute or industry.
As a B.Sc. I.T. student, we have visited “Austin Engineering Pvt.Ltd”. This project
entirely focuses on making different types of Bearings.
In this project report we have covered all the information, which are required for the
software project of B.Sc. I.T. student. We have rotated in making of Marketing Management
System, we have covered all the necessary information.
We have tried as our best present this project report in such a way that it makes easy
to understand the project work we have done for the “Austin Engineering Pvt.Ltd”.
ACKNOWLEDGEMENT
We are very thankful to all, who have helped us in preparing this project. We are
much happy to present this “Project Report”. Before you, expecting that you will
acknowledge it. It is a matter of great pleasure for us that we had an opportunity to express
our view on the same.
As a part of our academic study as the student of 5’th semester of B.Sc. I.T. we are
required to undergo training for software project as institute or industry in order to obtain
practical knowledge and broaden our view regarding the same.
As first, we would like to express our special & humble thanks and gratitude to the
director of S. S. S. D. Inst. of I.T. Shree Raju Bhagat who has provided us such a great, co-
operative and progressive environment.
Secondly, at this moment , we would like to express our deepest sense of gratitude to
our deepest of gratitude to our professors as well as project guides Mr.Rahul Pethani who
have contributed their precious time for the purpose of giving us the correct information with
special interest and guidance through out our project work and treat us as their younger
brothers.
We would like to express our special thanks to Mr. Amit G. Joshi – Asst. HR
Manager & ISO Co-ordinator and all the executive persons as well as staff members of
“Austin Engineering Co. Ltd”, who have given their precious time for us and provided all
the possible information for our practical study.
Date: 16-10-2006
Place: Junagath.
Yours Faithfully.
Mr. Amir Padaniya.
Mr.Hardik Patel .
Index
DETAILED LIFE CYCLE OF PROJECT
In the course of B.Sc.I.T. Designed by the “Saurashtra University” they have taken
full care of these things and designed the course in such a manor with which student can get
theoretical and practical both type of knowledge perfectly.
As a part of our academic study as the student of 5’Th semester of B.Sc.I.T. We have
a subject “Software Development” in which is required to undergo training for software
project of an institute or industry in order to obtain practical knowledge and broaden our view
regarding the same. Also the project must be developed with the help of Visual Basic &
Oracle and with the concept of Client/Server architecture.
So, first we have to choose the right institute or industry for which we can develop a
software project. For that we have visited several institutes and industries as mentioned.
At last we have taken chance at “Austin Engineering Pvt.Ltd”. There we have meet
the planning head of the Austin Engineering Pvt.Ltd. We provide them the request letter of
our college and then after studding all the things very carefully they have permitted us to
proceed on our software project.
At the time of project development, We have tried out level best to collect more &
more information about the Marketing of the AEC regarding our project work.
Thus, we have collected all the information related to our project from the “Marketing
Department”.
DEFINATION OF PROBLEM
Visiting the “Austin Engineering Pvt.Ltd” We come to know that they are using
“Computer Software” developed in “VB – SQL server” for the “Marketing Department”. But
there is no any software for the Marketing Department.
Also we come to know that the HOD computer – Mr. Raju Thanki is currently
working to develop the new computer software with the use of “Visual Basic & Oracle”,
which can provide GUI Environment & also can be friendly to the get change & can work
more effectively & easily.
Mr. Raju Thanki offered us to develop quite perfect system so his work gone reduce
and he can directly add our software project to the main one with minor necessary changes.
We replay him that we will try out best for his offer but at present we are student and we
can’t develop such big software because of lack of experience.
Thus these are the several problem & also some requirements from the user & also
from the management to get software with GUI Environment, User Friendly software, More
Efficient & which provides Easy working environment.
REQUIREMENT GATHERING
There are four main requirements – gatherings techniques mentioned in “System
Analysis & Design” theories. The techniques are as listed bellow.
• Questionnaires
• Interview
• Observation
• Record Reviewing
First we start with “Observation” because we do not know anything about Marketing
Department. So, we want to know that how they are work in current manual system. After
observing their manual system, we got some idea about their working style. Then we check
all the register they prepare and some other application forms.
We have tried our best to collect all the information & requirements from the HOD of
Marketing Department, Clerk and some other officer. Also we have meet the end users to get
more and clear information that what are the problems with the current system they have to
face, additional facilities they want in their software & other requirements.
We collect the information about whole currently working system, flow of process,
registers entries, processes, input, outputs & reports needed. Also we have said them several
points, which can be more beneficial for them.
Marketing Department
SALES DEPARTMENT
PURCHASE DEPARTMENT
INFORMATON DEPARTMENT
PLANNING DEPARTMENT
SYSTEM FEASIBILITIES
In the study of feasibilities we will consider four main feasibilities as listed bellow.
• Technical Feasibility
• Operational Feasibility
• Economical Feasibility
• Social Feasibility
Technical Feasibility
First of all in the part of “Technical Feasibility” We study that whether this software
project is technically feasible or not. Means to study that whether the necessary software &
hardware are available or not. Also study that whether the current software project can be
completed with the technology available in the office or in the market or not. So, all these
above factors are being considered in
The study of “Technical Feasibility”.
o In the office they already have computers with latest genuine configuration.
o Secondly, they have Windows XP operating system in all the computer.
o Also they have Oracle to manage all the data & all computers are on the networks.
Operational Feasibility
o First of all here as we have noted that the office has already computer system &
software too. It means that the employees of the office are able to use the
computer and they can easily operate the given software or can be easily trained to
use the new given software.
o Also the HOD computer Mr. Raju Thanki is already working on the software with
Visual Basic & Oracle. Means that the users or the office are capable the new &
upgraded software.
Economical Feasibility
o The office has already all the necessary technical equipments. So that they will not
have to spend money for all those.
o Secondly, the employees don’t need any special training about the computer &
can easily train for the new software. Office can easily effort this expense.
o At last the cost of software is there. We have convinced the office that We will
develop the software in the given time period & as per necessity of the office
against the reasonable price.
Social Feasibility
o Here We are going to make a software project for the employees of the office.
With this new software the employees will get more effective, more user friendly ,
more efficient software.
o Also the workload of the employees will be decreased.
SYSTEM REQUIREMENT
SPECIFICATION
In the documentation of “Software Requirements Specification – S. R. S.” We have to
specify about all the requirements of the Clerks. Those requirements can be of inputs,
outputs, report, form layout, some extra facility etc. Here we have prepared S. R. S.
documents as per the requirements o the users of the “Austin Engineering Pvt.Ltd” as given
bellow.
We can easily get that whether we have understood the system as per the
requirements of the customer or not by showing them diagram. Thus D.F.D. is a
necessary while developing software.
Physical DFD
Data for
Request for
create new id
MARKETING
SYSTEM
CLIENT 1 CLIENT 2
Message from Message from
Server approved Server that Id
or not created or not
CLIENT - N
Methodology Adoption
To develop any project there are several methodology given in theory of
“Software Engineering”. These methodologies are the part of S.D.L.C. method
System Development Life Cycle Method. The methodologies are as listed below: -
1. Waterfall Model.
2. Iterative Waterfall Model.
3. Prototype Model.
4. Spiral Model.
5. Evolutionary Model.
Thus we can say that for this software project we have gone through two
S.D.L.C. Methods “Prototype Model.
SYSTEM PLANNING
In the phase of “System Planning” we have to do time scheduling for the
requested project. The popular methods to do the time scheduling are.
Gantt Chart
PERT Chart
We have done time scheduling using this both methods are as given in this
documentation.
1. Gantt Charts
Gantt Charts are useful for scheduling budgeting & resource planning. A
Gantt chart is a special type of bar chart where each bar represents as activity. These
bars are drawn along a time line. The length of each bar is proportional to the duration
of time planned of time planned for the corresponding activity.
Specification
Design GUI
Part
Code GUI Part
Code
Database Part
Integrate &
Testing
Documentation
Pert charts consist of network of boxes an arrow. The boxes represent activities
& the arrow represents task dependencies. PERT charts are a more sophisticated from
of activity chart, where instead of making a single estimate for each task; pessimistic
likely & optimistic estimates are mode.
We have used “Visual Basic 6.0 “as a front – end application and Oracle 9i as
Back – end application. Let us see about all these aspect in details.
The basic refers to the basic language “Visual Basic “is developed from
“Basic” Language. The latest version of V.B. is V.B. Net. V.B. provides facilities to
connect any database like Oracle 9i, SQL Server, and many more application and used
as front – end. It also supports various Active-X controls, and gives facility to develop
our own Active-X controls.
Oracle 9i
In 1979 a ting “Silicon Valley Company” introduced “Oracle”, the first commercial
relational database incorporating the SQL data access language. Today “Oracle” is word’s
largest supplier of database management systems and associated produces (The
Collection of tools, utilities and application that “Constituent the Oracle RDBMS helps
you to manipulate an Oracle database).
“Oracle 9i” release in 2001 has extended its capabilities, the fields as well as database
limits. It also provides the facilities for the auto user area expands which decrease the space
management task of the DBA. Now available “Oracle 11i” which is more advanced version
in Oracle Lab.
The “Oracle Server” provides efficient and effective solution for major
database features.
2. Manageable Security: -
To project against unauthorized database access and use, “Oracle” Provides
failsafe security to limit and monitor data access. These features make it easy to manage even
the most complex design for data access.
First is VB 6.0 huge product. Million of developers of all skills levels are
producing application with Visual Basic.
Second thing is VB is more powerful development system. It contains built – in
– function and subroutines for dozens of different common tasks. In the
addition to its intrinsic features VB provides the capability to custom
libraries and object that can be leaded at run the distributable
application.
Third VB is also well supported by the third party products just like oracle.
For all these and many more Visual Basic is independently the most attractive
development environment currently available.
In contrast to the absolute system of the past, VB has an undesirable bright and
shining future.
DATA BASE INFORMATION
CONTACT MASTER
CUSTOMER MASTER
PRODUCT NUMBER
CATEGORY MASTER
End Sub
Private Sub cmdok_Click ()
rs.MoveFirst
'rs.Find "User_name = '" & txtUserName.Text & "'"
For I = 0 to rs.RecordCount - 1
If LCase(rs (0)) = LCase(txtUserName.Text) Then
If LCase (rs (1)) = LCase (txtPassword.Text) Then
If rs (2) = "administrator" Then
MsgBox "Logged in successfully"
TYPES. Show
rs.Close
Unload Me
Exit Sub
Else
MsgBox "Logged in successfully"
TYPES.Show
rs.Close
Unload Me
Exit Sub
End If
Else
MsgBox "username or password not found"
End If
Else
rs.MoveNext
If rs.EOF = True Then
MsgBox "User not found"
Exit Sub
End If
End If
Next I
End Sub
Private Sub cmdok_MouseMove (Button As Integer, Shift as Integer, X As
Single, Y as Single)
cmdOK.BackColor = RGB (Rnd * 255, Rnd * 255, Rnd * 255)
End Sub
Else
If check_empty = True Then
MsgBox "Incomplete Entry"
Exit Sub
End If
End If
End Sub
End Sub
Private Sub cmddelete_Click ()
Exit Sub
End If
End If
db_to_text
Else
End If
End Sub
Else
End If
End Sub
Private Sub cmdexit_Click ()
Unload Me
End Sub
Else
clear_text
MsgBox "No record"
End If
End Sub
Else
clear_text
MsgBox "No record"
End If
End Sub
Private Sub cmdnext_Click ()
If rs_cust_mast.RecordCount > 0 Then
rs_cust_mast.MoveNext
If rs_cust_mast.EOF Then
rs_cust_mast.MoveLast
MsgBox "Last Record"
End If
db_to_text
Else
clear_text
MsgBox "No record"
End If
End Sub
End If
db_to_text
Else
clear_text
MsgBox "No record"
End If
End Sub
Sub db_to_text ()
txtid.Text = rs_cust_mast (0)
txtco_name.Text = rs_cust_mast(1)
txtfirst_name.Text = rs_cust_mast (2)
txtlast_name.Text = rs_cust_mast (3)
txtbui_addr.Text = rs_cust_mast (4)
txtcity.Text = rs_cust_mast (5)
txtpincode.Text = rs_cust_mast (6)
txtcountry.Text = rs_cust_mast (7)
txtcontact_title.Text = rs_cust_mast (8)
txtphone_no.Text = rs_cust_mast (9)
txtmobile_no.Text = rs_cust_mast (10)
txtfax_no.Text = rs_cust_mast (11)
txtemail_addr.Text = rs_cust_mast (12)
End Sub
Sub clear_text ()
Dim ele
For Each ele In Me. Controls
If TypeOf ele Is Textbox Then ele.Text = ""
Next
End Sub
Sub text_to_db ()
rs_cust_mast (0) = Val(txtid.Text)
rs_cust_mast (1) = txtco_name.Text
rs_cust_mast(2) = txtfirst_name.Text
rs_cust_mast(3) = txtlast_name.Text
rs_cust_mast(4) = txtbui_addr.Text
rs_cust_mast(5) = txtcity.Text
rs_cust_mast(6) = txtcountry.Text
rs_cust_mast (7) = txtpincode.Text
rs_cust_mast (8) = txtcontact_title.Text
rs_cust_mast (9) = txtphone_no.Text
rs_cust_mast (10) = txtemail_addr.Text
rs_cust_mast (11) = txtmobile_no.Text
rs_cust_mast (12) = Val (txtfax_no.Text)
End Sub
Private Sub Form_Load()
If rs_cust_mast.RecordCount > 0 Then cmdfirst_Click
Ena_control False
End Sub
Next
End Sub
Dim ele
For Each ele In Me.Controls
If TypeOf ele is TextBox Then
If ele.Tag <> "not" And Trim(ele.Text) = "" Then
ele.SetFocus
check_empty = True
Exit Function
End If
End If
Next
check_empty = False
End Function
Image1.Top = 0
Image1.Left = 0
Image1.Height = Me.Height
Image1.Width = Me.Width
End Sub
Private Sub Image1_MouseMove (Button As Integer, Shift as Integer, X As
Single, Y as Single)
cmdexit.BackColor = RGB (200, 200, 200)
End Sub
End Sub
Dim add As Boolean
End If
End Sub
Private Sub cmddelete_Click ()
End If
End Sub
End If
End Sub
Unload Me
End Sub
Private Sub cmdfirst_Click()
If rs_cate_mast.RecordCount > 0 Then
rs_cate_mast.MoveFirst
db_to_text
Else
clear_text
MsgBox "No record"
End If
End Sub
Else
clear_text
MsgBox "No record"
End If
End Sub
End Sub
Private Sub cmdprevious_Click()
End If
db_to_text
Else
clear_text
MsgBox "No record"
End If
End Sub
Sub db_to_text ()
txtcate_id.Text = rs_cate_mast (0)
txtcate_name.Text = rs_cate_mast(1)
End Sub
Sub clear_text ()
Dim ele
For Each ele In Me.Controls
If TypeOf ele Is TextBox Then ele.Text = ""
Next
End Sub
Sub text_to_db ()
rs_cate_mast (0) = txtcate_id.Text
rs_cate_mast (1) = txtcate_name.Text
End Sub
End Sub
Dim ele
For Each ele In Me.Controls
If TypeOf ele Is TextBox Then ele.Enabled = flag
If TypeOf ele Is CommandButton Then ele.Enabled = Not flag
If ele.Tag = "enable" Then ele.Enabled = True
Next
End Sub
Dim ele
For Each ele In Me.Controls
If TypeOf ele Is TextBox Then
If ele.Tag <> "not" And Trim(ele.Text) = "" Then
ele.SetFocus
check_empty = True
Exit Function
End If
End If
Next
check_empty = False
End Function
Exit Sub
End If
text_to_db
rs_cont_mast.Update
cmdadd.Caption = "&Add"
MsgBox "Saved Sucesfully"
ena_control False
End If
End Sub
End Sub
Private Sub cmddelete_Click ()
If rs_cont_mast.RecordCount > 0 Then
rs_cont_mast.Delete
rs_cont_mast.MoveNext
If rs_cont_mast.EOF Then
rs_cont_mast.MovePrevious
If rs_cont_mast.BOF Then
MsgBox "Last record"
clear_text
Exit Sub
End If
End If
db_to_text
Else
MsgBox "Not Found Any Record"
End If
End Sub
End Sub
Else
clear_text
MsgBox "No record"
End If
End Sub
clear_text
MsgBox "No record"
End If
End Sub
db_to_text
Else
clear_text
MsgBox "No record"
End If
End Sub
Private Sub cmdprevious_Click()
If rs_cont_mast.RecordCount > 0 Then
rs_cont_mast.MovePrevious
If rs_cont_mast.BOF Then
rs_cont_mast.MoveFirst
MsgBox "First Record"
End If
db_to_text
Else
clear_text
MsgBox "No record"
End If
End Sub
Sub db_to_text()
txtcon_id.Text = rs_cont_mast(0)
txtfn.Text = rs_cont_mast (1)
txtln.Text = rs_cont_mast(2)
txtaddr.Text = rs_cont_mast (3)
txtcity.Text = rs_cont_mast(4)
txtstate.Text = rs_cont_mast(5)
txtpin_code.Text = rs_cont_mast(6)
txtcountry.Text = rs_cont_mast(7)
txtcom_name.Text = rs_cont_mast(8)
txtphone_no.Text = rs_cont_mast(9)
txtmobileno.Text = rs_cont_mast(10)
End Sub
Sub clear_text ()
Dim ele
For Each ele In Me.Controls
If TypeOf ele Is TextBox Then ele.Text = ""
Next
End Sub
Sub text_to_db ()
Next
End Sub
Function check_empty () as Boolean
Dim ele
For Each ele In Me.Controls
If TypeOf ele Is TextBox Then
If ele.Tag <> "not" And Trim(ele.Text) = "" Then
ele.SetFocus
MsgBox ele.TabIndex
check_empty = True
Exit Function
End If
End If
Next
check_empty = False
End Function
End Sub
Dim add As Boolean
Private Sub cmdexit_Click ()
Unload Me
End Sub
text_to_db
rs_deli_mast.Update
cmdadd.Caption = "&Add"
MsgBox "Saved Sucesfully"
ena_control False
End If
End Sub
End Sub
Private Sub cmddelete_Click ()
db_to_text
Else
MsgBox "Not Found Any Record"
End If
End Sub
End Sub
End Sub
End Sub
Sub clear_text ()
Dim ele
For Each ele In Me.Controls
If TypeOf ele Is TextBox Then ele.Text = ""
Next
End Sub
Sub text_to_db ()
rs_deli_mast (0) = txtdeli_id.Text
rs_deli_mast (1) = txtorder_id.Text
rs_deli_mast (2) = txtemployee_id.Text
rs_deli_mast (3) = txtcust_id.Text
rs_deli_mast (4) = txtdes_city.Text
rs_deli_mast (5) = txtdes_state.Text
rs_deli_mast (6) = txtdes_add.Text
rs_deli_mast (7) = txtdes_coun.Text
rs_deli_mast (8) = txtarr_date.Text
rs_deli_mast (9) = txtpin_code.Text
rs_deli_mast (10) = txtpack_dime.Text
rs_deli_mast (11) = txtpack_weight.Text
rs_deli_mast (12) = txtcurr_loca.Text
rs_deli_mast (13) = txtpick_date.Text
rs_deli_mast (14) = txtrece_by.Text
rs_deli_mast (15) = txtpick_loca.Text
rs_deli_mast (16) = txtfre_charge.Text
rs_deli_mast (17) = txtnotes.Text
End Sub
Next
End Sub
text_to_db
rs_order_mast1.Update
cmdadd.Caption = "&Add"
MsgBox "Saved Sucesfully"
Ena_control False
End If
End Sub
End Sub
End Sub
End Sub
End Sub
Sub db_to_text ()
txtorder_id.Text = rs_order_mast1 (0)
txtcust_id.Text = rs_order_mast1 (1)
txtemp_id.Text = rs_order_mast1 (2)
txtorder_date.Text = rs_order_mast1 (3)
txtphone_no.Text = rs_order_mast1 (4)
txtrequire_date.Text = rs_order_mast1(5)
txtship_name.Text = rs_order_mast1 (6)
txtship_add.Text = rs_order_mast1 (7)
txtship_country.Text = rs_order_mast1 (8)
txtship_city.Text = rs_order_mast1 (9)
txtship_state.Text = rs_order_mast1 (10)
txtship_date.Text = rs_order_mast1 (11)
txtsales_tax.Text = rs_order_mast1 (12)
End Sub
Sub clear_text ()
Dim ele
For Each ele In Me.Controls
If TypeOf ele Is TextBox Then ele.Text = ""
Next
End Sub
Sub text_to_db ()
rs_order_mast1(0) = txtorder_id.Text
rs_order_mast1 (1) = txtcust_id.Text
rs_order_mast1 (2) = txtemp_id.Text
rs_order_mast1 (3) = Format (txtorder_date.Text, "mm/dd/yy")
rs_order_mast1 (4) = txtphone_no.Text
rs_order_mast1 (5) = Format (txtrequire_date.Text, "mm/dd/yy")
rs_order_mast1 (6) = txtship_name.Text
rs_order_mast1 (7) = txtship_add.Text
rs_order_mast1 (8) = txtship_country.Text
rs_order_mast1 (9) = txtship_city.Text
rs_order_mast1 (10) = txtship_state.Text
rs_order_mast1 (11) = Format (txtship_date.Text, "mm/dd/yy")
rs_order_mast1 (12) = txtsales_tax.Text
End Sub
End Sub
End Sub
Sub db_to_text ()
txtprod_id.Text = rs_prod_mast (0)
txtprod_name.Text = rs_prod_mast (1)
txtprod_desc.Text = rs_prod_mast (2)
txtcate_id.Text = rs_prod_mast(3)
txtsupp_id.Text = rs_prod_mast(4)
txtserial_no.Text = rs_prod_mast(5)
txtunit_stock.Text = rs_prod_mast(6)
txtunit_order.Text = rs_prod_mast(7)
txtunit_price.Text = rs_prod_mast(8)
txtlead_time.Text = rs_prod_mast(9)
End Sub
Sub clear_text()
Dim ele
For Each ele In Me.Controls
If TypeOf ele Is TextBox Then ele.Text = ""
Next
End Sub
Sub text_to_db ()
rs_prod_mast (0) = Val (txtprod_id.Text)
rs_prod_mast (1) = txtprod_name.Text
rs_prod_mast (2) = txtcate_id.Text
rs_prod_mast (3) = txtsupp_id.Text
rs_prod_mast (4) = txtserial_no.Text
rs_prod_mast (5) = txtprod_desc.Text
rs_prod_mast (6) = txtunit_stock.Text
rs_prod_mast (7) = txtunit_order.Text
rs_prod_mast (8) = txtunit_price.Text
rs_prod_mast (9) = Format (txtlead_time.Text, "mm/dd/yy")
End Sub
Next
End Sub
Function check_empty () as Boolean
Dim ele
For Each ele In Me.Controls
If TypeOf ele is TextBox Then
If ele.Tag <> "not" And Trim (ele.Text) = "" Then
ele.SetFocus
check_empty = True
Exit Function
End If
End If
Next
check_empty = False
End Function
Dim add As Boolean
text_to_db
rs_detail_mast1 .Update
cmdadd.Caption = "&Add"
MsgBox "Saved Sucesfully"
ena_control False
End If
End Sub
End Sub
End Sub
End Sub
End Sub
Sub db_to_text ()
txtorder_id.Text = rs_detail_mast1 (0)
txtprod_id.Text = rs_detail_mast1 (1)
txtdate_sold.Text = rs_detail_mast1 (2)
txtquantity.Text = rs_detail_mast1 (3)
txtunit_price.Text = rs_detail_mast1 (4)
txtdiscount.Text = rs_detail_mast1(5)
txtsale_price.Text = rs_detail_mast1(6)
txtsales_tax.Text = rs_detail_mast1(7)
End Sub
Sub clear_text()
Dim ele
For Each ele In Me.Controls
If TypeOf ele Is TextBox Then ele.Text = ""
Next
End Sub
Sub text_to_db ()
rs_detail_mast1 (0) = txtorder_id.Text
rs_detail_mast1 (1) = txtprod_id.Text
rs_detail_mast1 (2) = txtdate_sold.Text
rs_detail_mast1 (3) = txtquantity.Text
rs_detail_mast1 (4) = txtunit_price.Text
rs_detail_mast1(5) = txtdiscount.Text
rs_detail_mast1(6) = txtsale_price.Text
rs_detail_mast1(7) = txtsales_tax.Text
End Sub
Next
End Sub
Function check_empty() As Boolean
Dim ele
For Each ele In Me.Controls
If TypeOf ele Is TextBox Then
If ele.Tag <> "not" And Trim(ele.Text) = "" Then
ele.SetFocus
check_empty = True
Exit Function
End If
End If
Next
check_empty = False
End Function
End Sub