PC Review


Reply
Thread Tools Rate Thread

Access Runtime 2003 : You are about to delete records message

 
 
MarkI
Guest
Posts: n/a
 
      1st Jun 2007
I've just made a runtime version of my database and the user is being
prompted to confirm record changes/deletes. In my frontend the confirm
Record Changes, Document deletions and action queries are all unchecked.
It's only the runtime user being prompted. How do I stop the confirm
prompts from showing in the runtime version?

Thanks


 
Reply With Quote
 
 
 
 
Albert D. Kallal
Guest
Posts: n/a
 
      1st Jun 2007
As a general design rule, I always used:


currentdb.Execute "name of query or sql goes here"

The above does not prompt for confirmations.

You likely using docmd.RunSql, so you have go:

docmd.SetWarmings False

..... you runsql code goes here

docmd.SetWarnings True.

Remember, you could also modify the actual settings in the tools->options
(via code for runtime).
However, I recommend you use the above setwarings..and always "pair" the
turning off/on of setwarmings.

The above is preferred in place of modifying the setup options. If you
modify the setup options then what happens if the user has the full version
of ms-access, and runs other applications. If you modify those settings,
then they will be expecting confirmation for deletions of records. I don't
think you need a lecture as to how angry a user of your applications would
be if they found out that it your program that turns off the conformations
in all other applications....

So, use the above setwarnings, or replace your runsql with currentdb.execute


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
(E-Mail Removed)


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete certain records based on a column value on all tables in a 2003 Access database? Athena Microsoft Access 0 17th Jul 2007 11:37 PM
Error message when installing Access 2003 Runtime version =?Utf-8?B?Q3JhaWc=?= Microsoft Access 0 29th Jun 2007 06:06 AM
2003 Runtime Access message JRF Microsoft Access 5 15th Nov 2004 12:40 PM
2003 Runtime Access message JRF Microsoft Access Macros 5 15th Nov 2004 12:40 PM
getting runtime error when trying to delete records =?Utf-8?B?U00=?= Microsoft Excel Programming 1 16th Apr 2004 09:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:29 PM.