rich.barry
Registered User.
- Local time
- Today, 08:22
- Joined
- Aug 19, 2001
- Messages
- 176
Can one set the criteria based on an iif statement, e.g.
iif([Forms]![Form1]![OptionGrp1]=0,Is Null, Not Is Null)
the idea being it looks at the value of the control and sets the criteria to Is Null or Not Is Null dependant on the control value.
I can't seem to make it work, and had to go to putting [Forms]![Form1]![OptionGrp1]=0 as an expression, putting a criteria of True, and a criteria of Is Null for the Field in the query. 2nd line (OR) equaled False , Not Is Null.
Would like to make the first idea work, as the query would be much tidier (4 OR statements vs 8)
Ta
Richard
iif([Forms]![Form1]![OptionGrp1]=0,Is Null, Not Is Null)
the idea being it looks at the value of the control and sets the criteria to Is Null or Not Is Null dependant on the control value.
I can't seem to make it work, and had to go to putting [Forms]![Form1]![OptionGrp1]=0 as an expression, putting a criteria of True, and a criteria of Is Null for the Field in the query. 2nd line (OR) equaled False , Not Is Null.
Would like to make the first idea work, as the query would be much tidier (4 OR statements vs 8)
Ta
Richard