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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Close form without Updating



 
 
Thread Tools Display Modes
  #11  
Old August 30th, 2006, 03:53 PM posted to microsoft.public.access.forms
swifty
external usenet poster
 
Posts: 10
Default Close form without Updating

Oh well... i've removed the validation from the table, and it still wants to
save before closing the form. Why can't it just discard what's been put on
the form? It shouldn't even matter if it's valid data or Martian. I'm
confused!

"Klatuu" wrote:

This is exactly why I never use field or table level validation. You have
very little control over it. I do all my validation in the form, either at
the control or the form level. That way, I have control over whether it does
it, how it does it, and when it does it. The only advantage to table/field
validation, is that it is always consistent throughout the application.

"Swifty" wrote:


  #12  
Old August 30th, 2006, 04:07 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Close form without Updating

That is what Me.Undo does. Here is a copy/paste directly from VBA Help on
the Undo Method:

If the Undo method is applied to a form, all changes to the current record
are lost. If the Undo method is applied to a control, only the control itself
is affected.

There must be something else going on we are not seeing.

"Swifty" wrote:

Oh well... i've removed the validation from the table, and it still wants to
save before closing the form. Why can't it just discard what's been put on
the form? It shouldn't even matter if it's valid data or Martian. I'm
confused!

"Klatuu" wrote:

This is exactly why I never use field or table level validation. You have
very little control over it. I do all my validation in the form, either at
the control or the form level. That way, I have control over whether it does
it, how it does it, and when it does it. The only advantage to table/field
validation, is that it is always consistent throughout the application.

"Swifty" wrote:


 




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


All times are GMT +1. The time now is 04:22 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.