PDA

Click to See Complete Forum and Search --> : Find Appointment DURATION


HWijngaarD
Apr 6th, 2006, 09:05 AM
Hi,

How can I find appointments with [DURATION]?

cssriraman
Apr 6th, 2006, 12:00 PM
What is Appointment? Regarding what? in which application?

Please give more details.

HWijngaarD
Apr 7th, 2006, 02:10 AM
Sorry,

In Outlook items...

Normaly I search with START en END,
but I now got only the day and not the time and I know the duration of the appointment.

HWijngaarD
Apr 10th, 2006, 01:45 AM
I've tried this:

Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myFolder = myNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar)
Set Appointment = myFolder.Items.Find("[Duration] = 150")

But It won't find any appointment of 150 minutes.
And I'm definitely sure I got at least one!

RobDog888
Apr 10th, 2006, 09:22 AM
Verify first that you have at least one item in your default calendar with a duration of 150 minutes. Note, Duration is in munites and not hours or time.