Hello all.
I've got a form which is bound to a table. I've just added a "date_last_modified" column to the table which I intend to update every time a record is changed.
I decided that the best way to do this would be to compare the original record (probably via opening a record set on the underlying table) to the values displayed on the form whenever the user tries to navigate away from the current record. If they're different then I'll know that the record has been changed and can update the date_last_modified column. If they're the same I'll know that no changes have been made and so won't update the date_last_modified.
Hope this makes sense so far. The main point of this post is to confirm that when changes are made on a bound form, they don't get changed in the underlying table until the user navigates away from the current record. It seems that this is how it works which is ideal for my intended purpose as it enables it to work - otherwise I'll have to think of something else!
However, if I'm wrong about this or if anyone can see any obvious flaws in my approach then I'd be grateful to know of them and any possible alternatives!
Thanks in advance,
Dan
I've got a form which is bound to a table. I've just added a "date_last_modified" column to the table which I intend to update every time a record is changed.
I decided that the best way to do this would be to compare the original record (probably via opening a record set on the underlying table) to the values displayed on the form whenever the user tries to navigate away from the current record. If they're different then I'll know that the record has been changed and can update the date_last_modified column. If they're the same I'll know that no changes have been made and so won't update the date_last_modified.
Hope this makes sense so far. The main point of this post is to confirm that when changes are made on a bound form, they don't get changed in the underlying table until the user navigates away from the current record. It seems that this is how it works which is ideal for my intended purpose as it enables it to work - otherwise I'll have to think of something else!
However, if I'm wrong about this or if anyone can see any obvious flaws in my approach then I'd be grateful to know of them and any possible alternatives!
Thanks in advance,
Dan