I have used both the DoCmd.OutputTo and the DoCmd.TransferSpreadsheet methods to export data from an Access DB into Excel.
the following is an example of the code:
The problem i have is that, in Excel, all cell contents of the exported data are prefixed with a single open quote mark. this makes numbers and Dates appear as Text and so do not allow for any mathematical operations to be done with the number.
Is there anything i can do to correct this?
the following is an example of the code:
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, sQueryName, strPath
The problem i have is that, in Excel, all cell contents of the exported data are prefixed with a single open quote mark. this makes numbers and Dates appear as Text and so do not allow for any mathematical operations to be done with the number.
Is there anything i can do to correct this?