How to Send an Email Automatically in Microsoft Access When a Value is Below 1600
Question details
The user needs to configure a Microsoft Access database to automatically dispatch an email whenever a number entered into a specific text box falls below the 1600 threshold.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Automating email notifications based on specific data entry condition thresholds within an Access form.
- Observed behavior
- The user is seeking the correct event trigger to execute an email macro or VBA procedure reliably upon data entry, as simply displaying the value does not run the automation.
Ensure your Microsoft Access database is configured to communicate with a default desktop email client, such as Outlook, and that macro or VBA execution is enabled in your Access Trust Center settings.
Use VBA with the Text Box After Update Event
Attach a VBA script to the 'After Update' event of the text box to reliably trigger the email logic as soon as the user finishes typing and leaves the field.
Microsoft Access forms are strictly event-driven. This means an action like sending an email will only trigger when a specific user interaction occurs, not just because a value is passively displayed on the screen.
To evaluate a newly entered number, the appropriate trigger is the 'After Update' event. VBA is heavily preferred over standard macros for this task, as it provides greater flexibility for conditional logic and better error handling during email generation.
Right-click your targeted form in the Access navigation pane and select 'Design View' from the context menu.
Click on the specific text box where users will enter the number. Right-click the text box and choose 'Properties' to open the Property Sheet on the right side of the screen.
Navigate to the 'Event' tab in the Property Sheet. Locate the 'After Update' property row, click the drop-down arrow, and select '[Event Procedure]'.
Click the small ellipsis (...) button next to the drop-down. This will launch the Microsoft Visual Basic for Applications (VBA) editor.
Inside the generated sub-procedure, type your conditional logic: 'If Me.[YourTextBoxName].Value < 1600 Then'. Below that, insert your email dispatch code (e.g., using 'DoCmd.SendObject'), and close the condition with 'End If'.
Save your VBA code, return to your Access form, switch to 'Form View', and type a number below 1600. Press 'Tab' to move to the next field and trigger the code.

Need a Simpler Way to Track Data and Thresholds? Try WPS Office
While Microsoft Access is powerful for relational databases, managing event-driven VBA code can be highly complex. If your primary goal is organizing structured data and setting threshold alerts, WPS Spreadsheet offers an incredibly lightweight, intuitive, and highly compatible solution without the expensive subscription fees. Transition smoothly and manage your data with familiar tools.
- 1. Download WPS Office: Install the free WPS Office suite from the official website on your device.
- 2. Import Your Data Tracker: Open WPS Spreadsheet and load your existing Microsoft Excel or CSV files directly.
- 3. Apply Conditional Alerts: Use Data Validation and Conditional Formatting from the ribbon to instantly flag data entries that fall below your target thresholds.

Frequently Asked Questions
Why isn't my Access macro running when I open a form that already has a value below 1600?
The 'After Update' event is tied exclusively to active user data entry. If a record already exists with a value below 1600 and is simply displayed upon opening the form, no 'update' has occurred. To trigger logic upon loading records, you would need to use the form's 'On Current' event.
Can I use a standard Macro instead of VBA to send this email?
Yes, you can select 'Macro Builder' instead of 'Code Builder' in the After Update event and utilize the 'If' macro block along with the 'EmailDatabaseObject' action. However, VBA is strongly recommended as it handles variable email bodies, background sending, and error management far better than macros.
Does the After Update event trigger immediately as I type the number 1500?
No, it does not. The After Update event only recognizes the finalized value once you press 'Enter', 'Tab', or physically click your mouse into another text box on the form. If you want actions to happen during the typing process itself, you would need to look into the 'On Change' event.




