AdvancedSearch Method Outlook 2003 problem

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.
 
S

Sue Mosher [MVP-Outlook]

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
 
G

Guest

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
 

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