Creating and Running a Data Entry Form
Data entry forms are the primary means of entering data into
tables in the database. In a previous section, we described how to
add data to a table using a spreadsheet-like view of the data. Data
entry forms offer a more user-friendly interface by adding labels
for each field and other helpful information.
Access provides several different ways of creating data entry
forms. These include creating the forms by hand using a Design View
as well as a number of wizards that walk the user through the forms
creation process. In this section, we cover the basic steps for
using a wizard to create a data entry form.
3.1 Creating a Single Table Form using the Wizard
In this example, we will create a simple data entry form for the
Customer table. To begin the process, click on the
Forms
tab on the Access main screen. Then double-click the line that says
'Create Form By Using Wizard'.In the Form wizard, we need to specify the
fields from the Customer table that will appear on the form. In this
case, we want all of the fields to appear.
Move each of the fields
from the
Available Fields
side over to the
Selected
Fields side as in the following figure. Then click on the
Next button.
Forms can have several different layouts or arrangement of the
labels and fields on the screen.
For this example, choose the
columnar
layout as shown in the figure below and click on the
Next
button.
Access has several sample display styles that determine how the
form will appear, including elements such as fonts, colours and the
background used in the form. For this example, select the
Standard style and click on the
Next
button.
As a final step, give this new form the name:
CustomerDataEntry and then click on the
Finish button
as shown below:
The new form will be created by the wizard and then opened. It
should appear as in the figure below:
Use the tab key to navigate between fields in the form. To move
to the next or previous record, use the record navigation bar at the
bottom of the form:
The buttons on the navigation bar perform the following
functions:
Go to the first
record.
Go to the previous
record.
Go to the next
record.
Go to the last
record.
Go past the last
record to add a new record.
To close the form and return to the Access main screen,
choose File>Close
or just click its close box.
To open the form at any time, highlight the form name under the
Forms tab on the Access main screen and click on the Open button, or just double-click the name.
3.2 Exercise: Creating a Single Table Form
For this exercise, we will create a data entry form for the Accounts
table created in a previous exercise.
- Click on the Forms tab on the Access main screen
and then click on the New button to create a new form.
- Select the
Form wizard and select the
Accounts
table. Then click the OK button.
- Select all of the available fields and click on the Next
button.
- Choose a Tabular layout and click on the Next
button.
- Choose the Standard style and click on the
Next
button.
- Name the form: AccountsDataEntry.
Then click on the Finish button to create, save and
view the new form.
The new form is shown in the figure below:
Close the form and return to the Access main screen.
3.3 Review of Creating and Running a Data Entry Form
The basic steps for creating a simple data entry form are:
- Choose a table and a form wizard
- Specify the fields (columns) that will appear in the form
- Specify the layout for the form
- Specify the style (fonts/colors, etc.) for the form
- Save, create and run the new form
In this section we covered the basic steps required to create and
run a data entry form. Access provides wizards which are adept at
building simple forms with a minimal amount of work. More advanced
work on forms would concentrate on using the Design View to change a
form's appearance and to add or remove fields and labels once a form
is created.