Hello
I have a query that I need to run several times but one field, [FACTOR] needs to change every time the query is run.
Is there a way to pass a variable into a query that will change the field it references.
The first time I run it I want factor to be PE, the next time CF the next Earnings.
I tried using the IIF statement but the query would need to change each time a factor is added.
Is there a way to pass a variable directly into the query for the field name.
THANKS IN ADVANCE
for your help
I have a query that I need to run several times but one field, [FACTOR] needs to change every time the query is run.
Is there a way to pass a variable into a query that will change the field it references.
The first time I run it I want factor to be PE, the next time CF the next Earnings.
I tried using the IIF statement but the query would need to change each time a factor is added.
Is there a way to pass a variable directly into the query for the field name.
THANKS IN ADVANCE
for your help