This one had me going!!
I had a view that I used the QueryOpenDocumnet to update a document with the name of the user that last opened the document.
Sub Queryopendocument(Source As Notesuiview, Continue As Variant)
On Error Goto ErrorHandler
Set sdc = sview.Documents
Set sdoc = sdc.GetFirstDocument
sdoc.LastReadBy = session.username
sdoc.LastReadDate = Now
sdoc.LastReaddView = sview.ViewName
Call sdoc.Save(True,True)
End If
Exit Sub
ErrorHandler:
Print Error$ & " (" & Cstr(Err) & ") at line # " & Cstr(Erl)
Resume Next
End Sub
This all worked fine!
BUT if you would edit the document, save and close it. The view would show the changes but the next time you opened the document the changes would be gone.
The problem seems to be that the save in the view is being load to the disk after the document save overwriting the changes.
Hope this helps save you the days looking for it.