AdvancedSearch Method Outlook 2003 problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Everyone

I've developed a Vb6 addin for Outlook 2003.
My AddIn use the AdvancedSearch method of the Application object to search
the messages contained in a public folder.

If I search for a message that contains a word, for example "Rome" it works
great.
If I search for a message that contains two or more words, i.e "Rome
NewYork" it find only messages that contains the entire string.

This is the DASL filter I pass to the filter parameter of the AdvancedSearch
method

((urn:schemas:httpmail:textdescription LIKE '%Rome NewYork%'))

Using the Outlook advanced find directly it find all the messages that
contains Rome, or NewYork or both of them.

Why?

Any help would be greatly apreciated.
Simone.
 
Your filter specifically asks for matches to the *phrase* Rome NewYork. This filter would look for either Rome or New York:

(("urn:schemas:httpmail:textdescription" LIKE '%Rome%') OR ("urn:schemas:httpmail:textdescription" LIKE '%New York%'))

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
It works!
Thank you Sue!!

Sue Mosher said:
Your filter specifically asks for matches to the *phrase* Rome NewYork. This filter would look for either Rome or New York:

(("urn:schemas:httpmail:textdescription" LIKE '%Rome%') OR ("urn:schemas:httpmail:textdescription" LIKE '%New York%'))

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top