![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |