Warning Messages - Need to be turned of

mattpfc

Active Member
Joined
Nov 21, 2002
Messages
299
Hi all,

I am trying to turn off a warning message that Access throws up every time users click a button on a form I have. The button is linked to a make table query which returns certain data, then puts it in a table, which I then pass to Excel etc.

The warning message users get every time is one which says that there is a table with the same name and it will be deleted before you run the query.

I have turned off the confirm options including document deletions but this does not work.

Is there a way I can turn this warning message off?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
DoCmd.SetWarnings False

and after code is run put them on again with

DoCmd.SetWarnings True


HTH

Peter
 
Upvote 0

Forum statistics

Threads
1,221,553
Messages
6,160,468
Members
451,649
Latest member
fahad_ibnfurjan

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