BigJimSlade
Registered User.
- Local time
- Today, 19:29
- Joined
- Oct 11, 2000
- Messages
- 173
Hi, Big Jim here:
I am attempting to open a Lotus Notes database using VBA. Here is part of my code:
Dim session As Object
Dim db As Object
Dim doc As Object
Set session = CreateObject("Notes.NotesSession")
Set db = session.GetDatabase("", "")
Do Until db.IsOpen = True
db.OPENMAIL
Loop
Set doc = db.CreateDocument
Problem is, db.IsOpen never evaluates to true. If I take the Loop out, I get Error 7063 telling me that the database is not open. I know it is open, because I opened it. This is a new error, as I have run my code before without a problem. Any idea what could have happened with Lotus Notes that would cause this error?
Thanks in advance
Big Jim
I am attempting to open a Lotus Notes database using VBA. Here is part of my code:
Dim session As Object
Dim db As Object
Dim doc As Object
Set session = CreateObject("Notes.NotesSession")
Set db = session.GetDatabase("", "")
Do Until db.IsOpen = True
db.OPENMAIL
Loop
Set doc = db.CreateDocument
Problem is, db.IsOpen never evaluates to true. If I take the Loop out, I get Error 7063 telling me that the database is not open. I know it is open, because I opened it. This is a new error, as I have run my code before without a problem. Any idea what could have happened with Lotus Notes that would cause this error?
Thanks in advance
Big Jim