paulmcdonnell
Ready to Help
- Local time
- Today, 07:58
- Joined
- Apr 11, 2001
- Messages
- 167
Hi guys,
I'm using Access to send email and add appointments to outlook diaries.
All works fine apart from when I'm trying to reference an anoth users Outlook folder across a workgroup. The follwoing code gives teh error :
"Method or data member not found"
My references are set to outlook 9.0 which seems to be correct for everything else to work. The Namespace reference is highlighted in the debugger and The Namespace ref doesn't appear as autocode when you build the procedure.
Stuck with this problem, what is it about the Namespace that doesn't work properly..
I'm using Access 97 to automate with Outlook 2000..
Code sample ...
Dim onMAPI As NameSpace
Dim ofinbox As MAPIFolder
Set onMAPI = Application.GetNamespace("MAPI")
Set ofinbox = OnMAPI.Folders.GetFirst.Folders.Item("Mailbox - Jeremy Burditt")
I'm using Access to send email and add appointments to outlook diaries.
All works fine apart from when I'm trying to reference an anoth users Outlook folder across a workgroup. The follwoing code gives teh error :
"Method or data member not found"
My references are set to outlook 9.0 which seems to be correct for everything else to work. The Namespace reference is highlighted in the debugger and The Namespace ref doesn't appear as autocode when you build the procedure.
Stuck with this problem, what is it about the Namespace that doesn't work properly..
I'm using Access 97 to automate with Outlook 2000..
Code sample ...
Dim onMAPI As NameSpace
Dim ofinbox As MAPIFolder
Set onMAPI = Application.GetNamespace("MAPI")
Set ofinbox = OnMAPI.Folders.GetFirst.Folders.Item("Mailbox - Jeremy Burditt")