Mike,
I got a hint from a colleague of mine which solved the problem.
I replaced:
DoCmd.TransferSpreadsheet acExport, , "Q_report", "C:\Data\export"
with:
DoCmd.OutputTo acOutputQuery, "Q_report", acFormatXLS, "C:\Data\export"
This works, the single quotes are gone!
But thanks for your...