Highlight row in Continuous Form

Anonymous
2010-07-02T20:04:43+00:00

I have a continuous form that is quite wide.  When the user is trying to read across, its somewhat hard to follow across.  So, I would like to have the user select the record using the record selector and change the background color of the records in that row or highlight it in some way.  Is this possible?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

13 answers

Sort by: Most helpful
  1. Anonymous
    2010-07-02T20:38:35+00:00

    Try playing around with Conditional Formatting:

    Highlight all the fields in Design view and the choose Format Design Tools, Design, Conditional, from the drop down for condition 1 select Field Has Focus, pick a color.

    Experiment.  Hope this helps.


    If this answer solves your problem, please check, Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers Shane Devenshire

    8 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2010-07-02T20:40:56+00:00

    An additional point you can Freeze any column you want and it will stay in view in the leftmost position.  That is done by right-clicking a field title and choosing Freeze Columns (in the Form View)


    If this answer solves your problem, please check, Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers Shane Devenshire

    0 comments No comments
  3. Anonymous
    2010-07-02T21:18:24+00:00

    An alternative to highlighting only the control with the focus or using Conditional Formatting on every control is to add a text box with BackColor set to whatever BackColor you use on the other controls.  Size this text box to cover the entire detail section and use Format - Send to Back to put it behind all the other controls.  Then select all the other controls and set their BackStyle to Transparent.

    Next, add an invisible text box (named txtCurrent) to the form header or footer section (or even the detail section) and set its value in the form's Current event:

       Me.txtCurrent = Me.[your primary key field]

    Now, you can use CF on the one big text box to highlight the entire row.  Use the Expression Is option with an expression like:

       [your primary key field] = [txtCurrent]

    and selecting the back color of your choice.

    34 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2012-11-30T13:34:43+00:00

    Thank you so much! I have been trying every suggestion I could find, and yours works like a charm!

    0 comments No comments
  5. Anonymous
    2012-12-17T22:08:17+00:00

    Thank you for the great code.

    1 person found this answer helpful.
    0 comments No comments