My Assistant
![]() ![]() |
|
|
Aug 8 2006, 08:40 AM
Post
#1
|
|
|
UtterAccess Addict Posts: 114 From: Horseheads, NY |
How do I stop Access from prompting me every time I want to append a record? I know there has to be an easy way to do this.
|
|
|
|
Aug 8 2006, 08:43 AM
Post
#2
|
|
|
UtterAccess VIP Posts: 31,413 From: NC, USA |
Hi,
execute your action queries with: CurrentDb.Execute "YourQueryNameOrSql", dbFailOnError HTH Good luck |
|
|
|
Aug 8 2006, 08:49 AM
Post
#3
|
|
|
UtterAccess Addict Posts: 114 From: Horseheads, NY |
Thanks, I always wondered why people advise not to use DoCmd RunSQL.
|
|
|
|
Aug 8 2006, 08:53 AM
Post
#4
|
|
|
UtterAccess VIP Posts: 31,413 From: NC, USA |
It would require you to adjust the setwarnings property which means that even if the query errors out for some reason you will not see that. The .execute method surpresses the warnings as well...but still errors out when something goes wrong. Furthermore, it can run faster and prevent bloat on large recordsets.
HTH Good luck |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 23rd May 2013 - 07:59 AM |