Hi,
I have been trying to import and excel spreadsheet into access 2007 via a command button with no luck. If I use the external data wizard it imports Ok.
Can anyone help me with the code? My source excel file is in the documents folder and is titled 'new wucs'. The destination table is called 'new wucs'.
I have used this line of code with no luck:
DoCmd.TransferSpreadsheet , acSpreadsheetTypeExcel9, "new wucs", "C:\Users\Kenneth.Hurst\Documents\new wucs.xlsx", True
I appreciate any help on the subject.
Thanks
I have been trying to import and excel spreadsheet into access 2007 via a command button with no luck. If I use the external data wizard it imports Ok.
Can anyone help me with the code? My source excel file is in the documents folder and is titled 'new wucs'. The destination table is called 'new wucs'.
I have used this line of code with no luck:
DoCmd.TransferSpreadsheet , acSpreadsheetTypeExcel9, "new wucs", "C:\Users\Kenneth.Hurst\Documents\new wucs.xlsx", True
I appreciate any help on the subject.
Thanks