andrew_optimum
asked on
Importing xlsx into Access 2007
Hi,
I am trying to import an xlsx file into access but seem to be having some difficulty.
The code i am using is:
' Import into Access:
DoCmd.TransferSpreadsheet acImport, _
acSpreadsheetTypeExcel97, strcTableName, _
strFullPath, True
I think the error is with "acSpreadsheetTypeExcel97" but i am not sure.
Any Ideas?
Kind Regards,
Andrew
I am trying to import an xlsx file into access but seem to be having some difficulty.
The code i am using is:
' Import into Access:
DoCmd.TransferSpreadsheet acImport, _
acSpreadsheetTypeExcel97, strcTableName, _
strFullPath, True
I think the error is with "acSpreadsheetTypeExcel97"
Any Ideas?
Kind Regards,
Andrew
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
upload a copy of the excel file..
ASKER
10, strcTableName, _
strFullPath, True
This gives me the following error: External table is not in the expected format.
DoCmd.TransferSpreadsheet acImport, _
acSpreadsheetTypeExcel12xl
strFullPath, True
This gives me the following error: Could not find installable ISAM.