I am wondering if it is possible to use a If..The.. Else statement in a query to retrieve a calculated field number. I keep getting the error "The expression you have entered contains invalid syntax" " You may have entered an operand without an operator" whenever I try to run the Query.
Here is my expression:
Vapor Hg (ng/m3): If [Stop Hourmeter] = 0 Then [Vapor Hg (ng/m3)] = [Vapor Hg (ng/trap)] / [Total Flow (m3)] Else [Vapor Hg (ng/m3)] = [Ratio Cycle/Hour] * [Vapor Hg (ng/trap] / [Total Flow (m3)]
If anyone has an idea to help with this I would be very grateful.
Thanks,
Tamara
Here is my expression:
Vapor Hg (ng/m3): If [Stop Hourmeter] = 0 Then [Vapor Hg (ng/m3)] = [Vapor Hg (ng/trap)] / [Total Flow (m3)] Else [Vapor Hg (ng/m3)] = [Ratio Cycle/Hour] * [Vapor Hg (ng/trap] / [Total Flow (m3)]
If anyone has an idea to help with this I would be very grateful.
Thanks,
Tamara