ACC: Showing All Records (Including Null) in a Parameter Query (103181)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q103181
Moderate: Requires basic macro, coding, and interoperability skills.
SUMMARY
When you run a query that takes its parameters from a form, no
records are returned by the query if you leave the field blank. If you
type an asterisk (*) in the field, only records with non-Null values
are returned.
This article describes a method you can use to return all records,
including those with Null values, when you leave the parameter blank.
NOTE: A demonstration of the technique used in this article can be seen
in the sample file, Qrysmp97.exe. For information about how to obtain
this sample file, please see the following article in the Microsoft
Knowledge Base:
182568 ACC97: Microsoft Access 97 Sample Queries Available in Download Center
REFERENCES
For more information about this topic, search the Help Index for "like
operator," or ask the Microsoft Access 97 Office Assistant.
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kbhowto KB103181 |
---|
|