PC Review


Reply
Thread Tools Rate Thread

docmd.setwarnings best use

 
 
Mark Andrews
Guest
Posts: n/a
 
      4th Nov 2008
I setup a cascade to null relationship between two tables and would like to
hide the message that pops up when you
delete a record from the primary table because it uses the Cascade deleting
message and is confusing.

Just looking for some tips on the best way to put DoCmd.Setwarnings into the
code.

Currently I have DoCmd.Setwarnings False in the
Private Sub Form_BeforeDelConfirm(Cancel As Integer, Response As Integer)
event

and DoCmd.Setwarnigs True in the
Private Sub Form_AfterDelConfirm(Status As Integer) event

it seems to work but wondering what the best approach is?

Thanks in advance,
Mark


 
Reply With Quote
 
 
 
 
S Panja
Guest
Posts: n/a
 
      4th Nov 2008
Been using it in a similar fashion and have had no problem till date.
--
http://panjas.org
http://www.linkedin.com/in/spanja

If the reply is helpful or is the answer, click Yes next to
Was this post helpful to you?
and / or
Did this post answer the question?


"Mark Andrews" wrote:

> I setup a cascade to null relationship between two tables and would like to
> hide the message that pops up when you
> delete a record from the primary table because it uses the Cascade deleting
> message and is confusing.
>
> Just looking for some tips on the best way to put DoCmd.Setwarnings into the
> code.
>
> Currently I have DoCmd.Setwarnings False in the
> Private Sub Form_BeforeDelConfirm(Cancel As Integer, Response As Integer)
> event
>
> and DoCmd.Setwarnigs True in the
> Private Sub Form_AfterDelConfirm(Status As Integer) event
>
> it seems to work but wondering what the best approach is?
>
> Thanks in advance,
> Mark
>
>
>

 
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
DoCmd.SetWarnings False fishqqq@hotmail.com Microsoft Access Database Table Design 1 15th Mar 2011 02:22 AM
docmd.SetWarnings ac 97 status egerds Microsoft Access VBA Modules 3 3rd Feb 2010 02:28 AM
DoCmd.SetWarnings B F Cole Microsoft Access Form Coding 0 12th Sep 2006 02:12 AM
DoCmd.SetWarnings Frank Dulk Microsoft Access Forms 1 6th Mar 2005 08:00 PM
DoCmd.SetWarnings False Jenny Microsoft Access 3 15th Sep 2003 03:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:53 PM.