export to excel with a twist ?

S

Set up of Outlook

Hello all,

I am using Access 2003. I have a quarry that runs to give me totals of job
codes done for specific tech's and I want it to export to excel but is there
a way to get access to make a new worksheet for each tech during the export?
Or baring that any thoughts??

Thanks
 
K

Klatuu

No, TransferSpreadsheet is not that intelligent. There are a couple of ways
to do this. If you have any experience at all in communicating with Excel
via code, then you could write code that would create the workbook, create a
worksheet for each tech, use a parameter query to create a recordset for each
tech, and use the CopyFromRecordset method to put the tech's data in the
correct sheet.
The other way would also involve using a parameter query to limit to a
specific tech, and use the TransferSpreadsheet method to export the data.
You would have to create a control loop that would call the query for each
tech.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top