Automatically Email Users When a Microsoft Access Field Changes
Question details
The user wants Microsoft Access to notify users by email when a particular field changes.

- Product
- Microsoft Access with VBA and Outlook automation
- Device & OS
- not provided
- Scenario
- A user edits a field in an Access form, and an email notification should be sent when the changed record is saved.
- Observed behavior
- The desired behavior is to detect a relevant value change and email the intended recipients after the update succeeds.
Identify the bound form, the control for the field being monitored, and the notification recipients. For the Outlook automation example, use Windows with classic Outlook installed and a configured mail profile, and enable VBA only for a trusted Access database.
Detect the field change before saving and email after the record updates
Use this approach when notifications should follow successful changes made through a specific Access form.
Compare the control's current value with its OldValue in the form's Before Update event, while the previous value is still available. Store the result in a module-level flag, then use the form's After Update event to send the notification after the record is saved.
This approach monitors edits through that form only. Direct table edits, action queries, imports, and changes made through other forms do not trigger its events.
Open the form in Design View, select the control to monitor, and open its Property Sheet. Check the Name and Control Source properties. The example assumes the control is named Status and is bound to the field you want to monitor.
Select the form itself in the Property Sheet and open the Event tab. Set Before Update, After Update, and On Current to [Event Procedure]. Click the ellipsis button to open the form's VBA module.
Add the declaration at the top of the form module and the procedures below. If these event procedures already exist, merge the logic into them rather than creating duplicates. Replace Status with your control name and recipient@example.com with a valid recipient. Private mNotifyStatusChange As Boolean Private Sub Form_BeforeUpdate(Cancel As Integer) mNotifyStatusChange = _ (Nz(Me!Status.Value, "") <> Nz(Me!Status.OldValue, "")) End Sub Private Sub Form_AfterUpdate() Dim outlookApp As Object Dim mail As Object If Not mNotifyStatusChange Then Exit Sub mNotifyStatusChange = False On Error GoTo MailError Set outlookApp = CreateObject("Outlook.Application") Set mail = outlookApp.CreateItem(0) With mail .To = "recipient@example.com" .Subject = "Access status changed" .Body = "The record was saved with a new status: " & _ CStr(Nz(Me!Status.Value, "(blank)")) .Display End With Set mail = Nothing Set outlookApp = Nothing Exit Sub MailError: MsgBox "The record was saved, but the email could not be created: " & _ Err.Description, vbExclamation End Sub Private Sub Form_Current() mNotifyStatusChange = False End Sub
In the VBA editor, choose Debug > Compile, then open the form in Form View. Change Status and save the record using Home > Records > Save, or move to another record. Confirm that an email draft opens. Also test saving an unrelated field change and restoring Status to its original value before saving; neither should generate a status-change email.
Once the recipient and message are correct, replace .Display with .Send in the Form_AfterUpdate procedure. Save the form and test with a controlled recipient. Outlook security settings may prompt for permission or block programmatic sending; follow your organization's approved mail policy.
Use WPS Office for Documents That Support Your Access Workflow
WPS Office is a free, lightweight alternative for everyday documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format compatibility make migration easy for supporting files, but it does not replace Microsoft Access or run this Access VBA email workflow.

Frequently Asked Questions
Should I use the control's After Update event or the form's After Update event?
Use the form's After Update event when the email should follow a saved record. A control's After Update event can run while the record is still unsaved. Compare the target control's Value and OldValue in the form's Before Update event, then send from the form's After Update event.
Will the email be sent if someone changes the table directly?
No. The code belongs to a form module and runs only when that form raises its events. If updates also come from tables, queries, imports, or other applications, use a centralized change-tracking and notification workflow rather than relying on one form.
Can Access send the email without opening an Outlook draft?
Yes. Replace .Display with .Send after testing the example. This requires classic Outlook with a working mail profile, and security policies may still require confirmation or prevent sending. The code does not bypass those restrictions.
How can I send an email only when Status changes to Approved?
In Form_BeforeUpdate, set the flag only when the value changed and the new value is Approved: mNotifyStatusChange = (Nz(Me!Status.Value, "") <> Nz(Me!Status.OldValue, "")) And (Nz(Me!Status.Value, "") = "Approved"). Leave the sending logic in Form_AfterUpdate.
Can WPS Office run this Access database automation?
No. WPS Office does not provide an Access database engine or run Access form-event VBA. Use Microsoft Access for this automation; WPS Writer and Spreadsheet can handle supporting documents and exported spreadsheet data.




