I have an insert into Statement behind my form, after running access show the dialog box "do you want to add ?"
How can I set the warnings off ?
This won't work DoCmd.SetWarnings -1
I suggest using CurrentDB.Execute to run action queries, rather than DoCmd.RunSQL or DoCmd.OpenQuery. It requires fewer lines of code (as you don't have to turn warning messages off first) and also provides for greater flexibility for transaction processing and displaying of error messages.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.