Home  |  About  |   Search   

What's New
Table Of Contents
Credits
Netiquette
10 Commandments 
Bugs
Tables
Queries
Forms
Reports
Modules
APIs
Strings
Date/Time
General
Downloads
Resources
Search
Feedback
mvps.org

RunCommand Constants

Terms of Use


 

Queries: Use a parameter to return all records if Null

Author(s)
Dev Ashish

(Q) I'm using a control on a form as a parameter for my query. I've defined the criteria in the query as

[Forms]![myForm]![myControl]

How do I set this up so that if the field is left blank, all records are returned by the query?

(A) Change the criteria in the query to

[Forms]![myForm]![myControl] OR [Forms]![myForm]![myControl] Is Null


1998-2009, Dev Ashish & Arvin Meyer, All rights reserved. Optimized for Microsoft Internet Explorer