L
lexrpcv
Hi, I'm new to Access but have been studiously using the help, tutorials, and
forums. I seem to have the tables laid out but am now stuck at getting the
relationships worked out. Basically, I have 3 tables: 1-Contacts (people),
2-Programs , and 3- Organizations. Each contact works with one organization
but each organization may have more than one contact, so that is a
one-to-many relationship where the organization is one and the contacts are
many. So far so good.
However, each organization may work with more than one program, and each
program may have more than one organization (organizations collaborate to
sponsor programs). Similarly, each contact may work with more than one
program (but different contacts in each organization may work on different
programs). So I have also followed the tutorials and created two junction
tables, using contact ID and Program ID in one and Organization ID and
Program ID in the other.
What I don't understand now is...how do I work with these? I have created
basic forms for each table and the one-to-many functions thus far seem to be
working. But when I add to the program form the Contact ID (I'm selecting
the Contact ID field from the junction table, should I select it from the
Contact table?), it gives me a ?Name error. I want to be able to select all
of the contacts who work with that particular program--i.e. to list the
people involved in the program. Similarly, in the Program form I want to be
able to select all of the Organizations which work with that program...and
finally in an Organization form I want to select all of the Contacts who work
with that organization (easy, one-to-many) and all of the programs that the
Organization collaborates on. Sigh.
Is there a tutorial that I'm missing that will explain this? I am also
confused because the junction tables are empty and I'm not sure if they
should be filled somehow by me or if they will become filled as I use the
forms to describe each program/organization/contact. Or are junction tables
really just hidden tools that I should ignore?
Thanks so much for any direction you can give. I've seen a lot of posts
that include a lot of "VBA" and "SQL" and other abbreviations. I have no
clue what any of those mean so hopefully this can be a "open this, click
that, enter here" etc. sort of answer. Thanks again!!
forums. I seem to have the tables laid out but am now stuck at getting the
relationships worked out. Basically, I have 3 tables: 1-Contacts (people),
2-Programs , and 3- Organizations. Each contact works with one organization
but each organization may have more than one contact, so that is a
one-to-many relationship where the organization is one and the contacts are
many. So far so good.
However, each organization may work with more than one program, and each
program may have more than one organization (organizations collaborate to
sponsor programs). Similarly, each contact may work with more than one
program (but different contacts in each organization may work on different
programs). So I have also followed the tutorials and created two junction
tables, using contact ID and Program ID in one and Organization ID and
Program ID in the other.
What I don't understand now is...how do I work with these? I have created
basic forms for each table and the one-to-many functions thus far seem to be
working. But when I add to the program form the Contact ID (I'm selecting
the Contact ID field from the junction table, should I select it from the
Contact table?), it gives me a ?Name error. I want to be able to select all
of the contacts who work with that particular program--i.e. to list the
people involved in the program. Similarly, in the Program form I want to be
able to select all of the Organizations which work with that program...and
finally in an Organization form I want to select all of the Contacts who work
with that organization (easy, one-to-many) and all of the programs that the
Organization collaborates on. Sigh.
Is there a tutorial that I'm missing that will explain this? I am also
confused because the junction tables are empty and I'm not sure if they
should be filled somehow by me or if they will become filled as I use the
forms to describe each program/organization/contact. Or are junction tables
really just hidden tools that I should ignore?
Thanks so much for any direction you can give. I've seen a lot of posts
that include a lot of "VBA" and "SQL" and other abbreviations. I have no
clue what any of those mean so hopefully this can be a "open this, click
that, enter here" etc. sort of answer. Thanks again!!