Office Settings & Configuration

Change the Selected Item Color in a Microsoft Access List Box

Maira MehtabMaira Mehtab Nov 27, 2026 869 views

Question details

The user wants to change the highlight color of a selected item in an Access list box or find a suitable alternative.

How to Change the Selected Item Color in a Microsoft Access List Box
Product
Microsoft Access
Device & OS
not provided
Scenario
A form displays a list of options, and the selected option needs a distinctive color.
Observed behavior
Standard Access list boxes offer limited control over the selected row's font and background colors in form view.
Before you start

Identify the form and the list box's data source. For the continuous subform approach, make sure each source record has a unique ID and that you can edit the form's design and VBA code.

Solution 1Recommended

Highlight the Selected Record in a Continuous Subform

Use a continuous subform when you need configurable colors for a selected record.

A continuous form can display multiple records and apply conditional formatting to its controls. This creates a custom highlight rather than changing the native list box selection color.

1
Create a continuous form

Create a form based on the list box's data source, open it in Design View, and set Default View to Continuous Forms in the Property Sheet. Include the unique ID and the fields you want to display.

2
Add the form to the parent

Open the parent form in Design View and add the continuous form with the Subform/Subreport control. Add an unbound text box named txtSelectedID to the parent form; you can set its Visible property to No.

3
Store the clicked record ID

On the continuous form, select a displayed text box, open its Property Sheet, and set On Click to [Event Procedure]. Click the build button and add Me.Parent!txtSelectedID = Me!ID followed by Me.Repaint, replacing ID with your unique ID control name.

4
Set the highlight colors

Select the displayed controls on the continuous form and open Format > Conditional Formatting. Add an Expression Is rule such as [ID]=Forms![MainForm]![txtSelectedID], replacing ID and MainForm with your names, then choose the font and background colors.

5
Test the selection

Open the parent form in Form View and click the text box that has the On Click procedure. Confirm that the clicked record's formatted controls change color.

Adapt the selection behavior: Add the click procedure to other controls if clicking them should also select a record. Any code that previously read the list box value may need to use txtSelectedID instead.
Free Microsoft Office alternative

Work With Office Files Using WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with Office documents and spreadsheets. It supports common Microsoft Office formats for an easier transition, but it does not replace Access forms or change Access list box settings.

Use spreadsheet formatting to highlight data in a tableOpen and edit common Microsoft Office formats, including DOCX, XLSX, and PPTXNavigate documents and spreadsheets in a familiar interfaceUse a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Can I set a custom selected-row color on a standard Access list box?

Standard Access list boxes have limited control over the selected row's font and background colors. For configurable highlighting, use a continuous subform with conditional formatting or a suitable custom control.

How do I apply conditional formatting to a continuous form?

Open the continuous form in Design View, select the controls to format, and choose Format > Conditional Formatting. Add an Expression Is rule that compares each record's ID with the selected ID stored on the parent form.

Does the continuous subform method change the original list box?

No. It replaces or supplements the list box with a form-based display and a custom highlight. You may also need to update any code that reads the original list box value.

Will a combo box let me set the drop-down selection color?

Not necessarily. A combo box is useful for selecting one value, but it does not guarantee custom highlighting of individual drop-down items.