Solved Query criteria. When no match, return all records (1 Viewer)

mafhobb

Registered User.
Local time
Yesterday, 23:26
Joined
Feb 28, 2006
Messages
1,245
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
 

mafhobb

Registered User.
Local time
Yesterday, 23:26
Joined
Feb 28, 2006
Messages
1,245
I figured it out!

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

Users who are viewing this thread

Top Bottom