I need to lock the document to user1 when in edit mode to avoid duplications, so that other users can no longer edit the document while still in edit by user1. I have this code in queryopen but i think this only works in a single user
If source.EditMode = True Then
Messagebox “The document is already edited by another user” + user1
Continue = False
Else
Continue = True
End If
How can I do that without using the Lock method?
Subject: How to lock documents to a user without setting document locking
Obviously you have to maintain some administration that is available to all users to keep track of any edits (e.g. a profile field).
By the way: I would put this code in the QueryModeChange event and not the Queryopen event.
You must be sure that you remove the update indication when the document is closed in any circumstance, or when the application is ended unusally (client crash or client disconnect). I am really curious how you will be able to do this and not end up with a bunch of documents that is supposed in edit mode by somebody, but in fact there is no user of the application at all.
I have seen a few posts of you with this same issue, but I believe you are completly on the wrong track.
Subject: RE: How to lock documents to a user without setting document locking
You need to put code in QueryModeChange
Subject: RE: How to lock documents to a user without setting document locking
I was completely wrong afterall… I already made workarounds and its now working fine. Thanks for your help.