Question URGENT : CONTAINS logic for Items.Filter in Outlook

T

TheStarSailor

Hi,

I'm using the Outlook interop for searching contacts in Outlook 2003 / 2007.
I have something like

Items.Filter('[FirstName]>"MyNameZZZ")

that works for filtering names that BEGIN with MyName. However, now what I
want to do is bring in the CONTAINS logic. I would like to search for names
that contain a specified string. Can anyone please help me with this ? DASL
would not be a very good option for me because all the fields to be searched
can be configured during run time.

Can anyone please help me in creating a FILTER that has the CONTAINS logic ?

Any help would be highly appreciated !

Thanks in advance !
 
T

TheStarSailor

Hi Michael,

Thank you for that insight. However, can you tell me what method should I
use when I use the Redemption library that would allow me to FILTER Outllook
ITEMS ?

Thanks in advance !


Michael Bauer said:
The Outlook object modell doesn't expose that. You could use the Redemption
instead, see www.dimastr.com for details.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Thu, 13 Nov 2008 01:34:08 -0800 schrieb TheStarSailor:
Hi,

I'm using the Outlook interop for searching contacts in Outlook 2003 / 2007.
I have something like

Items.Filter('[FirstName]>"MyNameZZZ")

that works for filtering names that BEGIN with MyName. However, now what I
want to do is bring in the CONTAINS logic. I would like to search for names
that contain a specified string. Can anyone please help me with this ? DASL
would not be a very good option for me because all the fields to be searched
can be configured during run time.

Can anyone please help me in creating a FILTER that has the CONTAINS logic ?

Any help would be highly appreciated !

Thanks in advance !
 
M

Milly Staples [MVP - Outlook]

Try reposting this in a news group that supports programming Outlook such as
microsoft.public,outlook.program_vba.

--
Milly Staples [MVP - Outlook]

Post all replies to the group to keep the discussion intact.
ALWAYS post your Outlook version.
How to ask a question: http://support.microsoft.com/KB/555375


After furious head scratching, TheStarSailor asked:

| Hi Michael,
|
| Thank you for that insight. However, can you tell me what method
| should I use when I use the Redemption library that would allow me to
| FILTER Outllook ITEMS ?
|
| Thanks in advance !
|
|
| "Michael Bauer [MVP - Outlook]" wrote:
|
||
||
|| The Outlook object modell doesn't expose that. You could use the
|| Redemption instead, see www.dimastr.com for details.
||
|| --
|| Best regards
|| Michael Bauer - MVP Outlook
||
|| : Outlook Categories? Category Manager Is Your Tool
|| : VBOffice Reporter for Data Analysis & Reporting
|| : <http://www.vboffice.net/product.html?pub=6&lang=en>
||
||
|| Am Thu, 13 Nov 2008 01:34:08 -0800 schrieb TheStarSailor:
||
||| Hi,
|||
||| I'm using the Outlook interop for searching contacts in Outlook
||| 2003 / 2007. I have something like
|||
||| Items.Filter('[FirstName]>"MyNameZZZ")
|||
||| that works for filtering names that BEGIN with MyName. However, now
||| what I want to do is bring in the CONTAINS logic. I would like to
||| search for names that contain a specified string. Can anyone please
||| help me with this ? DASL would not be a very good option for me
||| because all the fields to be searched can be configured during run
||| time.
|||
||| Can anyone please help me in creating a FILTER that has the
||| CONTAINS logic ?
|||
||| Any help would be highly appreciated !
|||
||| Thanks in advance !
 
M

Michael Bauer [MVP - Outlook]

This is very powerful:
http://www.dimastr.com/redemption/mapitable.htm

As Milly mentioned, please use the newsgroup
microsoft.public.outlook.program_vba for programming issues.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Sun, 16 Nov 2008 21:11:00 -0800 schrieb TheStarSailor:
Hi Michael,

Thank you for that insight. However, can you tell me what method should I
use when I use the Redemption library that would allow me to FILTER Outllook
ITEMS ?

Thanks in advance !


Michael Bauer said:
The Outlook object modell doesn't expose that. You could use the Redemption
instead, see www.dimastr.com for details.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Thu, 13 Nov 2008 01:34:08 -0800 schrieb TheStarSailor:
Hi,

I'm using the Outlook interop for searching contacts in Outlook 2003 / 2007.
I have something like

Items.Filter('[FirstName]>"MyNameZZZ")

that works for filtering names that BEGIN with MyName. However, now what I
want to do is bring in the CONTAINS logic. I would like to search for names
that contain a specified string. Can anyone please help me with this ? DASL
would not be a very good option for me because all the fields to be searched
can be configured during run time.

Can anyone please help me in creating a FILTER that has the CONTAINS
logic
?
Any help would be highly appreciated !

Thanks in advance !
 

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