G
Guest
MS Access 2000
MS SQL Server 2000
I use code to save data to a linked SQL Server table from a form in MS
Access in a multi-user environment. I create a record set and update it with
the data the user enters in the form. The data is saved when the form is
closed.
The problem is that two users may have the same record open at the same
time. One user changes the data and closes the form. The other user closes
the form next (and the first user’s change was obviously not reflected on the
second user’s form). Now the change of the first user is gone. So the data
from the last one to close the form is saved.
I am using unbound controls exclusively.
I want to open an existing record and check to see if it is locked. If it
is locked, then I can tell the user that. If it is not locked then I want to
lock it. Then I want to unlock the row when the user is done. I want to do
this with code.
Is there some other method besides locking to address this situation?
Thanks.
Wayne
MS SQL Server 2000
I use code to save data to a linked SQL Server table from a form in MS
Access in a multi-user environment. I create a record set and update it with
the data the user enters in the form. The data is saved when the form is
closed.
The problem is that two users may have the same record open at the same
time. One user changes the data and closes the form. The other user closes
the form next (and the first user’s change was obviously not reflected on the
second user’s form). Now the change of the first user is gone. So the data
from the last one to close the form is saved.
I am using unbound controls exclusively.
I want to open an existing record and check to see if it is locked. If it
is locked, then I can tell the user that. If it is not locked then I want to
lock it. Then I want to unlock the row when the user is done. I want to do
this with code.
Is there some other method besides locking to address this situation?
Thanks.
Wayne