Page 92 - AIS access_chang_ingraham
P. 92
90 CHAPTER 5 ACQUISITION/PAYMENT BUSINESS PROCESS
Receiving Report Table (RecRptNo, RecRptDate, PONo, SupplierInvNo)
Receiving Inventory Table (RecRptNo, InventoryID, QuantityReceived)
Tragg's Relational Database Using Access
Open the Chapter 5 database for Tragg's Custom Surfboards. Again note that all the tables,
some relationships, and some forms have already been created for the Acquisition/
Payment business process. Take some time to examine the tables, forms, and the relation-
ships that have been created thus far.
The Purchase Order Table and The
Append Query
Recall that in Chapter 4, when we created the Sales Form and began entering data, the
InvoiceNo field Data Type was set as AutoNumber. It began numbering the Sales Forms
at 1 and continued forward from there. We do not have to begin numbering all of our forms
at 1. We can be numbering our forms at any number of our choosing. Therefore, let's
assume that Tragg's would like to begin numbering the Purchase Order Forms at 1000.
Open the Tragg's Custom Surfboard database for Chapter 5 and take some time to
acquaint yourself with the Purchase Order Table at this time. Notice that we have not yet
set the Primary Key for this table. This is because we will be setting a default value to
begin the number of the Purchase Order Forms and we cannot do this if the table pre-
vents null values in the primary key field. In other words, the Required Field property can-
not be set to Yes, and the Indexed field property cannot be set to Yes (No Duplicates).
Therefore, we have not yet set the Primary Key.
1. Close the Purchase Order Table.
2. Click on Create Table in Design View.
3. Type PONo in the Field Name and choose Number as the Data Type.
'r:l Table1 : Table .I. BDlt ~
Field Name I Data Type I Description A
";
.!. PONo - Number ~ --- -
- -- I
-
- -j
- - ~ ----
- -
- -
-
- I v -
Field Properties
-,- ,
General I. Lookup I
Field Size Lono Inteoer
Format I
Decimal Places ~o __ -
Input Mask
caption
Default Value 0
ISmart Tags to be
Validation Rule
applied to this field.
Validation Text
I---
ReqUired No
Indexed N~_ -- -- - ._.- ~
I
Smart Tags ...
I
FIGURE 5-2

