troubleshooting Question

MS Access Docmd export to excel do not over write existing file

Avatar of Taras
TarasFlag for Canada asked on
Microsoft Access
9 Comments1 Solution112 ViewsLast Modified:
I ms access 2013 have a query that I want to export to folder and gave user option to locate folder and chose a name.
On a form I have command button and behind this code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12Xml, "Qry_My_Query", saveFileAs, True
Problem is when user what to use the same file name that exit.

I was prompted do I want to over wright file name I click on “Yes” button but it does not do over wright.
Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros