I want to use two Combo Boxes on my form.
I want the first Combo Box to list some general categories, such as HOSPITAL, CHURCH, and BUSINESS.
I want the values in the second Combo Box to list the specific names of these organizations, such as Burkemont Church, Duke Hospital, First Presbyterian, Morganton Hospital, Stanford Hospital, First Baptist Church, etc.
The catch: I want to be able to somehow assign each value in the second combo box to one of the values in the first combo box, so that when I choose "HOSPITAL" in the first box, the only options that I will see in the second combo box are hospitals (Duke, Morganton, and Stanford). Likewise, when I choose "CHURCH" in the first box, I only want to see First Baptist, First Presbyterian and Burkemont.
I created two additional tables for this. (tell me if I shouldn't have):
I created a new field called "CategoryList," using the Lookup Wizard. I selected option 2 (I will type
in the values that I want), assigned two columns for this field, and typed my list (simplified for our purposes):
Col. 1 Col. 2
CHURCH Burkemont
CHURCH First Baptist
CHURCH First Presbyterian
HOSPITAL Duke
HOSPITAL NC Baptist
HOSPITAL Grace
I clicked on "Next," chose Col. 2 for my field that uniquely identifies the row, clicked on "Next" and named it "CategoryList."
I then added this "CategoryList" field to my form. It has a drop-down box which shows the above rows, but when I choose the the one I want, only the first column (CHURCH) is visible on my form, and I do not see the name of
the second organization column (First Baptist).
I am completely lost. This was so easily done in Lotus Approach (linking one combo box to a selection in another), and I feel like I'm in over my head with Access.
Does anyone know how to do this? If this is a complicated matter involving VBA programming, please also include information on where to enter the programming references you're talking about.
Thanks so much!!!
--
Marcia
I want the first Combo Box to list some general categories, such as HOSPITAL, CHURCH, and BUSINESS.
I want the values in the second Combo Box to list the specific names of these organizations, such as Burkemont Church, Duke Hospital, First Presbyterian, Morganton Hospital, Stanford Hospital, First Baptist Church, etc.
The catch: I want to be able to somehow assign each value in the second combo box to one of the values in the first combo box, so that when I choose "HOSPITAL" in the first box, the only options that I will see in the second combo box are hospitals (Duke, Morganton, and Stanford). Likewise, when I choose "CHURCH" in the first box, I only want to see First Baptist, First Presbyterian and Burkemont.
I created two additional tables for this. (tell me if I shouldn't have):
I created a new field called "CategoryList," using the Lookup Wizard. I selected option 2 (I will type
in the values that I want), assigned two columns for this field, and typed my list (simplified for our purposes):
Col. 1 Col. 2
CHURCH Burkemont
CHURCH First Baptist
CHURCH First Presbyterian
HOSPITAL Duke
HOSPITAL NC Baptist
HOSPITAL Grace
I clicked on "Next," chose Col. 2 for my field that uniquely identifies the row, clicked on "Next" and named it "CategoryList."
I then added this "CategoryList" field to my form. It has a drop-down box which shows the above rows, but when I choose the the one I want, only the first column (CHURCH) is visible on my form, and I do not see the name of
the second organization column (First Baptist).
I am completely lost. This was so easily done in Lotus Approach (linking one combo box to a selection in another), and I feel like I'm in over my head with Access.
Does anyone know how to do this? If this is a complicated matter involving VBA programming, please also include information on where to enter the programming references you're talking about.
Thanks so much!!!
--
Marcia