First set a reference to Microsoft Outlook object library from within VBE, then the following sub will show you an example of setting an appointment. You can change it to accommodate settings from your database. Good luck!
Sub CreateOutlookReminder()
Dim ol As Outlook.Application
Dim appt As Outlook.AppointmentItem
On Error Resume Next
Set ol = GetObject(, "outlook.application"
If Err <> 0 Then
Set ol = CreateObject("outlook.application"
End If
On Error GoTo 0
Set appt = ol.CreateItem(olAppointmentItem)
appt.Subject = "Buy something!"
appt.Start = Now + 30 / 60 / 24
appt.End = appt.Start + 30 / 60 / 24
appt.ReminderMinutesBeforeStart = 15
appt.Save
End Sub Rob
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.