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

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to know if user has updated a field on the form?    
 
   
nono270980
post Mar 10 2009, 08:10 PM
Post #1

UtterAccess Guru
Posts: 681



Hi,

I have a maintenance form where users will key in a primary ID to retrieve a record for updating.

Can the system know if the records has been "touched" - means updated before? As i would like to force my users to save the record if any of the fields on the form has been updated.


This is because:
Currently, my system is encountering problems where the records inputted by the users gone missing after a few days in the database and i have no idea why this happens. Any one knows about this problem? How can i prevent that?


Thanks
nono
Go to the top of the page
 
+
RuralGuy
post Mar 10 2009, 08:24 PM
Post #2

UtterAccess VIP
Posts: 2,428
From: @ 8300' in the Colorado Rocky Mountains



Unless you take extra steps, any record that is changed in access through a form is saved.
Go to the top of the page
 
+
wjholtjr
post Mar 10 2009, 10:43 PM
Post #3

UtterAccess Addict
Posts: 198
From: Tennessee



You can test the me.Dirty value. If true then you need to save the record.

Test it using this logic
If Me.Dirty Then
<do something here>
End If

You don't really have to test it as long as you know if the user is closing the form or leaving the current record. Just put this in your exit code:

Me.Dirty = False

That forces a Save.
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: 21st May 2013 - 10:54 PM