Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Using Find with [EntryID]

Geek News

Using Find with [EntryID]
"Rick H" <rickh_1960[ at ]hotmail.com> 2/22/2007 3:39:13 PM
Can you use the Find command with EntryID?
Criteria = "([EntryID] = """ + ls_entry_id + """)"
This is what I'm using but getting error "The property EntryID in the
condition is not invalid"

I'm trying to get all dates in a new recurring entry. I'm using this
to loop through the new item and get all the recurring date for the
new recurring item

Thanks, Rick

Re: Using Find with [EntryID] for recurring items
"Rick H" <rickh_1960[ at ]hotmail.com> 2/22/2007 4:48:14 PM
On Feb 22, 10:39 am, "Rick H" <rickh_1...[ at ]hotmail.com> wrote:
[Quoted Text]
> Can you use the Find command with EntryID?
> Criteria = "([EntryID] = """ + ls_entry_id + """)"
> This is what I'm using but getting error "The property EntryID in the
> condition is not invalid"
>
> I'm trying to get all dates in a new recurring entry. I'm using this
> to loop through the new item and get all the recurring date for the
> new recurring item
>
> Thanks, Rick

Never mind on the EntryId I found where it is not valid for the Find
command. Now a new question.
When the user enters a new recurring item what is the easiet way to
get all dates with in this recurring item.
I get the recurrence pattern, but I don't see any easy way of getting
the recurring dates with this info.

Thanks, Rick

Re: Using Find with [EntryID] for recurring items
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/23/2007 3:12:55 PM
There is no easy way.

You have to get and analyze the RecurrencePattern. Start at the initial date
and apply the recurrence formula to that to get the next instance. If that
fails or returns a null object you then have to check the Exceptions
collection of the RecurrencePattern to see if the instance for that date has
become an exception by being changed or deleted.

After you get the date for the following instance, you retrieve it using the
GetOccurrence() method.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Rick H" <rickh_1960[ at ]hotmail.com> wrote in message
news:1172162894.803630.248160[ at ]s48g2000cws.googlegroups.com...
[Quoted Text]
> On Feb 22, 10:39 am, "Rick H" <rickh_1...[ at ]hotmail.com> wrote:
>> Can you use the Find command with EntryID?
>> Criteria = "([EntryID] = """ + ls_entry_id + """)"
>> This is what I'm using but getting error "The property EntryID in the
>> condition is not invalid"
>>
>> I'm trying to get all dates in a new recurring entry. I'm using this
>> to loop through the new item and get all the recurring date for the
>> new recurring item
>>
>> Thanks, Rick
>
> Never mind on the EntryId I found where it is not valid for the Find
> command. Now a new question.
> When the user enters a new recurring item what is the easiet way to
> get all dates with in this recurring item.
> I get the recurrence pattern, but I don't see any easy way of getting
> the recurring dates with this info.
>
> Thanks, Rick
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net