great it's working now, thanks for all your help. But I have one more thing.
For some reason it only putting something in the calendar for 12 midnight till 00:30, what will i need to do to get it to be a all day event
objAppt.Start = #2/2/2003 3:00:00 PM#
objAppt.End = #2/2/2003 4:00:00 PM#
Format(Date, shortDate) & " " & Format(Date, ShortTime)
Unless I'm missing something which is very likely, my code picks up the dates from the form, how does it do it with the code you sent.
With objAppt
.Start =Format(Me!AbsenceDateFrom, shortDate) & " 08:00:00"
.End = Format(Me!AbsenceDateTo, shortDate) & " 09:00:00"
.Subject = Me!Subject
If Not IsNull(Me!AbsenceNotes) Then .Body = Me!AbsenceNotes
.AllDayEvent = True
.BusyStatus = olOutOfOffice
while we're on a roll, could I ask one more thing.
At the moment on the database I can go in to it, pick someone I have permission to book to there calendar and add an appointment. Is it also possible to have the appointment put into another shared calendar at the sametime?
So it would then go into his/hers plus shared calendar