Two Dynamic Combo Boxes

posfog

Board Regular
Joined
Jun 2, 2009
Messages
171
Hello All!
Thanks for reading first off

What i want to beable to do is have two combo boxes on a form which when i select a Zone then the second combo box only shows details assoicated with that Zone.

I have looked at this video on you tube
https://www.youtube.com/watch?v=pMiJHhjzC8Y

With that in mind i created the following
Two tables called
Zone
Issue


Within my form (called job card) created two combo boxes which pull data from the above tables
Combo boxes are called
Zonecombo (pulls data from zone table)
stationcombo (pulls data from issue table)

Both combo boxes work fine independently on the form

I then created a query with following details

Field: | Zone | Station
Table: | Issue |Issue
Sort: | |
Show: | Tick | Tick
Criteria:| [Forms]![JOB CARD]![Zonecombo] |
or: | |

(sorry for the above but i have no way of attaching a screen shot)


So i think i have followed the video to the letter (apart from names are different) but when i run the form i can not get it to work.

When i select on zone i still get the full list that is shown on the issue table.

The only thing is i am thinking on the issue table does the zone number need to be the first column as when i looked that the video the one table is showing the city then the state, so my issue table is showing the issue then the zone

Hope someone could be kind enough to help or point me in right direction

Kind Regards
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
In the AfterUpdate of the Zone combo, you need to requery the Station combo.
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,020
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top