M
mrs
I have a form with some controls on it including a
checkbox. I want to know how to change the WHERE clause
depending if the checkbox is checked or not.
Here is my WHERE:
WHERE (((tblEvents.ProductID)=[forms]![frmStrtDtStrBy]!
[cmbProductName]) AND ((tblEvents.CompletedByDate)=IIf
([Forms]![frmStrtDtStrBy]![Check78]="Yes",Not Null,Null)))
ORDER BY tblEvents.StartDate, tblEvents.AssignedToID;
I am using the IIF expression. I verified all of form
namse and they are corrrect. Any ideas on how to do this?
Thanks,
mrs
checkbox. I want to know how to change the WHERE clause
depending if the checkbox is checked or not.
Here is my WHERE:
WHERE (((tblEvents.ProductID)=[forms]![frmStrtDtStrBy]!
[cmbProductName]) AND ((tblEvents.CompletedByDate)=IIf
([Forms]![frmStrtDtStrBy]![Check78]="Yes",Not Null,Null)))
ORDER BY tblEvents.StartDate, tblEvents.AssignedToID;
I am using the IIF expression. I verified all of form
namse and they are corrrect. Any ideas on how to do this?
Thanks,
mrs