D
Derek Brown
Hi All
I have a query that gets one of its criteria from a combo box called "User"
on my form. Most of the time I want the records selected using the combo's
text. But sometimes I want this criteria to be ignored and show all records.
To do this I wanted to put a check box on the form with name "X" and a
value -1 or 0. and I was hoping that with the following in the relative
criteria row it might do it. Hope you can see what I am trying to do.
IIf([Forms]![MainForm]![X]=0,[Forms]![MainForm]![User]),Not
[Forms]![MainForm]![User])
Obviously it doesn't or I would not be pestering you. Any Ideas?
I have a query that gets one of its criteria from a combo box called "User"
on my form. Most of the time I want the records selected using the combo's
text. But sometimes I want this criteria to be ignored and show all records.
To do this I wanted to put a check box on the form with name "X" and a
value -1 or 0. and I was hoping that with the following in the relative
criteria row it might do it. Hope you can see what I am trying to do.
IIf([Forms]![MainForm]![X]=0,[Forms]![MainForm]![User]),Not
[Forms]![MainForm]![User])
Obviously it doesn't or I would not be pestering you. Any Ideas?