ID: Q183096
The information in this article applies to:
When accessing a Collaboration Data Objects (CDO) Messages collection, messages of class "IPM.Appointment" will be included when using the GetFirst() or GetLast() methods with the filter parameter set to "IPM.Note".
'This snippet assumes that you have logged on with a valid profile,
'and that the Folder it points to will include a number of messages
'of class IPM.Appointment in order to test the GetFirst(filter).
'
objSession.SetOption "CalendarStore", "Outlook"
Set objCalendarFolder = _
objsession.GetDefaultFolder (CdoDefaultFolderCalendar)
Set objMessageColl = objCalendarFolder.Messages
'Set filter condition of GetFirst to IPM.Note in order to get
'the first message with a class of IPM.Note.
Set objApptItem = objMessageColl.GetFirst("IPM.Note")
RESULT:
Examining the returned objects class property reveals that the GetFirst method with a filter set to return only messages of class IPM.Note in fact returns a message of class IPM.Appointment.
For information about Collaboration Data Objects versus Active Messaging, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q176916
TITLE : INFO: Active Messaging and Collaboration Data Objects (CDO)
Additional query words: OleMsg ActMsg
Keywords : kbCDO100a kbCDO110 kbCDO120 kbCDO121 kbGrpMsg
Version : WINDOWS:1.0a,1.1,1.2,1.21
Platform : WINDOWS
Issue type : kbprb
Solution Type : kbnofix
Last Reviewed: April 8, 1999