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

Finding Recurring Items with Exceptions



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 15th 06, 01:35 AM posted to microsoft.public.outlook.program_vba
Tadwick
external usenet poster
 
Posts: 104
Default Finding Recurring Items with Exceptions

Could someone please confirm the following. If you want to find all
appointments between two dates StartRange and EndRange you can restrict the
items collection using a filter as in :

strFilter = "([End] '" + Format(StartRange, "mmmm dd, yyyy") + " ' AND
[Start] '" + Format(EndRange, "mmmm dd, yyyy") + "') "
Set oItms = oItms.Restrict(strFilter)

However, to be rigorous you need to find all exceptions that fall inside
your range. The problem is that you cannot rely on the above filter to
capture those exceptions as the recurrence pattern may specify dates outside
the range but one or more exceptions may be inside the range.

So the solution seems to be either set IncludeRecurrences to True and take a
performance hit or get the recurrence pattern for all items and check all the
exceptions for dates in the range.

Is this correct?

Thanks, Tad
  #2  
Old September 15th 06, 06:29 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Finding Recurring Items with Exceptions

Am Thu, 14 Sep 2006 16:35:02 -0700 schrieb Tadwick:

Yes, for getting recurrences with Restrict you need to set
IncludeRecurrences=True.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Could someone please confirm the following. If you want to find all
appointments between two dates StartRange and EndRange you can restrict

the
items collection using a filter as in :

strFilter = "([End] '" + Format(StartRange, "mmmm dd, yyyy") + " ' AND
[Start] '" + Format(EndRange, "mmmm dd, yyyy") + "') "
Set oItms = oItms.Restrict(strFilter)

However, to be rigorous you need to find all exceptions that fall inside
your range. The problem is that you cannot rely on the above filter to
capture those exceptions as the recurrence pattern may specify dates

outside
the range but one or more exceptions may be inside the range.

So the solution seems to be either set IncludeRecurrences to True and take

a
performance hit or get the recurrence pattern for all items and check all

the
exceptions for dates in the range.

Is this correct?

Thanks, Tad

 




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
Using Restrict on recurring appointments with Exceptions deliveries wrong results!!!! Lucia Outlook and VBA 8 August 31st 06 09:59 AM
HELP! Procedure or Program suggestion for finding multiple - the last 4 occurances - of recurring appointments Christopher Welber Outlook - General Queries 0 May 22nd 06 01:08 AM
finding schedule conflicts for recurring items Charlie H Outlook - Calandaring 0 April 26th 06 10:36 PM
Finding Calendar items andy Outlook and VBA 4 March 10th 06 05:35 PM
How to Create Exceptions to Recurring Appointment Sabrina Outlook - General Queries 1 January 11th 06 03:10 PM


All times are GMT +1. The time now is 11:29 AM.


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.