Ok, so I now know how to import data from a spreadsheet to access.
Private Sub Command0_Click()
DoCmd.TransferSpreadsheet acImport, _
acSpreadsheetTypeExcel9, "Sheet1", "C:\Temp\Table1.xls", True, "A1:C11"
End Sub
1. Can I add to this code to append the data to a existing table?
2. Is there a coded method to skip the import process above and append directly from xls?
3. Do I import with the code above (Into temp table) and then using a append query, append to the correct table?
(If there is a code method could you please include a sample)
Thx
Private Sub Command0_Click()
DoCmd.TransferSpreadsheet acImport, _
acSpreadsheetTypeExcel9, "Sheet1", "C:\Temp\Table1.xls", True, "A1:C11"
End Sub
1. Can I add to this code to append the data to a existing table?
2. Is there a coded method to skip the import process above and append directly from xls?
3. Do I import with the code above (Into temp table) and then using a append query, append to the correct table?
(If there is a code method could you please include a sample)
Thx