P
Peter Hibbs
I am writing a bog standard A2003 FE database for a small insurance
broker that have 7 PCs linked to a BE file on a Server PC.
The main form is bound to tblClients with a subform bound to
tblPolicies. I'm told by the user that it is quite likely that two (or
more) users could try and amend the same policy record at the same
time. For this reason I have set the Record Locks property on both
forms to 'Edited Record' so that once a user starts to amend a record,
any other users cannot do so, (I don't see any merit in leaving the
property value as 'No Locks' as the second user could spend several
minutes changing the data in a number of fields and then, when they
exit the record, be told they can't save those changes or if they do,
it will overwrite someone else's amendments).
The system works OK except that it is decidely user unfriendly. If the
first user opens a record and then changes the data in a field it
'dirties' the record. If the second user opens the same record and
tries to amend a field the change is not accepted (although,
bizarrely, it also 'dirties' the record) and it appears to the second
user that something has gone wrong with the database.
What I would like to happen is that when the second user opens a
record that has been 'dirtied' by another user, is to display a big
red label which says "Record in Use". It would also have to be
'dynamic' in that if the second user remains on the record and the
first user moves off the record, the label disappears to indicate to
the second user that the record is now available for use.
I don't see any property on a form which would indicate if a record
has been 'dirtied' or an event which triggers when it has been saved,
although Access itself must know these things to lock the fields to
the second user.
Does anyone know if it is possible to do what I want?
Peter Hibbs.
broker that have 7 PCs linked to a BE file on a Server PC.
The main form is bound to tblClients with a subform bound to
tblPolicies. I'm told by the user that it is quite likely that two (or
more) users could try and amend the same policy record at the same
time. For this reason I have set the Record Locks property on both
forms to 'Edited Record' so that once a user starts to amend a record,
any other users cannot do so, (I don't see any merit in leaving the
property value as 'No Locks' as the second user could spend several
minutes changing the data in a number of fields and then, when they
exit the record, be told they can't save those changes or if they do,
it will overwrite someone else's amendments).
The system works OK except that it is decidely user unfriendly. If the
first user opens a record and then changes the data in a field it
'dirties' the record. If the second user opens the same record and
tries to amend a field the change is not accepted (although,
bizarrely, it also 'dirties' the record) and it appears to the second
user that something has gone wrong with the database.
What I would like to happen is that when the second user opens a
record that has been 'dirtied' by another user, is to display a big
red label which says "Record in Use". It would also have to be
'dynamic' in that if the second user remains on the record and the
first user moves off the record, the label disappears to indicate to
the second user that the record is now available for use.
I don't see any property on a form which would indicate if a record
has been 'dirtied' or an event which triggers when it has been saved,
although Access itself must know these things to lock the fields to
the second user.
Does anyone know if it is possible to do what I want?
Peter Hibbs.