Automatically Email a Manager When a Microsoft Access Record Is Complete
Question details
Send a manager an email when an inspection record is saved with a qualifying result.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- An inspection form contains a result combo box, and the notification should include the saved record ID.
- Observed behavior
- A qualifying saved record should trigger an email containing its ID and result.
Open the inspection form in Design View and confirm the names of the result combo box and record ID control. Make sure a compatible email client is configured, and have the manager's email address ready.
Send an email from the form's After Update event
Use this method when the email should be triggered after an inspection record is saved with a Pass result.
The form's After Update event runs after a new or edited record is saved. The example checks the combo box value and adds the record ID to the message.
Open the form in Design View, select the form, and open Property Sheet > Event. Set After Update to [Event Procedure], then click the build button to open the VBA editor.
In the Form_AfterUpdate procedure, enter: If Nz(Me.cboResult.Value, "") = "Pass" Then DoCmd.SendObject acSendNoObject, , , "manager@example.com", , , "Inspection complete", "Inspection record ID: " & Me.ID & " has passed.", True End If
Replace manager@example.com with the manager's address and change cboResult and ID to match your form's controls. Save the form, open it in Form View, select Pass, and save the record. Confirm that the email opens with the correct record ID.
After testing, change the final SendObject argument from True to False in the VBA editor. Save the form and test again; your email client or security settings may still display a prompt.

Track inspection results in WPS Spreadsheets
WPS Office is a free, lightweight Office alternative with a familiar interface and Microsoft Office format compatibility for moving spreadsheet-based inspection logs. It does not replace Microsoft Access or fix its form events and email automation.

Frequently Asked Questions
Can I send an email when the result is selected instead of when the record is saved?
Yes. In the combo box's Property Sheet > Event, set After Update to [Event Procedure] and add the result check and email code there. This event can run before the record is saved, so it is not the best choice if the notification must confirm a saved record.
How do I send notifications for Fail instead of Pass?
In the VBA condition, replace "Pass" with "Fail". The text must match the value stored by the combo box, which may differ from its displayed label.
Why does the email open without sending automatically?
The final True argument in DoCmd.SendObject opens the message for review. Change it to False after testing to request automatic sending, although the email client or security settings may still prompt you.
Why might the manager receive more than one email for a record?
The form's After Update event runs after each saved edit. If the result is still Pass, the condition remains true. Add and check a notification-sent flag if only one email should be sent per record.




