Items property of folder does not work

G

Guest

I developed this app for Outlook 2000 and it worked fine. Part of it is that
I would load a mailbox of another user to the user's Outlook and then would
read items from one of the folders of the loaded mailbox(like Inbox).

To get the items collection, I do:
Set itemsCollection = targetFolder.Folders.Item("Inbox").Items

That fails with: Err.Description="The operation failed.",
Err.Number="-169843075:, Err.HelpContext="1000440".

If I do the same (Set itemsCollection =
targetFolder.Folders.Item("Inbox").Items) on a targetFolder that is local (on
the local mailbox), it works fine, but fails if targetFolder is mailbox
folder that is mounted to this user 's Outlook. Even when targetFolder is
mounted mailbox (folder), then one can get reference to actual Inbox folder (
targetFolder.Folders.Item("Inbox")) but cannot get the reference to the
collection that it contains. This worked in Outlook 2000 and does not work
in 2003.

Any suggestion would be more than appreciated.

Regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top