I am trying to send an email reminder to outlook from a command button.
I found this code on the forums, but I am getting a "Method or Data member not found" error message.
Here is the code that I am using:
I am getting the error on this:
Any help is appreciated.
Thanks
I found this code on the forums, but I am getting a "Method or Data member not found" error message.
Here is the code that I am using:
Code:
Dim objOutlook As Application
Dim objAppt As Object
Set objOutlook = GetObject("Outlook.Application")
Set objAppt = objOutlook.CreateItem(1) '1=olAppointmentItem
With objAppt
.Start = Me.txtstartDate
.Subject = "Project Start Date is " & [txtStartDate] & "Project Due Date is " & [Project Due Date] & "You will be required to attend the October 25th meeting in Vermont."
.ReminderSet = True
.ReminderMinutesBeforeStart = 15
.Save
I am getting the error on this:
Code:
Set objAppt = objOutlook.CreateItem(1) '1=olAppointmentItem
Any help is appreciated.
Thanks