Mar 15 2024 11:29 AM
I have a Macro I run daily (via task scheduler). About 1 in 4 times I get error 2950 exporting one query using ImportExport spreadsheet. The same command exports similar queries to the same location just fine. Rerunning the routine manually works fine. The output file is never opened by anything. A batch run at the start deletes all *NEW files, I export to "fileNEW", then copy to "file" when I am done via batch file.
So I am getting an error saying it can't find a file that does not exist, so it can't create the file. That makes sense. The filename is S:\IT\PowerBIFiles\BrandCategoryPenetrationStep4NEW.xlsx.
I don't know where to start looking.
Thanx
Phil
Mar 16 2024 12:22 AM
Error 2950 in Microsoft Access typically occurs when there's an issue with executing a macro or VBA code. In your case, it seems to be related to exporting a query using the ImportExport spreadsheet action. Here are some steps you can take to troubleshoot and resolve this issue:
By following these steps and investigating the potential causes of the error, you should be able to identify and resolve the issue with exporting the query in your macro. The text was created with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and like it!
This will help all forum participants.