I am trying to access a lotus database to read some data via vba code, but it keeps prompting me via a dialog box to enter the lotus notes password. I would like to bypass it. Anyone have any ideas?
Here is my code:
Dim session As New NotesSession
Dim db As NotesDatabase
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
session.Initialize
Set db = session.GetDatabase("", "xxxxxxxxxx.nsf")
If Not db.IsOpen Then
MsgBox db.Title & " does not exist", , "hp56p001.nsf"
Exit Sub
End If
Here is my code:
Dim session As New NotesSession
Dim db As NotesDatabase
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
session.Initialize
Set db = session.GetDatabase("", "xxxxxxxxxx.nsf")
If Not db.IsOpen Then
MsgBox db.Title & " does not exist", , "hp56p001.nsf"
Exit Sub
End If