My Assistant
![]() ![]() |
|
|
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 |
|
|
|
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.
|
|
|
|
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 Top · Lo-Fi Version | Time is now: 21st May 2013 - 10:54 PM |