Hallo,
I have a parameter query that refers to a form.
If the checkbox is checked (0 or No) then it should display the records where the field is = 0 (this field is a count field); if checkbox is not checked it should display all the records where the count fields is <> different than 0.
The expression iI'm using is this:
IIf([Forms]![frm_main]![Chk_Org]=0;0;<>0)
but it doesn't work.
the strange thing is that if I try the two statements (0 ; <>=) everything is fine, but if I put them into the iff function they don't work.
I also tried different variations like [chk_Org]="No" or Not 0 instead of <> 0...
Any idea?
I have a parameter query that refers to a form.
If the checkbox is checked (0 or No) then it should display the records where the field is = 0 (this field is a count field); if checkbox is not checked it should display all the records where the count fields is <> different than 0.
The expression iI'm using is this:
IIf([Forms]![frm_main]![Chk_Org]=0;0;<>0)
but it doesn't work.
the strange thing is that if I try the two statements (0 ; <>=) everything is fine, but if I put them into the iff function they don't work.
I also tried different variations like [chk_Org]="No" or Not 0 instead of <> 0...
Any idea?