Iám having problems with a criteria in a query. The field is a yes/no field.
I have a yes/no field on a form which i can check of uncheck. The field is called [yesno_rap_grl].
In the query criteria i have;
Expand|Select|Wrap|Line Numbers
- IIf([Forms]![frm_rapporten].[yesno_rap_grl]=True;False;([tbl_trajecten].[tr_eig_grl])=True Or ([tbl_trajecten].[tr_eig_grl])=False)
When [yesno_rap_grl] is checked i get all the records except the ones that have the field [tr_eig_grl] true.
THIS WORKS FINE
When [yesno_rap_grl] is not checked i get all the records that have the field [tr_eig_grl] true.
THIS IS NOT WHAT I WANT
When [yesno_rap_grl] is not checked i want to get all the records regardless if the field [tr_eig_grl] is true of false.
Does anybody have an idea on how to write the right line in the "criteria" portion of the query ?
Thanks in advance for your help !!!
Best regards,
Pierkes