With ActiveX, I run a qry to get a list of CustomerIDs. Then run a loop -- each time, pass one id into a sp and assign the return to a temp table. Then insert the data into an excel file (may split the data into more than one worksheets). If just one ID has been passed, it's ok. If multi IDs have been passed, it crushes. Can someone tell me the solution?
Thanks in advance!
Thanks in advance!