Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
GetAppointmentsInRange not working when I use owner
posted

Hi folks,

Hope someone can help me. I am trying to use GetAppointmentsInRange to get back a count of appointments for a given range of dates  for the active owner. When I use GetAppointmentsInRange  with just date ranges it works fine (I get back ALL appointments for the range entered. But, when I use GetAppointmentsInRange with the active owner as a parameter, it doesn't work, I get back a count of 0, even though there are appointments for the active owner. The code I am using is below. Any idea on what I am doing wrong?

Thanks,

Charlie

 

Dim DayAppointments As AppointmentsSubsetCollectionDayAppointments = Me.cinfo.GetAppointmentsInRange(msDateTime, meDateTime, Me.scheduler.ActiveOwner)

NoAppointments = DayAppointments.Count