I'd strongly advise you to switch them back on afterwards too. DoCmd.SetWarnings True
Whilst they can be annoying, messages are useful. If they are switched off using the code here and not switched on, there's a possibility you'll do something you didn't mean to do, and not be asked to confirm...