Others

How to Select and Highlight Records in an Access Continuous Form

Camila MilosovichCamila Milosovich Nov 2, 2026 869 views

Question details

The user needs to enable record selection and toggle visual highlighting for selected records within a Microsoft Access continuous subform.

How to Select and Highlight Records in an Access Continuous Form
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.
Before you start

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.

Solution 1Recommended

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.

1
Verify Control Names

Check your form design for any typos in control names (for example, correct 'Hightlight' to 'Highlight').

2
Update the InStr Expression

Modify the conditional-formatting InStr expression so that it accurately references the selected item's value string.

3
Open the VBA Editor

Access the VBA editor for your form and locate the 'cmdSelect' event procedure tied to your row selection action.

4
Add the Requery Command

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.

Correct Conditional Formatting Expressions and Add Requery Code
Immediate Visual Feedback: Adding the Requery command guarantees that the row's background color or text style updates the moment a user clicks the selection toggle.
Free Microsoft Office alternative

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. 1. Download and Install: Get WPS Office for free from the official website and install it on your device.
  2. 2. Analyze Tabular Data: Open WPS Spreadsheet to import database exports, apply conditional formatting, and filter records instantly.
  3. 3. Save and Share: Export your analyzed data in standard Office formats or PDF to share with your team seamlessly.
Fully compatible with Microsoft Excel (.xlsx), Word (.docx), and PowerPoint (.pptx) formats.Free, lightweight suite perfect for processing exported database reports and daily data management.Familiar tabbed user interface ensures a seamless transition with zero learning curve.Built-in PDF toolkit to easily convert database reports to secure PDFs.
QA img-9

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.