Outlook 2003 Advanced search Problems

  • Thread starter Thread starter Thra?n
  • Start date Start date
T

Thra?n

1) When using the advanced search method, I'm able to search for
contacts in a public folder and get results:

Dim appOutlook as New Outlook.Application
Dim ObjSearch as Outlook.Search
Dim blnSearchCompleted as Boolean
blnSearchCompleted = False (Is toggled in the
Outlook_AdvancedSearchCompleted event)
Set ObjSearch = appOutlook.AdvancedSearch("'\\Public Folders\All
Public Folders\België'")
While blnSearchCompleted = False
DoEvents
Wend

The next line gives the problem:
ObjSearch.Save("Test")
I can't save the results and get an error: operation failed

2) If that would work, I want to use the OVC. Now, if I use results
from my local address book (not public folder), it always give
standard fields: from, to , date, etc. How can I change the fields
that the OVC should show?

Thanks in advance for helping me!
 
Saving the search creates a MAPI search folder and those are not supported
in Exchange public folders.
 
Hi Ken,

Thanks for replying!

Is it possible to save search results (contacts) from an Exchange
public folder in a MAPI Search folder, in the users mailbox under
search folders?
 
No, when you save the search it creates a MAPIFolder which is a search
folder and it creates it in the mail store where the search was conducted.
There's no way I know of to set up the search folder in another store such
as a mailbox.
 
Back
Top