Re: 2 subforms linking to a main form
From: Jeff Boyce (JeffBoyce_IF_at_msn.com-DISCARD_HYPHEN_TO_END)
Date: 10/05/04
- Next message: Jeff Boyce: "Re: Modify table to include calculated values"
- Previous message: Jeff Boyce: "Re: Relationships."
- In reply to: Harder than it looks: "2 subforms linking to a main form"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 5 Oct 2004 05:58:53 -0700
A first observation -- change the name of your table named "Name". "Name"
is a reserved word in Access, so you will only confuse both Access and
yourself unless you change it. A common table name for information about
persons is ... Person, or tblPerson.
You may need to go back to the drawing board (no, literally!). Shut off
your computer and grab paper and pencil. Your data structure may benefit
from a bit more normalization. Designing the underlying data structure is
something you do with paper and pencil, sketching out possible tables and
relationships.
Based on your description, it sounds like you have persons, states and
companies. So far, so good. But you also described what sounds like
relationships involving persons and states, and persons and companies. Your
current design doesn't have any tables to hold these.
For example, if a person can have worked at multiple companies, and the same
company could have multiple persons who had worked there, you have a
many-to-many relationship. You can only resolve this in Access using a
third table, perhaps something like:
trelPersonCompany
PersonCompanyID
PersonID (from the tblPerson)
CompanyID (from the tblCompany)
DateEmployed (date person started at company)
DateLeft (date person left the company)
A similar situation would apply if you have a many-to-many relationship
between persons and states.
-- Good luck Jeff Boyce <Access MVP>
- Next message: Jeff Boyce: "Re: Modify table to include calculated values"
- Previous message: Jeff Boyce: "Re: Relationships."
- In reply to: Harder than it looks: "2 subforms linking to a main form"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|