DoCmd.TransferSpreadsheet acExport

IanT

Registered User.
Local time
Today, 08:05
Joined
Nov 30, 2001
Messages
191
Hi

I am using this code to transfer data to a excel sheet:

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, _
"if - Property MLT Actual Recovery", "T:\Shared\Claims Supply\Management Information\CIU\CIU Mark\New\Property Claims Fraud Report.xls"

The code names the worksheet 'if - Property MLT Actual Recovery', is it possible to change the code so I can name the worksheet to Actual Recovery! I cannot change the query name!

Thanks in advance......
 
Create a query called "Actual Recovery". The contents of the query:
Code:
Select * from "if - Property MLT Actual Recovery"
Remove the asterisk and use actual fieldnames to set the fields in the right sequence. Use query "Actual Recovery" in your TransferSpreadsheet statement.
 

Users who are viewing this thread

Back
Top Bottom