S
SAm
Hi
I am running a query and then another query on top of that. so the first one
has a iif statement for department and second query uses the department to
look up a rate. i am looping in vba to get this queries to run for multiple
identical tables. which means, in each loop i will rewrite the query (1 and
2) to select from a table_loop_x, so that each table can be queried. for one
query this is simple. my question is since this is one query on top of
another, what is the best way to do this.
alternatives:
1. store query1 as a query and then use vba to save my qurey as a querydef.
problem is i don't like using dao, i am more familiar with ado.
2. open first query as a recordset and then query that recordset.
not sure if there is another way to do this. please help me out. (also, if
you have the dao script it will help immensely, since i am not so familiar
with that)
thanks,
sam
I am running a query and then another query on top of that. so the first one
has a iif statement for department and second query uses the department to
look up a rate. i am looping in vba to get this queries to run for multiple
identical tables. which means, in each loop i will rewrite the query (1 and
2) to select from a table_loop_x, so that each table can be queried. for one
query this is simple. my question is since this is one query on top of
another, what is the best way to do this.
alternatives:
1. store query1 as a query and then use vba to save my qurey as a querydef.
problem is i don't like using dao, i am more familiar with ado.
2. open first query as a recordset and then query that recordset.
not sure if there is another way to do this. please help me out. (also, if
you have the dao script it will help immensely, since i am not so familiar
with that)
thanks,
sam