Receiving run-time error '3161'. Could not decrypt file trying to do DoCmd.TransferSpreadsheet in Access 2003
Posted on 2010-08-31
I have an access aplication that parses through a list of excel files to populate an access table on a weekly basis
The excel files (which are in the same format) come from our various shops spread out across the country.
The process has been working great until this week's run of the appplication.
An attempt to process the following statement for only a few of the files
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, _
strTable, strPathFile, blnHasFieldNames, objExcel.Worksheets(lngCount).name & strTransferSpreadSheetRange
results in a run-time error '3161'. Could not decrypt file.
The remainder of the files have no problem.
Does anyone know of a recent windows xp pro and/or office 2003 update that may be causing this?
Visually all the files look to be in the same format.
If we copy the data into a different spreadsheet. The error does not happen.