Question: Create a new table to capture the details for each sale. The first field should be an AutoNumber field named: SaleDetailID The second field should
Create a new table to capture the details for each sale.
The first field should be an AutoNumber field named: SaleDetailID
The second field should be a lookup field named: SaleID The lookup field should be limited to values in the SaleID field of the Sales table. Include only the SaleID in the lookup field. Enable data integrity by restricting deletions.
Save the table as: SaleDetails
Add a third field to the far right of the table. Name this field: Item This is another lookup field. Include all the fields from the Items table. Sort the lookup items by values in the ItemName field. Hide the primary key field. Enable data integrity by restricting deletions.
Add a Number field to the right of the Item field. Name the field: Quantity
Set the default value for the Quantity field to:
Add three records to the table with the following data. Hint: Remember, the first field in the table, SaleDetailID, is an AutoNumber field, so there is nothing to enter for each record.
SaleID
Item
Quantity
Chocolate
Old Bay
Truffle
Close the table.
Use the Form Wizard to create a new form for inputting sales data.
Include all the fields from the Sales table.
Include the Item and Quantity fields from the SaleDetails table.
View the form data by records in the Sales table with related records in the SaleDetails table displayed in a subform.
The subform should be displayed as a Datasheet.
Name the main form: SalesForm and name the subform: SaleDetailsSubform Hint: Be sure to remove the space between SaleDetails and Subform in the subform name suggested by Access.
Open the form in Form view to review your work.
Navigate to the record in the main form for SaleID and enter sale details in the subform as follows:
Item: Truffle, Quantity:
Item: Old Bay, Quantity:
Close the form.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
