A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2007 SQL syntax to filter views of tasks and todo items



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old December 1st 09, 06:33 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2007 SQL syntax to filter views of tasks and todo items

The DASL MAPI tags look OK to me for Completed = false plus the conditions
for categories and your UDF.

Is that UDF defined so that it's a field in the folder where you are
filtering? Perhaps also including a clause that tests for the UDF existing
might be helpful.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"hjfcfo" wrote in message
...
I am trying to create a filtered view of todo items in Outlook 2007. In
the
filter, I want to exclude completed to-do items, and include to-do items
that
have the "Category: = "Business", and a user defined custom text field
call
"Project" that contains the word "Financing". When I enter these filters,
I
get no results which is not what I'd expect. Here is the syntax Outlook
generated for this:

("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/811c000b"
= 0 AND
"http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Project"
LIKE '%Financing%' AND "urn:schemas-microsoft-comfficeffice#Keywords"
=
'Business')

What is incorrect about the syntax that is causing the filter to have no
results at all?

Thnaks to anyone that has this knowledge.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003 SQL Syntax for Filter PureRadiantJoy Outlook - Using Contacts 1 September 28th 07 06:10 PM
AdvancedSearch Filter Syntax for Advanced Date Search on Appointme StephenCarterMCP Outlook and VBA 1 February 20th 07 01:19 PM
ToDO: Animated GIFs in Outlook 2007 Arthur Dent Outlook - General Queries 4 September 5th 06 12:00 PM
Filter tasks in Outlook Today [email protected] Outlook - General Queries 4 February 6th 06 02:35 PM
Can you view tomorrow's todo items in Outlook Today view? Charles Lewis Outlook - General Queries 0 January 8th 06 11:30 PM


All times are GMT +1. The time now is 03:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.