UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> on current/on dirty question    
 
   
edojan
post Jun 4 2009, 12:06 PM
Post #1

UtterAccess Addict
Posts: 222



I have a form linked to query that displays the data, can freely edit the date and go from one record to another ....
For entire form level not individual fields ....
How can i detect if one of the fields is changed and if changed ask if they want to save prior to going to next record?
(you can used scroller on mouse to move and do edits on the fly...)

Thanks!

Edited by: edojan on Thu Jun 4 13:15:21 EDT 2009.
Go to the top of the page
 
+
Doug Steele
post Jun 4 2009, 12:19 PM
Post #2

UtterAccess VIP
Posts: 17,607
From: Don Mills, ON (Canada)



Are you asking how to detect if any of the fields are changed, or if one specific field is changed?

If any of the fields, use the form's BeforeUpdate event.

If a specific field, use that control's AfterUpdate event.
Go to the top of the page
 
+
Bob_L
post Jun 4 2009, 12:23 PM
Post #3

Utterly Banned
Posts: 7,038



Just to explain Doug's answer a little more -

The Form's BEFORE UPDATE event will ONLY fire if there has been a change to an existing record OR data has been entered into at least one control of a new record. There is also the form's DIRTY event which will fire IMMEDIATELY upon the FIRST change to any control of an existing record or the start of entry to a new record.
Go to the top of the page
 
+
edojan
post Jun 4 2009, 12:23 PM
Post #4

UtterAccess Addict
Posts: 222



Thank you!
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 18th May 2013 - 05:00 AM