Solved Query criteria. When no match, return all records

mafhobb

Registered User.
Local time
Today, 12:00
Joined
Feb 28, 2006
Messages
1,249
Hi. I have a simple query with the criteria based on a value in a field:
Code:
=[Forms]![frmDocumentParameters]![cmbCleanerSelected]
This works fine when I have data in the combobox. However, what I need is for the query to return all records if the combobox is empty.
How do I do this?
mafhobb
 
I figured it out!

Code:
=[Forms]![frmDocumentParameters]![cmbCleanerSelected] Or [Forms]![frmDocumentParameters]![cmbCleanerSelected] Is Null
 

Users who are viewing this thread

Back
Top Bottom