Eliminate the memory prompts when running queries

John P

Board Regular
Joined
Oct 17, 2002
Messages
108
My Access DB consists of many queries that are combined in one macro. When I run the macro I am prompted that the script will change the DB, memory, etc...which means I am prompted about 25 times just so I can click Yes. I understand that these prompts can relay important information if a problem exists, but if I am confident (or at least can live with an error) that I want to click yes for the prompts associates with the specific macro, is there a way to have the macro select YES??

Any suggestions are greatly appreciated.

John
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Set up a macro to run your query, and use the SetWarnings command = False to suppress those messages.

I.e.
1st Action: Set Warnings to False
2nd Action: OpenQuery
3rd Action: Set Warnings to True

Now, just use this macro to open the query.
 
Upvote 0

Forum statistics

Threads
1,221,618
Messages
6,160,872
Members
451,674
Latest member
TJPsmt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top