Mark said:
I am a new user trying to create a one-to-many relationship between
two tables. When I use the relationship diagram window to define the
relationship it is always defined as a one-to-one relationship. Ho
can I make the relationship one-to-many? I greatly appreciate your
help with this question!
(the fields involved are an auto-number field and a long integer
number field.)
Hopefully it's the auto number that you want as the "One" and the other long
integer as the many.
If there is no data in either table, just make sure the field that you want
to be the "one" is the primary key in it's tabel, and that the "many" field
is not a primary key (in fact there most likely won't be a primary key in
the "many" table).
When you initiate the join by dragging one field to the other, a dialog
should pop up detailing the nature of the join and giving you the option to
enforce referential integrity. If you take this option then you will have
created a one-to-many relationship. If there is data in either of the tables
which would conflict with the referential integrity rules that you are
attempting to create, Access won't allow you to create them. You'll need to
fix the data first.
HTH
Damo