Page 62 - AIS access_chang_ingraham
P. 62
60 CHAPTER 4 SALES/COLLECTION BUSINESS PROCESS
5. Create the other three necessary relationships.
6. Close the Relationships window.
Now that the Relationships have been created, we are ready to begin creating the Sales
Form.
7. Click on the Forms object and double-click on Create form by using wizard.
8. From the Tables/Queries pull-down menu, select the Sales Table and select all
three fields for inclusion in the form.
Form Wizard
Which fields do you want on your form?
=
~
-=-
/-= You can choose from more than one table or query.
Iables/Querles
[~]
ITable: Sales Table
f!vaililble Fields: Selected Fields:
- InvoiceNo
>
.
InvoiceDate
» •
0
EJ
Cllncel ~ j!.ack Next > II Einish
FIGURE 4-4
9. Select the Customer Table and select all the fields for inclusion in the form.
NOTE: Before you select fields for inclusion from this table and from tables in the
future, it is important to be sure that the last field is highlighted in the Selected Fields win-
dow. If it is not, the fields may be out of order when the form is created and you might
have to rearrange them!
10. Remember that in some cases a field represents a foreign key (i.e., it is a primary
key in another table) and, therefore, provides the relationship between tables. Therefore, it
is important that we select the field from the correct table for inclusion in the form. The
CustomerID is one of these fields. It is represented in both the Sales Table and the
Customer Table. We do not want to include both fields in the form so the question arises
as to which field should be included in the Sales Form. Since this is the Sales Form, the
CustomerID field included should be the one from the Sales Table.
In addition, there is no need to include the CustomerPhone field in the Sales Form.
Return the CustomerTable.CustomerID and the CustomerPhone fields back to the
Available Fields window.

