Use textbox to show ALL values in a query

echorley

Registered User.
Local time
Today, 12:42
Joined
Mar 11, 2003
Messages
131
I have a table with various school names and a form with a combo box with these school names. I can easily select a single school and the query will show only the data for that school building.

How do I set up the combo box or the criteria in the query if I want the query to show ALL of the buildings?

I have tried the following where I select the word "ALL" in the combo box and then the following text is automatically inserted into the text box txtChooseBuilding:

Me.txtChooseBuilding = "Central" Or "Gates" or "Hill"

Then I set the criteria in the query to point to this field on my form, but the query came up empty.

Even better would be a list box where I could select which buildings I want. However, the query criteria seems a bit tricky with a list box.
 

Users who are viewing this thread

Back
Top Bottom