T
Tom
In a Query, I have a Text Field named Brand that gets it's value from a
drop down box on a Form, [Forms]![Main Form]![CompBrand].
I have another Field in the query named ProductLine that is an Integer. If
the Brand is a certain name, I want one number result and if not, another
number result.
I tried this statement on the Criteria Line for ProductLine:
IIf([Forms]![Main Form]![CompBrand]="BrandX",302 or 312,312)
Neither one of the alternatives will pass as criteria to ProductLine. If I
enter 302 or 312 on the Criteria Line for ProductLine, all is fine.
I am thinking there is a syntax error. Am I close?
TIA!
drop down box on a Form, [Forms]![Main Form]![CompBrand].
I have another Field in the query named ProductLine that is an Integer. If
the Brand is a certain name, I want one number result and if not, another
number result.
I tried this statement on the Criteria Line for ProductLine:
IIf([Forms]![Main Form]![CompBrand]="BrandX",302 or 312,312)
Neither one of the alternatives will pass as criteria to ProductLine. If I
enter 302 or 312 on the Criteria Line for ProductLine, all is fine.
I am thinking there is a syntax error. Am I close?
TIA!