Dear Sue
Did u mean about MSDN help. I was trying to serach from google as well. I
ended up with following code but it does not seems checking availability for
me.
Dim strFreeBusy, strFreeBusyTemp, strFreeBusyTemp2, strFreeBusy2 As String
Dim iCurrentSlotStart, iCurrentSlotEnd, iBusySlot As Integer
For Each oRecipient As Outlook.Recipient In m_olAppointmentItem.Recipients
strFreeBusy = oRecipient.FreeBusy(CDate(m_olAppointmentItem.Star t),
1, False)
iCurrentSlotStart = Int(DateDiff("n",
CDate(m_olAppointmentItem.Start), CDate(m_olAppointmentItem.Start)) \ 1)
iCurrentSlotEnd = Int(DateDiff("n",
CDate(m_olAppointmentItem.End), CDate(m_olAppointmentItem.End)) \ 1)
strFreeBusyTemp = Left(strFreeBusy, iCurrentSlotEnd)
strFreeBusyTemp2 = StrReverse(strFreeBusyTemp)
strFreeBusy2 = StrReverse(Left(strFreeBusyTemp2,
Len(strFreeBusyTemp2) - iCurrentSlotStart))
iBusySlot = InStr(1, strFreeBusy2, "1")
If iBusySlot 0 Then
System.Windows.Forms.MessageBox.Show("Resource not
available", "vMeeting for Outlook", Windows.Forms.MessageBoxButtons.OK)
Exit Sub
End If
Next
Highly apprecitae if you could help me bit more in this. or could you please
send me links to articles describing this if possible. Thank you very much
Erosha
"Sue Mosher [MVP-Outlook]" wrote:
Take a look at the Recipient.GetFreeBusy method, which is well documented in Help. That's what you'll need to use to check resource availability.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Khyati" wrote in message ...
Hi
We are using outlook custom form to shedule web conferences. My problem is
when we slect a vedio site ( as a resource/location) and if it is alrady
booked for the specified time , then I got a outlook message
as an example :
"Arctic Ocean room is already booked for specified time. You must find
another resource or find a nother time"
I am getting this message after shceduling my meeting on the bridge abd
saving data on the databse. And meeting is not scheduled on the calendar.
What I want is to check resource availability before doing anything else.
may I know whether it is possible, if so could you pls advice me how to do
this.
Thanks