Others

Show a Message and Timestamp When an Access Combo Box Changes

John WilsonJohn Wilson Nov 13, 2026 869 views

Question details

Display a message for a particular combo box selection and record a timestamp whenever the selection changes.

Show a Message and Timestamp When an Access Combo Box Changes
Product
Microsoft Access 2016
Device & OS
not provided
Scenario
An Access form uses a combo box to select a status and needs to track when that status changes.
Observed behavior
The form should show a message for the specified status and update a date/time field after each selection change.
Before you start

Open the form in Design View and check the combo box name, Row Source, and Bound Column on its Property Sheet. Confirm that the form has a control bound to a Date/Time field for the change timestamp.

Solution 1Recommended

Use the combo box After Update event

Run VBA after the selection changes to show a conditional message and update the timestamp.

The condition must compare the combo box's bound value, which may differ from the text displayed in the list. Replace the example control names and message with your own.

1
Open the event property

Open the form in Design View, select the status combo box, and open the Property Sheet. On the Event tab, find After Update.

2
Create an event procedure

Choose [Event Procedure] for After Update, then click the ellipsis (...) button to open the VBA editor.

3
Add the VBA code

Between the Private Sub and End Sub lines, enter: If Me.Status = "Cancelled or No Longer Needed" Then MsgBox "Your message here" End If Me.StatusChangedAt = Now() Replace Status and StatusChangedAt with your combo box and timestamp control names.

4
Save and test the form

Save the VBA code and form, switch to Form View, and change the combo box selection. Check that the message appears for the specified value and the timestamp updates for each change; save the record to retain the timestamp.

Use the combo box After Update event
Check the bound value: If the Bound Column stores a numeric ID instead of the displayed text, compare that ID instead, for example: If Me.Status = 5 Then.
Free Microsoft Office alternative

Use WPS Office for Everyday Document and Spreadsheet Work

WPS Office is a free, lightweight alternative with a familiar interface and support for common Microsoft Office formats, making it easy to move everyday files. It does not replace Access or run Access forms and their VBA events.

Use spreadsheets to review and organize status and timestamp data.Open and edit common Excel XLSX and Word DOCX files.Work in a familiar, easy-to-use interface.Use a free, lightweight suite for everyday office tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't the message appear for the selected status?

In Design View, check the combo box's Row Source and Bound Column on the Property Sheet. The stored value may be a numeric ID, such as 5, rather than the displayed status text.

Where should the timestamp field be added?

Add a Date/Time field to the underlying table, then add a control bound to that field to the form. Use that control's name in the After Update procedure.

Does the timestamp update only for the status that shows the message?

No. In the example, Me.StatusChangedAt = Now() is outside the If block, so it runs after any change to the combo box selection.

Will the timestamp be stored automatically?

The timestamp is retained when the bound record is saved. In Form View, save the record after changing the selection and confirm the timestamp remains when you return to it.