I am not experienced in Access, and so i have created a query through the design view.
I have created a query called "EMAIL-QUERY", which uses several other queries when it is run.
One of the other queries it uses, which i called "q1", asks for the user to input a customer ID.
So naturally, when i run EMAIL-QUERY, the user is posed with this question about the customer id.
What i need to do is run EMAIL-QUERY as many times as there are customers, each time entering the customer ID into the query, then putting each result somewhere each time (probably in a table) where i can run a query later to retrieve ALL of the records that this 'looped' procedure produced.
Extra Info: I had been asked to create this query, but assumed that each time, a user would just choose to enter the customer number, to retrive the desired result.
Instead, i have found that i must create a query that produces ALL of the results, so that Microsoft Word's Mail-Merge can automatically traverse through each record.
I tried removing the [customer id] input box that appears each time the query is run, so that Access would automatically run the query for ALL customer IDs, however this does not work, due to the way i have made the many queries that are used to get the final EMAIL-QUERY to work.
Does anyone know how i can loop through such a query and store the result each time?
thankyou.
your help is appreciated.
I have created a query called "EMAIL-QUERY", which uses several other queries when it is run.
One of the other queries it uses, which i called "q1", asks for the user to input a customer ID.
So naturally, when i run EMAIL-QUERY, the user is posed with this question about the customer id.
What i need to do is run EMAIL-QUERY as many times as there are customers, each time entering the customer ID into the query, then putting each result somewhere each time (probably in a table) where i can run a query later to retrieve ALL of the records that this 'looped' procedure produced.
Extra Info: I had been asked to create this query, but assumed that each time, a user would just choose to enter the customer number, to retrive the desired result.
Instead, i have found that i must create a query that produces ALL of the results, so that Microsoft Word's Mail-Merge can automatically traverse through each record.
I tried removing the [customer id] input box that appears each time the query is run, so that Access would automatically run the query for ALL customer IDs, however this does not work, due to the way i have made the many queries that are used to get the final EMAIL-QUERY to work.
Does anyone know how i can loop through such a query and store the result each time?
thankyou.
your help is appreciated.