PC Review


Reply
Thread Tools Rate Thread

control recording saving

 
 
904allen
Guest
Posts: n/a
 
      18th Jan 2008
I designing a form the feilds are bound. the form will be used by other
workers i want the form to update records using a update button but if the
user enters data and then decides that they don't want to update the
information. hqw can i prevent the update of the information entered on the
form when the user closes the form using the close button
 
Reply With Quote
 
 
 
 
Larry Linson
Guest
Posts: n/a
 
      18th Jan 2008
"904allen" <(E-Mail Removed)> wrote

> I designing a form the feilds are bound. the form will
> be used by other workers i want the form to update
> records using a update button but if the user enters
> data and then decides that they don't want to update the
> information. hqw can i prevent the update of the infor-
> mation entered on the form when the user closes the
> form using the close button.


The Command Button Wizard will give you the option to save the current
record, so your "Update" button will not require VBA code nor Access macros.

You are correct, that saving updates is automatic, on closing the form, on
moving to a different record, on taking explicit action to save, or on
moving from the main form into a subform control. However, there is a
BeforeUpdate event in which you can insert an Access macro or VBA code to
cancel the update... depending on your needs, you can either clear the
updates in the form, or you can just return to the form (this is often done
when you include code to validate the values entered, if one or more values
fail validation).

Larry Linson
Microsoft Access MVP


 
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
Recording and saving dates in Excel Bobito Microsoft Excel Worksheet Functions 1 11th Apr 2008 03:48 PM
Saving a file while recording a macro =?Utf-8?B?UmljaGFyZCBDaGFtcGxpbg==?= Microsoft Excel Misc 6 1st Sep 2007 01:08 AM
Auxiliary control missing in Recording Control =?Utf-8?B?R2FyZXRo?= Windows XP Hardware 0 22nd Feb 2007 09:55 PM
Macro Recording and Saving. =?Utf-8?B?U0lUQ0ZhblRO?= Microsoft Excel Programming 2 28th May 2006 02:51 PM
Re: saving a ppt for use on a dvd; recording a ppt to vhs Sonia Microsoft Powerpoint 0 30th Jul 2003 04:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:50 AM.