Yes, that is what I have done, I am refering the RecurrencePattern object I
obtained throught the GetRecurrencePattern (The only way to get the
reccurence properties of an appointment item or task item) is through the
GetRecurrencePattern in OOM. Unless there are other method to go?
E.g.
Dim myRecurrPatt As Outlook.RecurrencePattern
'myAppItem is the item that I have keyed in into Outlook calendar
Set myRecurrPatt = myApptItem.GetRecurrencePattern
The 2 problems are actually refering the RecurrencePattern object that I
obtained
1. Outlook will automatically calculate both
- Occurrences (integer)
- PatternEndDate (Date)
Even if I have selected only one of it, say I select "End After XXXX
Occurrence" radio
button or "End By DD/MM/YYYY" radio button.
That means the Occurences and PatternEndDate field of "myRecurrPatt " will
always be filled up (unless the NoEndDate = true but not in this case as I
am not selecting No End Date).
I can't seems to be able to find other field to differentiate what was the
initial user choice (was user selected End After XXX occurrence / End By
MM/DD/YYYY?)
2.If i set my Task Item to be recurring Weekly - Regenerate 1 New task in
my Outlook 2003 task. When I use OOM to read the Task item, like
When I call
Set myRecurrPatt = myTaskItem.GetRecurrencePattern
if myRecurrPatt.RecurrenceType = olRecursWeekly Then
MsgBox "Nope, this wasn't called??"
end if
if myRecurrPatt.RecurrenceType = olRecursDaily Then
MsgBox "Yes, this was called?? Huh???"
end if
It has become RecursDaily and not olRecursWeekly which this will clash with
the case whereby user'task item is really recurring in olRecursDaily and
Regenerate 1 New task.
I have check through other combinations (recurrence pattern). All working
as mentioned in the Office VBA help files so far but left out these two odds
which giving me headache. Anyone encounter this before? Or these are again
another issues that require workaround like some other OOM functions?
Need pointers from gurus.
thanks in advance.
"Ken Slovak - [MVP - Outlook]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> In both cases mentioned in your posts there is no way to know what the
> user has selected in the recurrence settings dialog. All you have to go on
> is the actual recurrence pattern properties that are created.
>
> --
> 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
>
>
> "semut" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hello,
>>
>> I notice that Outlook will automatically calculate both
>>
>> - Occurrences (integer)
>> - PatternEndDate (Date)
>>
>>
>> Even if I only select either one of it, say I select "End After" radio
>> button or "End By" radio button.
>>
>> It is logic that both are calculatable even I have keyed in one of them.
>>
>> The problem now is that how could I know what was the user selection?
>>
>> Is the user select "End After" or "End By"?
>>
>> Is there any field/properties in MAPI/CDO/OOM that I could tell what is
>> the selection?
>>
>>
>> thanks in advance.
>>
>>
>