I have a problem and I can’t figure this out. A specific user is experiencing an object variable not set error when saving a document. In the PostSave event, I have the following code snippet:
Sub Postsave(Source As Notesuidocument)
Dim ns As New NotesSession
Dim db As NotesDatabase
Dim nc As NotesDocumentCollection
Dim responsedoc As NotesDocument
Dim item As NotesItem
Set db = ns.CurrentDatabase
Set nc = Source.Document.Responses
If (nc.count <> 0) Then
The error happens on the last line. The ns (session), db (database), and Source (uidoc) are set, but for some reason, it can’t get a collection (nc). Given the fact that the other variables are set, why would it fail to set nc?
It only happens to a specific user. I deleted their cache.ndk, bookmark.nsf, and removed/re-added the database bookmark, but none of these helped.