A
Andy
I have successfully added an All Day appointment for tomorrow in Outlook from
Access using :-
--------------
Dim objOutlook As Outlook.Application
Dim objCalendar As Object
Dim objAppointment As Object
Set objOutlook = New Outlook.Application
Set objCalendar = objOutlook.Session.GetDefaultFolder(olFolderCalendar)
Set objAppointment = objCalendar.Items.Add
With objAppointment
.Subject = "Test"
.Start = Date + 1
.AllDayEvent = True
End With
objAppointment.Close olSave
Set objAppointment = Nothing
Set objOutlook = Nothing
Access using :-
--------------
Dim objOutlook As Outlook.Application
Dim objCalendar As Object
Dim objAppointment As Object
Set objOutlook = New Outlook.Application
Set objCalendar = objOutlook.Session.GetDefaultFolder(olFolderCalendar)
Set objAppointment = objCalendar.Items.Add
With objAppointment
.Subject = "Test"
.Start = Date + 1
.AllDayEvent = True
End With
objAppointment.Close olSave
Set objAppointment = Nothing
Set objOutlook = Nothing