I am building a database which uses unbound forms. The model that I'm using of the SaveUpdates procedure has a commented line "Check here for changes by other users".
My solution to this is to have each involved table have an UpdatedBy field and code which sets this to Now() & UserName whenever a change is made. When the record is first loaded, this value is loaded into a hidden field. Then the SaveUpdates procedure is run, I first check this field matches the value in the hold field. If it does, the prcedure continues to update the record. If it doesn't, the standard "Somebody else just changed it. What do you want to do now?" message is displayed.
I'd like to know if this is the "official" way to do something like this or is there some "changed" property that records have that is normally checked?
My solution to this is to have each involved table have an UpdatedBy field and code which sets this to Now() & UserName whenever a change is made. When the record is first loaded, this value is loaded into a hidden field. Then the SaveUpdates procedure is run, I first check this field matches the value in the hold field. If it does, the prcedure continues to update the record. If it doesn't, the standard "Somebody else just changed it. What do you want to do now?" message is displayed.
I'd like to know if this is the "official" way to do something like this or is there some "changed" property that records have that is normally checked?