I have a database that tracks the schedule for multiple employees. When the data entry screen for an appointment is closed it fires a VBA code that sends the assigned employee a summery of the appointment.
Here is the code I use.
DoCmd.SendObject , , , [teemail], , , "You have a new schedule item.", "Type of Appointment: " & [totDescription] & vbCrLf & vbCrLf & "Date: " & [tblSchedule.scDate] & vbCrLf & "Start Time: " & [scStartTime] & vbCrLf & vbCrLf & "End Time: " & [scEndTime] & vbCrLf & vbCrLf & "Project Number: " & [prProjectNumber] & vbCrLf & "Project Name: " & [prName] & vbCrLf & vbCrLf & "Location: " & [scLocation] & vbCrLf & "Directions/Map: " & slink & vbCrLf & vbCrLf & "Contractor: " & [coName] & vbCrLf & vbCrLf & "Material Info: " & [scMaterialInformation] & vbCrLf & vbCrLf & "Inspector: " & [inFullName] & vbCrLf & "Email: " & [inEmail] & vbCrLf & "Cell: " & [inCell] & vbCrLf & vbCrLf & "Remarks: " & [tblSchedule.scNotes], 0
My question is, can I have that email also include an outlook appointment invite attached to the email that would have the Date (tblSchedule.scDate), Start Time (scStartTime), End Time (scEndTime), Subject (totDescription), and Location (scLocation) already filled out, so the user can just open the attachment and click "Accept"?