Sorry, I'm being a little sloppy in my terminology. What I mean is this.
In your one-side table, you have to have a field (or group of fields) that
uniquely identify each record. Therefore, this field (or fields) cannot
have duplicate values. You will create a Primary Key (which is nothing more
than a special type of unique index) on this field (or fields).
Now, in most of my databases, I create what's called a surrogate key, which
is nothing more that an Autonumber field that I designate as my Primary Key.
It doesn't matter what the value is, as long as that value is placed into
the foreign key field of each related record in the Many-side table.
So in your particular case, you've got 3 tables Report, Recommendations, and
Tasks related this way:
Reports ----< Recommendations -----< Tasks
(where One-side ----< Many-side) Correct?
In that case, in the Reports table, I would have an autonumber field called
Report_ID which I would make the primary key. In the Recommendations table,
I would have an autonumber field called Recommendation_ID (I would make this
a primary key too) and a foreign key field (long integer) called Report_ID.
Lastly in the Tasks table, I would make a primary key called Task_ID and a
foreign key (long integer) called Recommendation_ID.
On my website (
www.rogersaccesslibrary.com), is a small Access database
sample called "SubForm3Levels.mdb" which takes this one step futher and adds
a fourth table (which you don't need). Take a look at the Relationships
window to see what the relationships look like. You can find the sample
here:
http://www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=263.
--
--Roger Carlson
MS Access MVP
Access Database Samples:
www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L