A
ace
I have posted this question before and posting it again since I have not
received a response for my particular example below. Basically, question is
how can I setup a combo box so that the combo box2 either shows a name from a
table field or a list of names depending on the selection in combo box1.
A simple example will go a long way, and I appreciate your help.
It is a real estate application and followings are my tables;
tblResourceType
1 Seller
2 Seller Agent
3 Office Assistant
4 Virtual Assistant
5 Buyer
5 Buyer Agent
tblTransaction (this table contains all transaction information)
ID-Transaction
ID-Seller
ID-Buyer
ID-SellerAgent
ID-BuyerAgent
tblSeller
ID-Seller
tblBuyer
ID-Buyer
tblSellerAgent
ID-SellerAgent
tblBuyerAgent
ID-BuyerAgent
tblAssistant (contains Virtual Assistant, Office Assistant, etc.)
ID-Assistant
In a form, I select the Resource Type using a combo box and using the table
tblRsourceType. Correspondinly, I need to pull and display the name of the
person for a particular ID-Transaction or a list of person to select from. In
cases like buyer/seller/buyeragent/selleragent the tblTansaction table which
contains the foreign key for those four resource types. However, if Office
Assistant or Virtual Assistant is selected, I may have a list of Office
Assistant or list of Virtual Assistant to select from. So, when those are
selected I need to show the list of assistants to a user to select one from.
I appreciate any help in coding this.
Thanks,
AC
received a response for my particular example below. Basically, question is
how can I setup a combo box so that the combo box2 either shows a name from a
table field or a list of names depending on the selection in combo box1.
A simple example will go a long way, and I appreciate your help.
It is a real estate application and followings are my tables;
tblResourceType
1 Seller
2 Seller Agent
3 Office Assistant
4 Virtual Assistant
5 Buyer
5 Buyer Agent
tblTransaction (this table contains all transaction information)
ID-Transaction
ID-Seller
ID-Buyer
ID-SellerAgent
ID-BuyerAgent
tblSeller
ID-Seller
tblBuyer
ID-Buyer
tblSellerAgent
ID-SellerAgent
tblBuyerAgent
ID-BuyerAgent
tblAssistant (contains Virtual Assistant, Office Assistant, etc.)
ID-Assistant
In a form, I select the Resource Type using a combo box and using the table
tblRsourceType. Correspondinly, I need to pull and display the name of the
person for a particular ID-Transaction or a list of person to select from. In
cases like buyer/seller/buyeragent/selleragent the tblTansaction table which
contains the foreign key for those four resource types. However, if Office
Assistant or Virtual Assistant is selected, I may have a list of Office
Assistant or list of Virtual Assistant to select from. So, when those are
selected I need to show the list of assistants to a user to select one from.
I appreciate any help in coding this.
Thanks,
AC