Change the Selected Item Color in a Microsoft Access List Box
Question details
The user wants to change the highlight color of a selected item in an Access list box or find a suitable alternative.

- 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.
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.
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.
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.
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.
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.
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.
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.
Use a Combo Box for a Single Selection
Use a combo box when the main goal is to select one value and custom row highlighting is not essential.
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.

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.




