M
Matthew
Hello,
We have a contact database and I'm having a hard time displaying a person's
preferred address. Here's our setup:
tblPeople
*PersonID
PersonName
tblCompanies
*CompanyID
CompanyName
CompanyAddress
tblAffiliations
*AffiliationID
CompanyID
PersonID
AffiliationAddress
UseAffiliationAddress
This structure allows a person to work at a company yet maintain a separate
work address. When UseAffiliationAddress is checked, then their affiliation
address, not the company's address, is their preferred mailing address.
I have a form for People (frmPeople), with a subform showing a person's
affiliations (sbfrmAffiliations). On this subform, I would like to display
either the company address or the affiliation address, depending on whether
UseAffiliationAddress is checked.
My approach is to have both addresses, but only make the selected one
visible. The problem is that if a person has more than one affiliated
company (sbfrmAffiliations is set to Continuous Forms), when I check
UseAffiliationAddress for one record, all of that person's affiliated
records respond the same.
For example, say a person works for ACME, but also works for KAOS. They're
at ACME's main address, but correspondance to them for KAOS should go to
their PO BOX address.
How can I, with continuous forms, have the proper address appear for each
affiliation? If I check UseAffiliationAddress for one, both of them
respond. If I uncheck it, I only see both company addresses.
Does this make sense? I must be looking at this wrong...
Thanks!
Matthew
We have a contact database and I'm having a hard time displaying a person's
preferred address. Here's our setup:
tblPeople
*PersonID
PersonName
tblCompanies
*CompanyID
CompanyName
CompanyAddress
tblAffiliations
*AffiliationID
CompanyID
PersonID
AffiliationAddress
UseAffiliationAddress
This structure allows a person to work at a company yet maintain a separate
work address. When UseAffiliationAddress is checked, then their affiliation
address, not the company's address, is their preferred mailing address.
I have a form for People (frmPeople), with a subform showing a person's
affiliations (sbfrmAffiliations). On this subform, I would like to display
either the company address or the affiliation address, depending on whether
UseAffiliationAddress is checked.
My approach is to have both addresses, but only make the selected one
visible. The problem is that if a person has more than one affiliated
company (sbfrmAffiliations is set to Continuous Forms), when I check
UseAffiliationAddress for one record, all of that person's affiliated
records respond the same.
For example, say a person works for ACME, but also works for KAOS. They're
at ACME's main address, but correspondance to them for KAOS should go to
their PO BOX address.
How can I, with continuous forms, have the proper address appear for each
affiliation? If I check UseAffiliationAddress for one, both of them
respond. If I uncheck it, I only see both company addresses.
Does this make sense? I must be looking at this wrong...
Thanks!
Matthew