G
Guest
Hello,
I have a form that is bound to a query and all fields on it have their
control source set to a field in the query. More than one person can be
editing a record at the same time and when the first user saves before the
second user saves the same record, when the second user does save they will
get the standard MS Access "Write Conflict" message which allows them to
'copy to clipboard' or 'drop changes'. This works fine.
However, I have a second form that is not bound to a query, but rather the
fields on the screen are dynamically set via sql code. These fields are also
contained in the query in the first form so I need to apply some 'multi user'
logic so data does not get overwritten and I want to use the same "Write
Conflict" interface that is used on the first form.
I've tried many things and this is as close as I come: I set the Record
Source of the form to a select statement containing one field that is updated
on both forms. I then update this field on the second form in the code. If
the first user has edited a field on another form, and the second user tries
to save the same record after, they will get the message 'Data has been
changed; Another user edited the record and saved the changes; Re-edit the
record'. The user only has to option to Debug. There is no option to 'Copy
to Clipboard'.
Does anyone know a way to invoke the "Write Conflict" logic on a form that
is not bound?
Thanks in advance for any advice,
Jackie
I have a form that is bound to a query and all fields on it have their
control source set to a field in the query. More than one person can be
editing a record at the same time and when the first user saves before the
second user saves the same record, when the second user does save they will
get the standard MS Access "Write Conflict" message which allows them to
'copy to clipboard' or 'drop changes'. This works fine.
However, I have a second form that is not bound to a query, but rather the
fields on the screen are dynamically set via sql code. These fields are also
contained in the query in the first form so I need to apply some 'multi user'
logic so data does not get overwritten and I want to use the same "Write
Conflict" interface that is used on the first form.
I've tried many things and this is as close as I come: I set the Record
Source of the form to a select statement containing one field that is updated
on both forms. I then update this field on the second form in the code. If
the first user has edited a field on another form, and the second user tries
to save the same record after, they will get the message 'Data has been
changed; Another user edited the record and saved the changes; Re-edit the
record'. The user only has to option to Debug. There is no option to 'Copy
to Clipboard'.
Does anyone know a way to invoke the "Write Conflict" logic on a form that
is not bound?
Thanks in advance for any advice,
Jackie