a field of a record has more than one record in access table

G

Guest

eg. purchase order table:I have one record for each order,but some orders
have more than one item ,how to arrange my table so that I should not repeate
the order number for each item specially when the order number is primary key.

Thank you very much for your help.
 
D

Dorothy

eg. purchase order table:I have one record for each order,but some orders
have more than one item ,how to arrange my table so that I should not repeate
the order number for each item specially when the order number is primary key.

Thank you very much for your help.

Hello. I think the best way to do this would be to have a separate
table for just orders - say tblOrders. Make the order number in this
new table a primary key so that each order number is unique.

You can then build a relationship to this table from the purchase
order table so that they link on the order number by going to "Tools"
then "Relationships".

Good luck!

Dorothy
(e-mail address removed)
 
A

Allen Browne

You need a related table for the line items in the purchase order.

For an example, open the Northwind sample database that installs with
Access. Open the Relationships window. See how the Orders and Order Details
tables are connected. That's the approach you need to take.
 
G

Guest

The problem solved by your help, so thank you very much. Thanks also to every
body how participated on this question - answer programme.
abosamra
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top