I'm sure there's an easy answer to this but its stumping me right now;
I have a checkbox on a user input form.
If the user ticks the checkbox, I want the query to return all records.
If the box is unchecked, I want the query exclude certain records.
I have used :
Like (IIf([forms]![ReportSelection]![check96]=-1,"*",<>"ADC9999"))
This works fine when checked, but returns zero records when unchecked.
Can someone please tell me where I am going wrong.
Many thanks.
Mark
I have a checkbox on a user input form.
If the user ticks the checkbox, I want the query to return all records.
If the box is unchecked, I want the query exclude certain records.
I have used :
Like (IIf([forms]![ReportSelection]![check96]=-1,"*",<>"ADC9999"))
This works fine when checked, but returns zero records when unchecked.
Can someone please tell me where I am going wrong.
Many thanks.
Mark