Access parameter query and wildcards

Access - I have a report with a parameter query and sometimes I want everything instead of just one thing.
Example: I may want all "Crafts" and one "Tag Number"    or   One "Craft" and all "Tag Numbers"

Is there a way to use wildcards so I don't have to go in and change the query every time?

See attachment
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
Been a long time since I did it that way, but if memory serves, just leaving it blank when it prompts should do it.

Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
Actually I just tried it and it doesn't.

Add a column with the parameter name, then underneath add an "OR" condition of IS NULL:

Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
BTW, if you write it this way:

[Enter days] or [Enter days] Is Null

When you save the query, the designer will split that out into multiple columns on it's own.   but you may find it easier to do it that way if you have a lot of conditions.

Also, don't leave all those fields set to 'GROUP BY' - it's going to try and sort on the first 10.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
and one more thought; you can use "Like" for the criteria check and then type an *:

Like [Enter Days]

and get all records that way, but like is a pretty good performance hit.   Might want to use it though if you only have one or two criteria checks.

ssblueCoordinatorAuthor Commented:
Thanks for all the information.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.