I have a multiuser database that resides on a network server. Each of the users (5) has a frontend that resides on their hard-drive.
I have been researching and playing with record locking for the last 2 days and I can't seem to find the solution to make this properly work.
I have a form that pulls multiple records for users to view and update. It's a reconciliation that to change the status, at least 2 records need to be chosen so that the net of the chosen records = 0 before the status can be updated. Because the user needs to update more than one record simultaneously, this could be overwritten by another user.
I have tried the OnDirty event on the form, but this seems to be hooked to each individual record - so everytime the user makes a change to one record and moves to the next, they get my message box ("Update Records?"
. So this solution did not work either.
1. I'm a bit confused as to where I do the record locking - on the query that feeds the form, or on the form itself?
2. I also am not sure what level? If I select Edited records, does it lock all records that the query or form return? Or If I select ALL records.
In my testing, if I chose ALL records Locked on the form, it seemed to lock both users out of the form when I tried to open it. My queries do not include the Primary Key (as the user doesn't need to view it) - should I be including this too?
Any help that I can get to figure this out is greatly appreciated. I'm on a tight deadline - have to have it fixed in 2 days...
I have been researching and playing with record locking for the last 2 days and I can't seem to find the solution to make this properly work.
I have a form that pulls multiple records for users to view and update. It's a reconciliation that to change the status, at least 2 records need to be chosen so that the net of the chosen records = 0 before the status can be updated. Because the user needs to update more than one record simultaneously, this could be overwritten by another user.
I have tried the OnDirty event on the form, but this seems to be hooked to each individual record - so everytime the user makes a change to one record and moves to the next, they get my message box ("Update Records?"
1. I'm a bit confused as to where I do the record locking - on the query that feeds the form, or on the form itself?
2. I also am not sure what level? If I select Edited records, does it lock all records that the query or form return? Or If I select ALL records.
In my testing, if I chose ALL records Locked on the form, it seemed to lock both users out of the form when I tried to open it. My queries do not include the Primary Key (as the user doesn't need to view it) - should I be including this too?
Any help that I can get to figure this out is greatly appreciated. I'm on a tight deadline - have to have it fixed in 2 days...