I have 3 tables tblBM, tblPCP, tblChildren.
What I need to do is have some way of having the tblBM inherit all the
surnames from tblPCP and tblChildren. I have tried using a few queries none
worked. Now in each table CaseNum is the unique ID. Can this be done, or
should I do something completely different. Please help. Much thanks in
advance.
You should almost certainly do something completely different: use
Access as it is designed, as a relational database.
Storing data (surnames) redundantly in two tables is NOT necessary,
and in fact it's bad design. Store the name once, and once only,
preferably in a table of People, and then use a Query joining this
table to your tblBM to display the names.
Also, one to one relationships are QUITE uncommon; if you're using
them for Subclassing or for field-level security you may be doing so
legitimately, but I fear that your tblChildren has fields named
Child1, Child2, Child3... which is *incorrect*. If you have a one
(case) to many (children) relationship, you should model it as a one
to many relationship - tblChildren would have its own Primary Key, and
a CaseNum as a foreign key linking it to the table of cases (tblBM??).
Each record in tblChildren would have information about one child; if
there are three children involved in a case, there would be three
records in this table.
You would then use Queries, Forms, and Reports to bring the data from
the tables together for display purposes. It is NOT necessary (nor
even a good idea) to pull all the information into one table!
John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps