How to Select and Highlight Records in an Access Continuous Form
Question details
The user needs to enable record selection and toggle visual highlighting for selected records within a Microsoft Access continuous subform.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Setting up a continuous subform to allow users to select multiple records, retrieve values, and visually highlight the toggled rows.
- Observed behavior
- Selection may function correctly in the subform, but conditional highlighting fails to update visually, often due to improper control references or missing requery events.
Verify that your main form and subform are properly linked, and double-check the exact spelling of your VBA controls to prevent reference errors during execution.
Correct Conditional Formatting Expressions and Add Requery Code
Update the expression for conditional formatting to accurately identify selected items and force a requery after a selection is made.
In Microsoft Access, a continuous form requires conditional formatting to highlight specific rows dynamically. If the highlight does not trigger, the form may simply need to be refreshed via VBA.
Check your form design for any typos in control names (for example, correct 'Hightlight' to 'Highlight').
Modify the conditional-formatting InStr expression so that it accurately references the selected item's value string.
Access the VBA editor for your form and locate the 'cmdSelect' event procedure tied to your row selection action.
Insert 'Me.txtHighlight.Requery' as the final line in the event procedure. This forces the text box to refresh and apply the conditional formatting immediately.

Properly Reference Subform Controls
Use the correct VBA syntax to point to controls located inside a subform rather than the main form.
Looking for a Lightweight Office Suite? Try WPS Office
While Microsoft Access is a powerful database environment, managing your daily reports, tabular data, and documentation is often easier in a lightweight, modern office suite. WPS Office is a high-performance alternative that provides full compatibility with Microsoft Word, Excel, and PowerPoint files without the heavy subscription costs.
- 1. Download and Install: Get WPS Office for free from the official website and install it on your device.
- 2. Analyze Tabular Data: Open WPS Spreadsheet to import database exports, apply conditional formatting, and filter records instantly.
- 3. Save and Share: Export your analyzed data in standard Office formats or PDF to share with your team seamlessly.

Frequently Asked Questions
Why does my conditional formatting work on the main Access form but fail in the subform?
Subform controls require exact path referencing to function. You must use the syntax Forms!MainFormName!SubformControlName.Form.ControlName. Without the proper path, Access cannot locate the correct field to apply the formatting rule.
What does the Requery method do in Microsoft Access VBA?
The Requery method forces a control, form, or list box to reload its underlying data. When toggling a selection, calling Requery on the highlight control ensures the visual formatting updates immediately to reflect the new state.
How do I implement a true multi-select feature in an Access continuous form?
Access continuous forms do not natively support standard multi-select list box behavior. Implementing multi-select requires binding the form to a temporary table or an ADO disconnected recordset, and using VBA to track which specific records the user has clicked.




