W
Wayne
I have a multi user database where most users access one form to input data.
Users open an existing customer record in the database, the record becomes
bound to the form, the user updates the necessary details in the existing
record and closes. This generally works well, as each customer has their own
manager so generally two staff don't try to access the same record
simultaneously.
The problem is the supervisors! Somehow they always manage to open the same
records as the users. The record is bound to the form by VBA, and record
locks are set to "Edited Record" on the form. Even though there are only two
supervisors, they generally manage to lock people out of their own records.
Is there any way to test when a record is opened whether it is locked for
editing by other user? I do want record locking to apply for this form as I
don't want two users to update a record simultaneously. I added specific code
in my error trapping to provide a custom warning message about updating a
locked record, but i'd rather they get this warning when they Open the record
(and lock all the controls on the form), rather than when they try to save.
Users open an existing customer record in the database, the record becomes
bound to the form, the user updates the necessary details in the existing
record and closes. This generally works well, as each customer has their own
manager so generally two staff don't try to access the same record
simultaneously.
The problem is the supervisors! Somehow they always manage to open the same
records as the users. The record is bound to the form by VBA, and record
locks are set to "Edited Record" on the form. Even though there are only two
supervisors, they generally manage to lock people out of their own records.
Is there any way to test when a record is opened whether it is locked for
editing by other user? I do want record locking to apply for this form as I
don't want two users to update a record simultaneously. I added specific code
in my error trapping to provide a custom warning message about updating a
locked record, but i'd rather they get this warning when they Open the record
(and lock all the controls on the form), rather than when they try to save.