<>
yes. You can move the logic into a Function in a general module and then call the function from the queries. The only trick is is that you must pass in a field name to the function so it gets called for each row. Doesn't matter what field it is or even if the function uses it, just that you pass one (it's because of the optimizer that runs queries).
Post your IIF and I'll show you how to put it in a function.
JimD.