troubleshooting Question

Access - if Form Text is Blank (null) show all results

Avatar of NuclearOil
NuclearOilFlag for United States of America asked on
Microsoft AccessSQL
3 Comments1 Solution373 ViewsLast Modified:

I am writing a query that breaks down a report by customer. The customer field (Text0 on the form) is in a form so the user can select a customer and bring up the data in the query for that customer. I am trying to write a IIF statement in the query that if the customer (Text0 is the field on the form) is blank or null then it will show all the customers. Doesn't want to work for me:

IIf(Null,[Open Orders]![Customer],[Forms]![OOR]![Text0])

Any help is appreciated.
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros