Looking for a way to Display or Open a backend document. I look for a document with a “GetDocumentByKey” method and if the document is found, I want to “open” it, or display it. Find the doc OK, but cannot get it to open. I get a type mismatch. Here is my code:
Dim session As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim keyName As String
Dim boxType As Long, answer As Integer
keyName = session.CommonUserName
Set db = session.CurrentDatabase
Set view = db.GetView (“resourceTracking” )
Set doc = view.GetDocumentByKey (keyName )
If Not (doc Is Nothing) Then
Set uidoc = doc.document
End
Else
…