Outlook 2003 Advanced search Problems

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!
 
K

Ken Slovak - [MVP - Outlook]

Saving the search creates a MAPI search folder and those are not supported
in Exchange public folders.
 
T

Thra?n

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?
 
K

Ken Slovak - [MVP - Outlook]

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.
 

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