R
Rolls
frmMain is set up to enter data contained on a supplier's invoice to a
purchaser. The contact information on one invoice consists of 1) a company
name, 2) a physical address with several lines, and 3) an email address for
correspondence. Centralized sellers may have several affiliates located at
a common physical address. There can be several different email addresses
associated with the supplier at one physical address. Decentralized
suppliers typically have several addresses all using the same company name
and a different email address at each physical location. There can be
combinations of supplier + location + email for each invoice, but there can
be only one email address per supplier + location pair. As each invoice is
being entered there is other information in addition to the contact
information.
Q: frmMain is bound to tblInvoice. Each of the three contact items should
be a lookup. The supplier is first. Second the supplier's address should
be a lookup that is limited to the selected supplier. Once the pair is
determined, the email address should also be a lookup For each step if a
choice does not exist it should be capable of being added. It if does exist
it should be able to be edited.
What is the best way to setup tables/forms to accomplish this? Can they be
bound forms or is the situation too complex? It seems that what I want is
to be able to build a resolver table containing the supplierID + locationID
+ emailID pair PK and then insert the key into one FK field in tblInvoice.
Is there a better way?
purchaser. The contact information on one invoice consists of 1) a company
name, 2) a physical address with several lines, and 3) an email address for
correspondence. Centralized sellers may have several affiliates located at
a common physical address. There can be several different email addresses
associated with the supplier at one physical address. Decentralized
suppliers typically have several addresses all using the same company name
and a different email address at each physical location. There can be
combinations of supplier + location + email for each invoice, but there can
be only one email address per supplier + location pair. As each invoice is
being entered there is other information in addition to the contact
information.
Q: frmMain is bound to tblInvoice. Each of the three contact items should
be a lookup. The supplier is first. Second the supplier's address should
be a lookup that is limited to the selected supplier. Once the pair is
determined, the email address should also be a lookup For each step if a
choice does not exist it should be capable of being added. It if does exist
it should be able to be edited.
What is the best way to setup tables/forms to accomplish this? Can they be
bound forms or is the situation too complex? It seems that what I want is
to be able to build a resolver table containing the supplierID + locationID
+ emailID pair PK and then insert the key into one FK field in tblInvoice.
Is there a better way?