Specifying Date Based SQL Filter for Custom Calendar View

S

Steven Reid

Hi all,

I am trying to create a table view within Outlook 2003 (11.5608.5703)
that will only show entries where the start date is within the last
two months.

Going in and setting the filter to say all items where the start date
is in the last month gives me
%lastmonth("urn:schemas:calendar:dtstart")%
or using the modified date gives me %lastmonth("DAV:getlastmodified")%
in the SQL tab.

But i need something for the last two months.

I have tried to create a user defined field (udf) in the folder which
uses the datediff function to show number of months since the start
date ie. datediff('m',now(), [startdate])

but when I try to filter on this field it does not show up in the user
defined fields.

Any suggestions?

Thanks
Steven Reid
 

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