Limit entries in dropdown list based upon earlier selection in th.

G

Guest

How do I limit a dropdown list to a specific set of records in a table based
upon an earlier selection by a user in a form?
 
G

Guest

How do you get the second list to requery. After a selection is made on the
first drop down the second drop down has the sub list of the first selection
and never changes. Hope that makes sense. Thank you.
 
D

Dirk Goldgar

"Edward Jones (Eddie)" <[email protected]>
wrote in message
How do you get the second list to requery. After a selection is made

Requerying the combo box is done by executing a statement like this:

Me!YourComboBoxName.Requery

If you use the technique where the second combo box's RowSource is a
query that refers to the first combo box as a criterion, then you have
to requery it in the AfterUpdate event of the first combo box, and
also -- if these are bound combo boxes -- in the form's Current event.
If you use the alternative technique where you rewrite the combo box's
RowSource SQL statement in the AfterUpdate event of the first combo box,
you don't have to requery it, but -- if the first combo box is bound --
you do have to rewrite the rowsource SQL in the form's Current event as
well.
 

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