Finding Recurring Items with Exceptions

G

Guest

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
 
M

Michael Bauer [MVP - Outlook]

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

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

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