I have a form with a checkbox (chkEntireList). In the query OnEDList is a Yes/No field. I want if chkEntireList is UNchecked then OnEDList Criteria = 0, but if chkEntireList is checked then return all records. I have tried the following in OnEDList critera box:
If chkEntireList is unchecked, then I get the correct records returned, but if it is checked, I only get records with a -1 value and not all records. I thought this should work because if I enter = 0 Or -1 in the criteria box I do get all records.
Is there another way to approach this task.
Thank you in advance.
You don't know what you don't know...
Code:
IIf([forms]![frmRxApproval]![chkEntireList]=-1,0 Or -1,0)
If chkEntireList is unchecked, then I get the correct records returned, but if it is checked, I only get records with a -1 value and not all records. I thought this should work because if I enter = 0 Or -1 in the criteria box I do get all records.
Is there another way to approach this task.
Thank you in advance.
You don't know what you don't know...