G
Guest
I am writing an application to retrieve appointments from Outlook, I have the appointment items sorted by
"Start" field and now I want to find the first record which's "Start" value is later than now (future appointment
The relevant piece of my current code
Dim oCalendar As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar
Dim oItems As Outlook.Items = oCalendar.Item
oItems.Sort("Start"
oItems.IncludeRecurrences = Tru
Dim oAppt As Outlook.AppointmentItem = oItems.Find("[Subject] = ""Flight, CO 0516 2:10pm"""
What is the syntax to replcae the ("[Subject] = ""Flight, CO 0516 2:10pm""") in the last line to reflect what I need
something like ".Find("[Start] >" & Now.ToString)" - which does not wor
Your help is greatly appriciate
Thanks
Ori
"Start" field and now I want to find the first record which's "Start" value is later than now (future appointment
The relevant piece of my current code
Dim oCalendar As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar
Dim oItems As Outlook.Items = oCalendar.Item
oItems.Sort("Start"
oItems.IncludeRecurrences = Tru
Dim oAppt As Outlook.AppointmentItem = oItems.Find("[Subject] = ""Flight, CO 0516 2:10pm"""
What is the syntax to replcae the ("[Subject] = ""Flight, CO 0516 2:10pm""") in the last line to reflect what I need
something like ".Find("[Start] >" & Now.ToString)" - which does not wor
Your help is greatly appriciate
Thanks
Ori