In Microsoft Access how to eliminate the prompt: File already exists, do you want to replace the existing file? Yes/No

I am using Access 2016. I am running a Macro that exports a file. I set it up as below.
How do I eliminate the following prompt?   File already exists. Do you want to replace the existing file?  Yes/No

I just want the macro to run automatically each time and replace the existing file WITHOUT the prompt.
I am not a programmer or too familiar with Microsoft Access. If there is a simple solution to this, please let me know and tell me specifically
what I need to do.

Thank you...
Rick

Object Type - Table
Object Name - OrdersInTroubleFinal
Output Format - Excel Worksheet (.xlsx)
Output File - \\Server\my documents\Employee Documents\Rick G Documents\Orders-In-Trouble\OrdersInTroubleFinal.xlsx
Auto Start - No
Template File - -----------------------
Encoding - ----------------------------
Output Quality - Print
ES-ComponentsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
You can add the SetWarnings = False BEFORE the other macro actions, then add SetWarnings=True AFTER, but in general it's a bad idea to use those things.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Wayne BarronAuthor, Web DeveloperCommented:
0
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
See if this will assist you.
That's EXACTLY what I suggested ...
1
Wayne BarronAuthor, Web DeveloperCommented:
Sorry about that Scott.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.