Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Notifying Outlook users of dates entered in Access 1

Status
Not open for further replies.

hleighmc

Programmer
Jul 11, 2001
4
US
I am designing a database in a construction department where important dates are being missed. I would like to be able to, once start and finish dates for a project are entered in Access, for a notification either in the Calendar, by e-mail or by tasking to be sent to Outlook. Is this possible?
 
I have done a lot with sending e-mail notifications. If you do this, I recommend setting up a user group that you send the e-mail to and not hardcoding the names in the code. I have also done something similar and posted it directly to the users outlook calendar (this would work if you set up a group calendar)

Dim outobj As Outlook.Application
Dim outappt As Outlook.AppointmentItem

If Len(Me.txtDateFollowUP & "") > 0 Then
Set outobj = CreateObject("outlook.application")
Set outappt = outobj.CreateItem(olAppointmentItem)

With outappt
.start = Me!txtFollowUP & " " & TimeValue("08:00")
.Duration = "15"
.subject = "Follow Up Call Scheduled with " & Me.Customer
.ReminderMinutesBeforeStart = "15"
.ReminderSet = True
.Save
End With

Set outobj = Nothing
msgbox "Appointment Added to Outlook!"

End If

Hope this helps
 
To Nomus1: That sounds perfect! I'm just not sure where I am supposed to enter the information. Any help would be appreciated. Thanks.
 
I have always added this code behind either the onexit or after updateevent for the text box where the date is being entered.

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top