I looked at the other thread about late binding and decided to start a new thread.
How ever I try to do late binding, I get the error object doesn't support this property or method.
and it all starts at the .MeetingStatus line.
Even if I comment that line out, it will have the same error on the next and so on.
I'm not sure what's the reason for that so I'm looking for any guidance possible.
I did have success when I had the reference for my outlook version checked while running this code:
Obviously I need to support outlook 2003 as well as 07 so I've been told that late binding is the way to go.
I am open to other suggestions though too.
Thanks!
How ever I try to do late binding, I get the error object doesn't support this property or method.
and it all starts at the .MeetingStatus line.
Even if I comment that line out, it will have the same error on the next and so on.
Code:
CreateObject("Outlook.Application").CreateItem (olAppointmentItem)
With CreateObject("Outlook.Application").CreateItem(olAppointmentItem)
.Subject = [Forms]![frmCM]![txtFullName]
.MeetingStatus = olMeeting
.Start = Me.ApptStartDate & " " & Me.ApptStartTime
.End = Me.ApptStartDate & " " & Me.ApptEndTime
.Body = "Appointment Type: " & Me.ApptType
.Send
End With
I'm not sure what's the reason for that so I'm looking for any guidance possible.
I did have success when I had the reference for my outlook version checked while running this code:
Code:
Dim outMail As Outlook.AppointmentItem
Me.Refresh
Set outMail = Outlook.CreateItem(olAppointmentItem)
outMail.Subject = [Forms]![frmCM]![txtFullName]
outMail.MeetingStatus = olMeeting
outMail.Start = Me.ApptStartDate & " " & Me.ApptStartTime
outMail.End = Me.ApptStartDate & " " & Me.ApptEndTime
outMail.Body = "Meeting Type: " & Me.ApptType
outMail.Send
Obviously I need to support outlook 2003 as well as 07 so I've been told that late binding is the way to go.
I am open to other suggestions though too.
Thanks!