Hi there,
Elsewhere on this forum there is an example of how to add a calendar item to Outlook via Access. There is also an example of how to pull out a single appointment, edit it or delete it.
I'm storing a unique ID in the [mileage] field in the appointment - and if necessary, I can store the full appointment info in a table.
I can cope with adding the Outlook Item with the following code:
But recalling the appointment and updating it or deleting it is really confusing me. I'm struggling to find any useful resources covering Outlook.Application and it's use so I'm hoping for some pointers here.
Can someone help?
Thanks!
Elsewhere on this forum there is an example of how to add a calendar item to Outlook via Access. There is also an example of how to pull out a single appointment, edit it or delete it.
I'm storing a unique ID in the [mileage] field in the appointment - and if necessary, I can store the full appointment info in a table.
I can cope with adding the Outlook Item with the following code:
Code:
Private Sub cmdCreateAppointment_Click()
Dim outobj As Outlook.Application
Dim outappt As Outlook.AppointmentItem
Set outobj = CreateObject("outlook.application")
Set outappt = outobj.CreateItem(olAppointmentItem)
With outappt
.Start = Me.EventStart & " " & Me.time
.Duration = Me.Duration
.Subject = Me.Subject
.Mileage = Me.uniqueID
.Save
End With
Set outobj = Nothing
DoCmd.RunCommand acCmdSaveRecord
MsgBox "Appointment Added!"
Exit Sub
End Sub
But recalling the appointment and updating it or deleting it is really confusing me. I'm struggling to find any useful resources covering Outlook.Application and it's use so I'm hoping for some pointers here.
Can someone help?
Thanks!