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

birthday DASL-filter



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old December 20th 07, 08:57 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default birthday DASL-filter

That's a real hum-dinger! I don't think this is possible, primarily because
you'll always be doing a conditional evaluation on a transformed date. And
from what I remember, there are no VBA-like functions available to do this.
If you could use VBA, I think it would equate to this:

DateSerial(Year(Today()),Month("urn:schemas:contac ts:bday"),
Day("urn:schemas:contacts:bday")) = Today() AND
DateSerial(Year(Today()),Month("urn:schemas:contac ts:bday"),
Day("urn:schemas:contacts:bday")) = Today(604800))

The only supported SQL function in DASL that I know of is CAST, but that
doesn't help us extract a date fragment for an evaluation.

Andew Delin has a list of the supported date functions (this is where I got
the Today(604800) offset trick from):

Andrew Delin's WebLog : Doing more with Outlook filter and SQL DASL syntax:
http://blogs.msdn.com/andrewdelin/ar...11/416312.aspx

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"rainer.100" wrote:

I have got a problem with DASL I could not solve anytime.
I want to create a user defined view for my Outlook Contacts. This
view has to show me all friends who have birthday in the next seven
days. So I can send them a letter by using serial letters with MS
Word.
By using the Filter-Generator in Outlook (I am German and I don't know
the englisch words) I can create this string
%next7days("urn:schemas:contacts:bday")%
By using this string Outlook compares only birthdates in the current
year.
What is the syntax in DASL to create a query like this?
next7days(day(bday) & "." & month(bday) & "." & year(now()))
I hope you have the answer or you know a link with it.
Thanks in advance
Rainer

 




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
DASL filters 2007 not retained [email protected] Outlook - Using Contacts 6 July 25th 07 06:43 AM
Please fix a new bug in the user-defined DASL filter in Outlook 20 ericmkcc Outlook - Using Contacts 1 July 9th 07 04:37 PM
DASL Filter on custom property Jeff Graves Add-ins for Outlook 0 April 8th 07 04:58 AM
Filter out All Contacts that have birthday in 5 days Bert_Bert Outlook - Using Contacts 0 August 24th 06 12:32 PM
DASL Filters!!!! Radiohead Add-ins for Outlook 2 February 21st 06 02:40 PM


All times are GMT +1. The time now is 03:49 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.