I have a form ( ViewComplaintsBySelection ) which has a combobox. When I select an entry from the combo box it runs a query to select records. This works correctly until I leave the combobox blank. At this stage NO records are returned – I want to display all records if it is blank.
The criteria for the forms is selecting data using the following:
IIf(IsNull([Forms]![ViewComplaintsBySelection]![SelectProduct]),Null,[Forms]![ViewComplaintsBySelection]![SelectProduct])
I’ve tried replacing the NULL in the middle of this query with:
“”
Like “*”
“XXXXX”
but nothing seems to allow the selection of all records via this.
I’ve also tried using =”” instead of IsNull for the first part of the criteria with no joy.
Any suggestions?