Can someone advise me how to use Captions and not Access actual fieldnames when transferring a query into Excel please?
I have the following line of code which exports the query - it works fine but I need it to use captions instead of the fieldnames.
/code
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryMMSpreadsheetReport", "J:\EDIMIS\Exclusions\Daz_Test.xls", True
\code
Many Thanks in advance.
Daz
I have the following line of code which exports the query - it works fine but I need it to use captions instead of the fieldnames.
/code
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryMMSpreadsheetReport", "J:\EDIMIS\Exclusions\Daz_Test.xls", True
\code
Many Thanks in advance.
Daz