Getting Rid or Surpressing of a Warning Message

Mechele

Registered User.
Local time
Today, 18:35
Joined
Jan 25, 2002
Messages
121
I have a command button that the user clicks to copy a record from one table to another table. How do I get rid of the warning message that tell the user that he/she is requesting to append (1) record, and ask if they are sure they want to do this..........?
 
Use the set warnings to turn the warnings off.

Docmd.SetWarnings False
docmd.Openquery sql
Docmd.SetWarnings True

Make sure you turn the warnings back on after you complete your queries.
 

Users who are viewing this thread

Back
Top Bottom