PC Review


Reply
Thread Tools Rate Thread

Annoying Warning Messages

 
 
Joe Delphi
Guest
Posts: n/a
 
      6th Sep 2006
Hi,

I wrote an MS Access/VBA program that deletes records and inserts
records into tables when the user presses a form button. It works fine on
my development computer.

I took it to my customer's computer, which is running the same
version of MS Access, and when he pushed the button, a warning message would
display saying "You are about to delete 1 record, do you want to do this?"
since the program looped the annoying message appeared multiple times.
Customer not pleased.

I know that there must be an option setting on his computer that I
can set or un-set to turn these warning messages off. Can someone tell me
how to do this?


Thanks,
JD


 
Reply With Quote
 
 
 
 
tina
Guest
Posts: n/a
 
      6th Sep 2006
suggest you write code into your procedure(s) to turn Warnings off and on
before and after the deletes and appends, so the messages will be suppressed
regardless of what PC the application runs on, as

DoCmd.SetWarnings False
<delete and/or append record(s) code>
DoCmd.SetWarnings True

see the SetWarnings Action topic in VBA Help for more information.

hth


"Joe Delphi" <(E-Mail Removed)> wrote in message
news:2YpLg.2587$8J2.2514@fed1read11...
> Hi,
>
> I wrote an MS Access/VBA program that deletes records and inserts
> records into tables when the user presses a form button. It works fine

on
> my development computer.
>
> I took it to my customer's computer, which is running the same
> version of MS Access, and when he pushed the button, a warning message

would
> display saying "You are about to delete 1 record, do you want to do this?"
> since the program looped the annoying message appeared multiple times.
> Customer not pleased.
>
> I know that there must be an option setting on his computer that I
> can set or un-set to turn these warning messages off. Can someone tell

me
> how to do this?
>
>
> Thanks,
> JD
>
>



 
Reply With Quote
 
RoyVidar
Guest
Posts: n/a
 
      6th Sep 2006
"Joe Delphi" <(E-Mail Removed)> wrote in message
<2YpLg.2587$8J2.2514@fed1read11>:
> Hi,
>
> I wrote an MS Access/VBA program that deletes records and
> inserts records into tables when the user presses a form button. It
> works fine on my development computer.
>
> I took it to my customer's computer, which is running the
> same version of MS Access, and when he pushed the button, a warning
> message would display saying "You are about to delete 1 record, do
> you want to do this?" since the program looped the annoying message
> appeared multiple times. Customer not pleased.
>
> I know that there must be an option setting on his computer
> that I can set or un-set to turn these warning messages off. Can
> someone tell me how to do this?
>
>
> Thanks,
> JD


You have probably altered some of the settings in Tools | Options -
Edit/Find tab, in perticular under the "Confirm" group, the Action
queries bit.

I think these might be global Access settings, which might alter the
behaviour of Access on all databases, so I don't think I'd recommend
altering those, but rather use other methods of avoiding the
messages.

If you're doing lot of queries through the docmd.runsql method, you
could consider executing them through for instance the .execute
method of the currentdb object in stead

CurrentDB.Execute "DELETE FROM mytable", dbFailOnError

or turn the warnings on and off per each use

DoCmd.SetWarnings False
DoCmd.RunSql "DELETE FROM mytable"
DoCmd.SetWarnings True

But then you can also turn this option on and off through the
SetOption method of the Application object, see
http://support.microsoft.com/kb/229802/
for more info

--
Roy-Vidar


 
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
Annoying UAC Warning MrKite Windows Vista Security 5 29th Apr 2008 01:15 AM
Get rid of annoying warning messages... rocco Microsoft Access Security 7 28th Apr 2008 01:50 AM
annoying sort warning messages P D Sterling Microsoft Excel Discussion 1 22nd Jul 2006 01:03 PM
Annoying warning message. =?Utf-8?B?ZGVyaWNrc29uZmw=?= Microsoft Access 2 27th Dec 2005 03:15 PM
Removing Annoying Warning Messages Arthur Windows XP General 2 4th Dec 2003 01:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:54 AM.