A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Cancel a Form's DB Action



 
 
Thread Tools Display Modes
  #1  
Old February 26th, 2005, 09:48 PM
dave h
external usenet poster
 
Posts: n/a
Default Cancel a Form's DB Action

Hi,

I have a case where I don't want to save a record to a table if the user
clicks the X in the upper right corner of the form.
In the before update event, I set cancel=true and this stops the save action
just as I wanted - except I still get this message

"You can't save this record at this time" .....click Yes to close DB object

I don't want this message. "docmd.setwarnings false" does not suppress the
message and I can't seem to trap an error anywhere.

How can I prevent this message from being displayed?

Thanks - Dave H.


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Office 2003 installation problem, log file attached.... Ryan Setup, Installing & Configuration 0 January 20th, 2005 06:57 PM
Can I close all open forms? DBS General Discussion 3 October 7th, 2004 04:35 PM
Word Forms? CEVisker New Users 4 June 21st, 2004 01:25 AM
Forms Check Box not working DLLower General Discussion 2 June 17th, 2004 09:34 PM
How to repeat code that is used in all forms Christine New Users 1 May 20th, 2004 02:18 PM


All times are GMT +1. The time now is 05:33 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.