What i'm trying to do is enter into a text box on a form a number which will then be the criteria for two different fields in a query. But it can be either both of the fields or just one of them that has it. The criteria isnt necessary, so if nothing is entered in the box then theres no criteria for those fields.
Here is what I entered in field in the QBE, but doesnt work:
Code:
Expr 1: IIf(Not IsNull([Forms]![Predictive_Form2]![Text14]),True,[MET_ATCK] Or [VEH_ATCK]=[Forms]![Predictive_Form2]![Text14]) OR
IIf(IsNull([Forms]![Predictive_Form2]![Text14]),True,[MET_ATCK] Or [VEH_ATCK]=" " OR "*")
It just returning all records with a -1 in Expr 1 column.
If someone could help me modify it or go a different route i'd appreciate it.