Setting custom field in appointment changes IsRecurring value

C

Curtis Cameron

If anyone can help with a workaround to this problem, I would
apprecitate it. With Outlook 2000 (it doesn't happen in 98), if I try
to add a custom field to an already existing appointment item, the
IsRecurring value will then be set to True. I've tried storing the
value of IsRecurring before the change, and setting it back, but then
when I set it back, the appoinment's other values like its start date
and time change. Here are examples:

Subject: my appt
Start: 9/8/2003 10:00:00 am
IsRecurring: False

Then I do this operation:
ThisItem.UserProperties.Add("LXRecord", olNumber).value = thisdata
ThisItem.Save
This creates a custom field called "LXRecord", which holds a numeric
value, and sets it equal to the number in thisdata.

But now the appointment will be:
Subject: my appt
Start: 9/8/2003 10:00:00 am
IsRecurring: True

If I store the value of IsRecurring before the change, in this case
False, I can follow all that with this code:
If ThisItem.IsRecurring And not OldRecurring Then
ThisItem.ClearRecurrencePattern
ThisItem.Save
End If

This resets the IsRecurring value, but now the appointment says:
Subject: my appt
Start: 10/20/2003 10:00:00 am
IsRecurring: False

The Start date has changed to today! Needless to say, this would
really mess up someone's calendar. Is there a workaround?
 

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