Query criteria to pick a store or all stores?

afs24

Board Regular
Joined
Sep 26, 2002
Messages
237
I want to my users to be able to pick a specific store in my store feild criteria or be able to pick all stores. What should the criteria in my query look like for feild store? This what I'm trying...

[Enter Store or *] or Like "*"
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I do this a lot by creating a form where they select the criteria, and based on that, VBA code runs behind the scenes that builds the query using SQL.

Creating the SQL language is not that hard, because if you build the query in Access and then select "SQL view", it shows you what the final code should look like. However, if you are not experienced in VBA code and you want to pursue this option, you may want to pick up a good book on Access VBA. It will open up a world of possibilities for your database.
 
Upvote 0

Forum statistics

Threads
1,221,590
Messages
6,160,666
Members
451,662
Latest member
reelspike

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top