G
Guest
I want to enter criteria based on a form. I have 2 check boxes.
If the first one is checked, I want "3230" to be the criteria --> "Like 3230"
If 2nd one is checked I want everything but 3230. --> "Not Like 3230"
If none are checked, return everything. --> "Like *"
This worked fine when I only had to deal with "Like 3230" and "Like *"
I had this in criteria --> Like IIf([Forms]![Main Screen]![chk3230],3230,"*")
So now I think I need something like
iif([Forms]![Main Screen]![chkNot3230],"Not","") Like IIf([Forms]![Plant FTC
Main Screen]![chkRootCause] or [Forms]![Main Screen]![chkNot3230],3230,"*")
so I end up with "Not Like 3230" when chknot3230 is marked. but I don't get
any records for the previous attempt. I have verified that records will be
returned if I just type "Not Like 3230".
Any ideas?
Thanks
Nathan
If the first one is checked, I want "3230" to be the criteria --> "Like 3230"
If 2nd one is checked I want everything but 3230. --> "Not Like 3230"
If none are checked, return everything. --> "Like *"
This worked fine when I only had to deal with "Like 3230" and "Like *"
I had this in criteria --> Like IIf([Forms]![Main Screen]![chk3230],3230,"*")
So now I think I need something like
iif([Forms]![Main Screen]![chkNot3230],"Not","") Like IIf([Forms]![Plant FTC
Main Screen]![chkRootCause] or [Forms]![Main Screen]![chkNot3230],3230,"*")
so I end up with "Not Like 3230" when chknot3230 is marked. but I don't get
any records for the previous attempt. I have verified that records will be
returned if I just type "Not Like 3230".
Any ideas?
Thanks
Nathan