D
Double A
I have created a database to track work orders for a landscape company. Each
customer can have many work orders. Each work order can have multiple parts
to the job. My table structure is as follows:
tblCustomerInfo
---------------------
CustomerNumber AutoNumber
Name Text
Address Text
City Text
State Text
Zip Text
tblWorkOrder
---------------------
WorkOrderNumber AutoNumber
EstimateDate Date/Time
CustomerID Number - Combobox to choose customer from dropdown
tblWorkLineItem
----------------------
WorkOrderNumber Number
CustomerID Number
LineItemNumber AutoNumber
Category Text - Combobox pointing to a look up table of
categories
Cost Currency
The data seems robust when entered using the forms that I have set up.
However, in using the database, it has been possible for the data in the
table to show one work order associated to 2 different customers. How can I
prevent this from occurring? I see this when I look in the WorkLineItem
table. I need to allow duplicates for both the Workorder and customer ID
because each record is one part of the workorder.
I am not sure if this question is clear. Please respond with questions.
Thanks.
customer can have many work orders. Each work order can have multiple parts
to the job. My table structure is as follows:
tblCustomerInfo
---------------------
CustomerNumber AutoNumber
Name Text
Address Text
City Text
State Text
Zip Text
tblWorkOrder
---------------------
WorkOrderNumber AutoNumber
EstimateDate Date/Time
CustomerID Number - Combobox to choose customer from dropdown
tblWorkLineItem
----------------------
WorkOrderNumber Number
CustomerID Number
LineItemNumber AutoNumber
Category Text - Combobox pointing to a look up table of
categories
Cost Currency
The data seems robust when entered using the forms that I have set up.
However, in using the database, it has been possible for the data in the
table to show one work order associated to 2 different customers. How can I
prevent this from occurring? I see this when I look in the WorkLineItem
table. I need to allow duplicates for both the Workorder and customer ID
because each record is one part of the workorder.
I am not sure if this question is clear. Please respond with questions.
Thanks.