Sniper-BoOyA-
Registered User.
- Local time
- Today, 13:56
- Joined
- Jun 15, 2010
- Messages
- 204
Good morning,
I use the following vba code to export Query results to an Excel file;
It works but i have noticed that clicking on the export button and excecuting this 'macro' it actually overrites all previous exported data.
Over the past few days i have been checking the internet to see if there is a solution for this, no luck so far.
Do you guys have an idea on how to fix this?
Thanks!
I use the following vba code to export Query results to an Excel file;
Code:
Private Sub btn_Excel_Click()
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Query_Controlekaart_Blanco_28d", "P:\17\10_Cluster_17_Algemeen\98_Overige\MSH\Vliegas_Testfase\Excel bladen\Contolekaart Blanco 28 daagse", , "Export"
End Sub
It works but i have noticed that clicking on the export button and excecuting this 'macro' it actually overrites all previous exported data.
Over the past few days i have been checking the internet to see if there is a solution for this, no luck so far.
Do you guys have an idea on how to fix this?
Thanks!