Have a real problem with checkboxes in a query.
I have all the query fine for when all or one or even some of the checkboxes are ticked.
The problem occurs if no checkboxes are ticked, for some reason it won't show all records.
EXAMPLE: "TRYING TO SHOW ALL RECORDS IF ALL BOXES ARE NOT CHECKED"
IIf([Forms]![SEARCH]![Check428]="0" And [Forms]![SEARCH]![Check430]="0" And [Forms]![SEARCH]![Check432]="0" And [Forms]![SEARCH]![Check434]="0" And [Forms]![SEARCH]![Check436]="0","*")
"AND THIS IS WHAT I HAVE TO SHOW IF ONE SOME OR ALL CHECKBOXES HAVE A TICK"
IIf([Forms]![SEARCH]![Check428]="-1","c")
IIf([Forms]![SEARCH]![Check432]="-1","m")
IIf([Forms]![SEARCH]![Check430]="-1","f")
IIf([Forms]![SEARCH]![Check436]="-1","g")
I'm not using VBA or SQL as I don't know how to incorporate it, I'd rather just build a parameter expression if anyone can help - thanks.
IIf([Forms]![SEARCH]![Check434]="-1","h")
I have all the query fine for when all or one or even some of the checkboxes are ticked.
The problem occurs if no checkboxes are ticked, for some reason it won't show all records.
EXAMPLE: "TRYING TO SHOW ALL RECORDS IF ALL BOXES ARE NOT CHECKED"
IIf([Forms]![SEARCH]![Check428]="0" And [Forms]![SEARCH]![Check430]="0" And [Forms]![SEARCH]![Check432]="0" And [Forms]![SEARCH]![Check434]="0" And [Forms]![SEARCH]![Check436]="0","*")
"AND THIS IS WHAT I HAVE TO SHOW IF ONE SOME OR ALL CHECKBOXES HAVE A TICK"
IIf([Forms]![SEARCH]![Check428]="-1","c")
IIf([Forms]![SEARCH]![Check432]="-1","m")
IIf([Forms]![SEARCH]![Check430]="-1","f")
IIf([Forms]![SEARCH]![Check436]="-1","g")
I'm not using VBA or SQL as I don't know how to incorporate it, I'd rather just build a parameter expression if anyone can help - thanks.
IIf([Forms]![SEARCH]![Check434]="-1","h")