How to Apply Permanent Record Colors in a Continuous Access Form
Question details
The user needs to display a different background color for each record in a continuous Microsoft Access form based on a specific stored field.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Customizing the appearance of multiple visible records simultaneously in a continuous form view.
- Observed behavior
- Attempting to set colors using the On Current event fails because it uniformly formats all displayed rows based on the currently active record.
Ensure your Access form's underlying table or query includes a field (such as COLORTEXT) that stores the specific value or status you want to base the color changes on.
Use Conditional Formatting for Record Colors
Apply conditional formatting to the form controls to independently evaluate and set background colors for every row.
In a continuous form, the On Current VBA event is not suitable for formatting because it affects the active record and forces all other visible rows to inherit the same style. Conditional formatting natively processes expressions row by row.
Right-click your continuous form in the navigation pane and select Design View.
Click to select the text box or combo box controls you want to colorize. To color the whole row, hold Shift and select all controls in the Detail section.
Navigate to the Format tab on the ribbon and click on the Conditional Formatting button.
Click New Rule. Under 'Select a rule type', choose 'Check values in the current record or use an expression'. Select 'Expression Is' from the drop-down menu.
Type your condition, for example: [COLORTEXT]="Red". Next, click the Fill Color bucket icon to choose a background color, then click OK to save and apply.

Looking for a Lightweight Office Suite? Try WPS Office
While WPS Office does not include a direct database alternative to Microsoft Access, it provides a powerful, free, and lightweight suite for all your document, spreadsheet, and presentation needs, ensuring highly compatible formats and seamless migration from Microsoft Office.
- 1. Download WPS Office: Visit the official WPS website and click the free download button for your operating system.
- 2. Install the Suite: Run the installer and follow the quick on-screen instructions to set up the software.
- 3. Open and Edit Files: Launch WPS Office and instantly open your existing Word, Excel, or PowerPoint files without formatting loss.

Frequently Asked Questions
Why does the On Current event change the color of all rows?
The On Current event runs only for the active record. When you change a control's property via VBA in a continuous form, the change affects the single control template, which Microsoft Access then uses to draw all visible rows. This results in all rows uniformly displaying the formatting of the currently active record.
Can I format the entire row background instead of just the text boxes?
Access conditional formatting applies exclusively to controls, not the row background itself. To simulate a colored row, you must select all text boxes spanning that row, remove any gaps between them, and apply the exact same conditional formatting rule to all of them.
Is there a limit to how many conditional formatting rules I can apply in Access?
In Access 2010 and newer versions, you can apply up to 50 conditional formatting rules per control. In older versions like Access 2003, the limit was strictly 3 conditions plus the default format.




