set listbox rowsource from a command button

W

Walter

I'm trying to adapt Allen Brown's flexible search form dynamic criteria
builder to set the rowsource of a listbox. I've put the code in the Click
event of the command button. The strWhere is building correctly. My
question is where do I put the Listbox.RowSource = "Select field1, field2,
from table1" and how do I include the strWhere to filter the results?
Everything I've tried so far has failed.
 

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