Article ID: 179104
Article Last Modified on 5/9/2005
'Following is the VBScript code to reproduce the behavior:
'This sample assumes that the CDO (1.1, 1.2, 1.21) library is installed
'on the test system and that a profile named "Microsoft Outlook"
'exists.
Sub but_OnClick
Dim objSession
Set objSession = CreateObject("mapi.session")
objSession.Logon "Microsoft Outlook"
MsgBox objSession.Inbox.Messages.Count 'This fails w/Access Denied
objSession.Logoff
End Sub
NOTE: This issue does not occur with all properties and methods; some
operations (like sending messages) and some properties operate as expected.
171440 INFO: Where to Acquire the Collaboration Data Objects Libraries
Keywords: kberrmsg kbmsg kbprb KB179104