M
Matthew
Hello,
I have a contact database tracking people, companies, and their
affiliations. An address may be stored in any of three tables, tblPeople,
tblCompanies and tblAffiliations.
tblAffiliations has a field where one can select which address is that
person's main address. If MailngAddress = 1, I want the mailing address to
be their company address, 2 = affiliation address, and 3 = home address.
In my frmPeople there's a sbfrmAffiliations. I have a list box to select
main address as Company, Affiliation or Home.
I can get it so that the proper address appears, concatenated, in an unbound
textbox on the subform, by doing something like this:
if me.lbSelect = 1 then
me.txtMailingAddress.ControlSource = "CompanyAddress"
end if
if me.lbSelect = 2....and so on..
The problem is, the sbfrmAffiliations is set to show Continuous Forms. If a
person has more than one affiliation, the listbox selection affects each of
those records.
My objective is for the user to select which address should be this
affiliation's mailing address, then see the concatenated address displayed
right there.
I'm not completely confident in my structure - I had heard something about
keeping all addresses in their own table, but that seemed more difficult to
me.
Any suggestions would be most welcome!
Thanks,
Matthew
I have a contact database tracking people, companies, and their
affiliations. An address may be stored in any of three tables, tblPeople,
tblCompanies and tblAffiliations.
tblAffiliations has a field where one can select which address is that
person's main address. If MailngAddress = 1, I want the mailing address to
be their company address, 2 = affiliation address, and 3 = home address.
In my frmPeople there's a sbfrmAffiliations. I have a list box to select
main address as Company, Affiliation or Home.
I can get it so that the proper address appears, concatenated, in an unbound
textbox on the subform, by doing something like this:
if me.lbSelect = 1 then
me.txtMailingAddress.ControlSource = "CompanyAddress"
end if
if me.lbSelect = 2....and so on..
The problem is, the sbfrmAffiliations is set to show Continuous Forms. If a
person has more than one affiliation, the listbox selection affects each of
those records.
My objective is for the user to select which address should be this
affiliation's mailing address, then see the concatenated address displayed
right there.
I'm not completely confident in my structure - I had heard something about
keeping all addresses in their own table, but that seemed more difficult to
me.
Any suggestions would be most welcome!
Thanks,
Matthew