I am using MS Access 2010.
I have a query that will return 3 values (ZZZ070113,ZZZ070213,ZZZ090713) here is the query (SELECT DISTINCT RUN_ID FROM CUSTOMER where customerID = 1567). These variables will change from time to time. Some times there will be 2 or 4 ID's returned
I want to take the results and loop through a series of commands to extract records from another table and write the results to a new table.
So based on some research I have done I figure I need to use a For Each loop statement
First is how do I assign the values from the query to a variable?
Then how do I pass these results into a loop so I can see the results?
Ex. The code would take ZZZ070113 and query table Customer_Details to retrieve ProcessDate and ProcessCount. These value would be written to a new table called CustomerDetails...Then the code would take ZZZ070213 and do the same etc..
I am not having much success in my searches to find out how to make this work. Any assistance I could get would be greatly appreciated