Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calendar Control for Outlook 2007

Status
Not open for further replies.

carlp69

IS-IT--Management
Sep 23, 2003
157
GB
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 :-
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
Like I say it works fine in 2003 but fails in 2007

Any Ideas.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top