I have coding that updates the Outlook calendar from an Access form and works fine in outlook 2003. In outlook 2007 it come up with the error "Object library feature not supported".
I have looked at the VB references and it has changed the "Microsoft Outlook 11.0 Object Library" to "Microsoft Outlook 12.0 Object Library" but the "Microsoft Calendar Control 11.0" has remained the same and I cannot locate the control for Outlook 12.
The code typically reads like this :-
Like I say it works fine in 2003 but fails in 2007
Any Ideas.
I have looked at the VB references and it has changed the "Microsoft Outlook 11.0 Object Library" to "Microsoft Outlook 12.0 Object Library" but the "Microsoft Calendar Control 11.0" has remained the same and I cannot locate the control for Outlook 12.
The code typically reads like this :-
Code:
Dim MyFolder As Outlook.MAPIFolder
Dim myItem As AppointmentItem
Set myItem = MyFolder.Items.Add
With myItem
.Subject = "Subject"
.start = Startdate
.End = Enddate
.AllDayEvent = AllDay
.Body = DayCodeDesc
.Categories = Ref
End With
myItem.Save
Any Ideas.