I have code that was developed in Access 2002 that was working fine. But I have problems when I load it into Access 2007.
This application loads numerous excel spreadsheets into an access database and then creates a series of reports. I have two issues:
1) When I try to read an excel file, I get a message that says: Microsoft Office Excel recalculates formulas when opening files last saved by an earlier version of Excel. Cancel / Try Again / Continue
How do I avoid this message? I do not have control over the version of excel files that are submitted by outside vendors for this application.
2) When I try to actually upload the spreadsheet using the TransferSpreadsheet command, I get the follwoing error:
Run-Time Error 3349:
You cannot record your changes because a value you entered violates the settings defined for the table or list (for example, a value is less than the minimum or greater than the maximum). Correct the error and try again.
It is failing on this command. (I have also tried it with an '8' in the second parameter).
DoCmd.TransferSpreadsheet acImport, 9, "tblTempMfgProductData", strFileName, False, strWorkSheetName
(where strFileName is the name of the file and strWorkSheetName is the name of the worksheet)
Look forward to your ideas.
Thanks.
This application loads numerous excel spreadsheets into an access database and then creates a series of reports. I have two issues:
1) When I try to read an excel file, I get a message that says: Microsoft Office Excel recalculates formulas when opening files last saved by an earlier version of Excel. Cancel / Try Again / Continue
How do I avoid this message? I do not have control over the version of excel files that are submitted by outside vendors for this application.
2) When I try to actually upload the spreadsheet using the TransferSpreadsheet command, I get the follwoing error:
Run-Time Error 3349:
You cannot record your changes because a value you entered violates the settings defined for the table or list (for example, a value is less than the minimum or greater than the maximum). Correct the error and try again.
It is failing on this command. (I have also tried it with an '8' in the second parameter).
DoCmd.TransferSpreadsheet acImport, 9, "tblTempMfgProductData", strFileName, False, strWorkSheetName
(where strFileName is the name of the file and strWorkSheetName is the name of the worksheet)
Look forward to your ideas.
Thanks.