Dante Shaheen
New member
- Local time
- Yesterday, 16:15
- Joined
- May 10, 2012
- Messages
- 8
Friends,
My database currently has two tables. One table logs in purchase orders and the primery key is the purchase order number.
The second table tracks the line items from the purchase orders and is tied back to the purchase order number.
I would like to prevent a line item number from a specific purchase order be accidentally repeated. However, if I make the line item number a primary key, I cannot enter the same line item for a different purchase order number.
Is there a simple way to be sure that the line item cannot be duplicated for a specific PO number.
Thanks for your help,
Dante
My database currently has two tables. One table logs in purchase orders and the primery key is the purchase order number.
The second table tracks the line items from the purchase orders and is tied back to the purchase order number.
I would like to prevent a line item number from a specific purchase order be accidentally repeated. However, if I make the line item number a primary key, I cannot enter the same line item for a different purchase order number.
Is there a simple way to be sure that the line item cannot be duplicated for a specific PO number.
Thanks for your help,
Dante