Hi,
I'm using Access 2000 on Windows 2000 and got the following question:
In a database I'm using the following VBA to export the data from query "Q_report" to an Excel file:
DoCmd.TransferSpreadsheet acExport, , "Q_report", "C:\Data\export"
Now this works fine, I get the excel file with this VBA. But the problem is that all the data from text-fields start with a " ' " -sign. So in the Excel file I get for example : "'Product A" instead of "Product A".
Do you know how to avoid that?
If you run the query in Access, you don't get the "'"-sign.
Thanks for your help!
Robert
The Netherlands
I'm using Access 2000 on Windows 2000 and got the following question:
In a database I'm using the following VBA to export the data from query "Q_report" to an Excel file:
DoCmd.TransferSpreadsheet acExport, , "Q_report", "C:\Data\export"
Now this works fine, I get the excel file with this VBA. But the problem is that all the data from text-fields start with a " ' " -sign. So in the Excel file I get for example : "'Product A" instead of "Product A".
Do you know how to avoid that?
If you run the query in Access, you don't get the "'"-sign.
Thanks for your help!
Robert
The Netherlands