using combo box to select criteria

R

Randy

I have a form containing two combo boxes. I would like
the first combo box to filter out results to display in
the second combo box. Is there a relatively simple way
to do this? Thanks.
 
G

Gerald Stanley

The usual way is to compose the RowSource SQL for the
second comboBox in the first combo's AfterUpdate
eventHandler e.g.
combo2.RowSource = "SELECT ... FROM ... WHERE aColumn = '"
& combo1.Value & "'"

If the combo1 value is a number, you omit the surrounding
single quotes.

Hope This Helps
Gerald Stanley MCSD
 

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