Question : VBA Automation Lotus Notes 7.0.2

I have installed the trial versions of both Domino and the Lotus Notes Client ( http://www.ibm.com/developerworks/offers/sek),  I am looking to automate using Microsoft Access.

My email code works but I am getting a password prompt via the Notes Client.

I am trying to implement the suggestions from Q_21380011.html but I am getting an error:
Object doesn't support this property or method (438)

When I early bind I do not see an Initialize method.
My error would occur on the third line in sample code window below.

According to this IBM document for version 6 one should use Lotus.NotesSession instead of Notes.NotesSession but I get 429 (can't create object error) when I try that.

Any ideas experts?
Code Snippet:
1:
2:
3:
Dim s as object
Set s = CreateObject("Notes.NotesSession")
Call s.Initialize("password")
Open in New Window Select All

Answer : VBA Automation Lotus Notes 7.0.2

I haven't had a chance to do much with this project since my last posting however I am convinced it is PC related.  It maybe a botched install or related to Vista.  

I installed Lotus Notes/Domino Administrator on a second PC (WinXP Pro) and did some limited testing.

I was referencing (through late binding) the "Lotus Automation Class"
i.e. "Notes.NotesSession" but as the error indicates that does not contain the method "Initialize" instead one should use "lotus.NotesSession.  This comes from the "Lotus Domino Objects" library.

My development PC does not have Domino Objects registered on the system for me to late bind with.  I can import the domobj.tlb from C:\Program Files\lotus\notes to use with early binding (not what I want to do).   The code below does not error when the Domino Objects library is registered on the PC.

Thanks for everyone's input.
1:
2:
3:
4:
5:
6:
7:
8:
9:
'Good
Dim s as object
Set s = CreateObject("lotus.NotesSession")
Call s.Initialize("password")
 
'Bad
Dim s as object
Set s = CreateObject("Notes.NotesSession")
Call s.Initialize("password")
Open in New Window Select All
Random Solutions  
 
programming4us programming4us