View Single Post
Old 11-20-2012, 05:35 AM
lucagorini lucagorini is offline Windows 7 64bit Office 2007
Join Date: Nov 2012
Posts: 1
lucagorini is on a distinguished road
Default Mapi folder.FIND: error

Outlook 2003
Exchange Server

Hi all,
i have a problem when i try to find a custom contact in VB6.
here's the code:

"Public oContactFolder As Outlook.MAPIFolder
Set oContactFolder = oNS.Folders("Public Folders").Folders("All Public Folders").Folders("My Custom Folder")
Dim newitem as Object
Set newitem = oContactFolder.Items.Find("[ID] = '" & .Fields("conto") & "'") "

Where ID is my custom property and conto is the value that i want to search.
The return error is ID property not found.

thanks a lot.
Reply With Quote