Link to home
Start Free TrialLog in
Avatar of wlasner
wlasnerFlag for United States of America

asked on

Define a parameter query to ask for a selection but return all records if left blank

Microsoft Access 2016
I want to define a parameter query to ask for a selection but return all records if left blank.
I am using Like [Enter Location] .... this works fine. but there are times I want to run the report for all locations.
I tried like [Enter Location] or Like * but this did not work.

Any suggestions would be greatly appreciated.
thanks
Wayne
Avatar of Paul Cook-Giles
Paul Cook-Giles
Flag of United States of America image

You want Like "*" & [Enter Location:] & "*"
ASKER CERTIFIED SOLUTION
Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wlasner

ASKER

Worked perfect.
Thank you