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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Simone" <(E-Mail Removed)> wrote in message news:CEDF8B10-F2BD-4AE9-88AE-(E-Mail Removed)...
> 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.