Thanks for responding! Well, I checked the settings that you referred to in your response and they are set to 'yes'. It seems as though what I am trying to do is so simple, but still not working. I don't have any SQL since I don't know how to formulate that. If I may, let me just break down the fields that are to be used in the query:
You do have SQL - you just haven't seen it because you haven't needed
to! All Forms have a "Recordsource" property; even if you base the
form on a table, Access creates a hidden Query - and the language of
Queries is SQL. You can open the form in design view, click the ...
icon, accept Access' offer to create (actually expose) a query, and
use View... SQL to see (and to copy and paste) the SQL.
Subject Data Table: 'NAME' and then many more fields that are likely not relevant to the link in the query
Address Table: 'NAME', 'ADD #', 'STREET ADD', 'CITY', 'TYPE', 'SMUD'
Name is a bad idea for several reasons. For one, NAME is a reserved
word in Access; for another, it's a LOUSY key, since people's names
are not unique. I know three men named Fred Brown right here in little
Parma.
Your Subject table should - I'd say MUST - have a Primary Key,
SubjectID let's call it, otherwise there is no way to uniquely
identify a person. I'd split the namefield into FirstName and LastName
so that they can be sorted and displayed independently, and add an
Autonumber field.
How do primary keys get involved? I have the 'NAME' field set as the key in the 'Subject Date' table, but was thinking I need to make an auto id number primary key for the 'address' table since I have multiple addresses for the same name making it so I can't use that field for the key. Is this right?
You should have a Primary key field in the Address table... and ALSO a
Foreign Key field, SubjectID. If the Subject table SubjectID is an
Autonumber make this a Long Integer field.
I have made the main Form based on the 'subject data' table and the subform based on the query between the two tables.
That's the problem. The subform should be based JUST on the Address
Table; with your current design use NAME as the master/child link
field to show only the address(es) for that name. With my suggested
revision, use SubjectID as the master/child.
I tried playing with 'cascading' updates but it won't set the relationship since I have multiple address with the same name in the 'addresss table'.
Well... you WANT to have a one to many relationship, from the Primary
Key of the "one" side table (Subjects) to the Foreign Key (not the
primary key!) in the Many side table (Addresses). That's how
relationships WORK.