G
Guest
I have a Person and an Address table. The relevant fields are:
Person.ID
Person.defaultAddress
Address.ID
Address.PersonID
Address.category
These two tables have a one-to-many relationship between Person.ID and
Address.PersonID. I have it set up like this so that each Person record can
store multiple address records.
I have a form based on the Person table. I would like to create a combo box
entitled "Default Address" that does the following:
A) populates the selection list (via a RowSource statement?) with the
Address.category values for the currently selected Person record,
Example:
Person #30 has two addresses stored in the Address table, as follows:
ID, PersonID, category, ...
3, 30, Home, ...
4, 30, Work, ...
On my Person form, the combo box would list "Home" and "Work" as possible
selections.
B) stores the Address.ID for the selected Address.category value in the
Person.defaultAddress field.
Example:
When I select "Home" in the combo box for Person #30, the value "3" is
stored in the Person.defaultAddress field.
Any ideas how I can do this? Is this even possible?
Thank you in advance for your assistance.
Person.ID
Person.defaultAddress
Address.ID
Address.PersonID
Address.category
These two tables have a one-to-many relationship between Person.ID and
Address.PersonID. I have it set up like this so that each Person record can
store multiple address records.
I have a form based on the Person table. I would like to create a combo box
entitled "Default Address" that does the following:
A) populates the selection list (via a RowSource statement?) with the
Address.category values for the currently selected Person record,
Example:
Person #30 has two addresses stored in the Address table, as follows:
ID, PersonID, category, ...
3, 30, Home, ...
4, 30, Work, ...
On my Person form, the combo box would list "Home" and "Work" as possible
selections.
B) stores the Address.ID for the selected Address.category value in the
Person.defaultAddress field.
Example:
When I select "Home" in the combo box for Person #30, the value "3" is
stored in the Person.defaultAddress field.
Any ideas how I can do this? Is this even possible?
Thank you in advance for your assistance.