Hi all,
I would like to export results from an Access query and append it to existing data in a spreadsheet. I do not want to export the headers from Access either.
Also, if a spreadsheet has several different tabs, can you define which tab the data can be appended to?
I would like to combine the following code to achieve the result:-
DoCmd.TransferSpreadsheet acExport, 8, "QUERY1", "C:\Documents and Settings\BOOK1.XLS", FALSE
Sheets("Sheet2").Select
Range("A1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Range("A1").Select
How far am I off the beaten track?!?
Regards.
I would like to export results from an Access query and append it to existing data in a spreadsheet. I do not want to export the headers from Access either.
Also, if a spreadsheet has several different tabs, can you define which tab the data can be appended to?
I would like to combine the following code to achieve the result:-
DoCmd.TransferSpreadsheet acExport, 8, "QUERY1", "C:\Documents and Settings\BOOK1.XLS", FALSE
Sheets("Sheet2").Select
Range("A1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Range("A1").Select
How far am I off the beaten track?!?
Regards.