Getting values of custom categories set on Calendar folder

J

JoD

I have set some custom categories in 2 separate calendar folders and would
like to retrieve those in Access. I want the user to be able to select the
desired category to set for a new calendar appointment item.

Unfortunately, the scope of the Categories collection of the
NameSpace object is too broad, and doesn't include the custom categories that
I have set for each calendar. Apparently, neither the MAPIFolder object or
Items object have a Categories collection.

Is there anyway to get the custom categories without having to add an
appointment item?

TIA
 
S

Sue Mosher [MVP]

I'm confused. If you have a Namespace.Categories collection, that must mean
you're using Outlook 2007, right. But Outlook 2007 doesn't support defining
folder-specific calendar color labels in Calendar folders. That feature is
available only in Outlook 2002 and 2003. So maybe you're referring to
calendar labels that were set with an earlier version of Outlook? If so,
those are stored as a hidden field on the calendar folder. The code sample
at http://www.outlookcode.com/codedetail.aspx?id=755 shows how to retrieve
and parse its value with CDO 1.21. With Outlook 2007, you'd use the new
PropertyAccessor object to access the same field using its DASL syntax name,
which is http://schemas.microsoft.com/mapi/proptag/0x36DC0102
 
J

JoD

Sue,

Thank you. I didn't realize the functionality had been removed. Now this
makes sense. Also, I apologize that I didn't include the product version. I
had originally posted the question in the Access discussion group and did a
copy-and-paste, forgetting to copy the salient information.
 

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