PC Review


Reply
Thread Tools Rate Thread

AdvancedSearch Method Outlook 2003 problem

 
 
=?Utf-8?B?U2ltb25l?=
Guest
Posts: n/a
 
      17th Nov 2005
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.
 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      17th Nov 2005
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.

 
Reply With Quote
 
=?Utf-8?B?U2ltb25l?=
Guest
Posts: n/a
 
      17th Nov 2005
It works!
Thank you Sue!!

"Sue Mosher [MVP-Outlook]" wrote:

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

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with AdvancedSearch method Chris O''''Neill Microsoft Outlook VBA Programming 15 7th Aug 2008 03:11 PM
problem with Restrict method in Outlook 2003 benzi Microsoft Outlook VBA Programming 0 24th May 2007 03:50 PM
Re: AdvancedSearch Method Ken Slovak - [MVP - Outlook] Microsoft Outlook VBA Programming 1 8th Dec 2006 12:02 AM
AdvancedSearch Method in Exchange Server environment =?Utf-8?B?SG93YXJk?= Microsoft Outlook VBA Programming 5 26th Apr 2006 07:55 PM
Outlook 2003 beta problem with Link.Item method Joanne Microsoft Outlook VBA Programming 1 31st Jul 2003 08:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:08 PM.