Hi, I have been working on fixing a database that I did not design. Yesterday, I posted an issue and thankfully that one has been resolved. We were able to find the original database and access the VBA code from there. For reference the prior post is located at:
https://www.accessforums.net/program...tml#post192764
Now that I have access to the VBA code the issue is debugging code that is not working properly. While attempting a to run a function of the database I received a Microsoft Visual Basic error:Run-time error '2282':
The format in which you are attempting to output the current object is not available.
This error has 3 options; continue, debug or help. When I attempt to debug this is the line of code that is not working:
DoCmd.OutputTo acOutputTable, "tblMacroTemplate", acSpreadsheetTypeExcel9, "G:\DEPARTMENT\11224458\Shared\Jobs\SET-UP\Macro Templates\" & FileName & ".xls", True
It appears that the database is not correctly connecting to excel for the export list function.
Any ideas are greatly appreaciated. Thanks!