CHANGING COMBO BOX OPTIONS

B

BRENNON

I have a form for entering information regarding stores.
I would like to have one combo box dictate the items
available in a different combo box. For instance, if I
chose the state of Pennsylvania in one combo box, I would
like the stores combo box to be limited only to stores
that are in the state of PA. Same with all other
states.

Is this possible? If so... what would the best approach
be?

Any advice would be greatly apprecaited.
 
S

Steve Schapel

Brennon,

Use a query for the Row Source of the second combobox. In the criteria
of the State field in this query, put...
[Forms]![NameOfYourForm]![NameOfYourStateCombobox]
.... and on the AfterUpdate event of your State combobox, put this code:
Me.NameOfYourStoresCombobox.Requery
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top