Can you supress display alerts via VBA ?

Linus_99

Board Regular
Joined
Aug 28, 2002
Messages
145
Hi,

I'm developing an application in Access where I have to create a temporary table on the fly. During the process, Access prompts with alerts saying that the previous table will be deleted, a number of rows will be pasted etc. The user has to click OK a couple of times to get past these messages (and the messages in themselves are frightening to normal mortals . . . )

Is there any way to suppress these messages ?

In Excel, you can turn off annoying display alerts by:

Application.Displayalerts = False

Any advice would be appreciated.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try
DoCmd.SetWarnings False

Remember to set it to true again as this will suppress warnings that might be useful.
 
Upvote 0

Forum statistics

Threads
1,221,707
Messages
6,161,411
Members
451,704
Latest member
rvan07

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