G
Guest
I have aprrox 50 queries that all have one field on common (Division). I need
to run each query for each division (10 of them). Fortunately, I was ably to
write VBA code in Excel that automatically runs and down loads the queries to
an excel sheets. Unfortunately, each time I run 50 queries, I have to stop
and go in to each individual query and change the division number to set it
up for the next run of 50. What I need is macro/code that will change the
criteria for all 50 queries in one shot. The criteria must be physically
changed in the queries. Referencing a form will not work because the excel
code runs the queries in the background.
Can anyone help?
to run each query for each division (10 of them). Fortunately, I was ably to
write VBA code in Excel that automatically runs and down loads the queries to
an excel sheets. Unfortunately, each time I run 50 queries, I have to stop
and go in to each individual query and change the division number to set it
up for the next run of 50. What I need is macro/code that will change the
criteria for all 50 queries in one shot. The criteria must be physically
changed in the queries. Referencing a form will not work because the excel
code runs the queries in the background.
Can anyone help?