Highlight the Current

B

Bre-x

Hi,

Is there a a way to highlight the current on a Datasheet form?

I use the "On Current" Event to open another form, I would like to
"highlight" some how the current record.

Thank you all,

Bre-x
 
C

CrazyAccessProgrammer

Are you talking about highligting the control that currently has the focus?
If you are I've always wanted to know if there was an easy way to do this.

Only way I know of to do this is to put some code in EACH control's On Got
Focus and On Lost Focus events to change something about the control (change
its backcolor/forecolor/borderwidth etc).

But this quickly gets very laborous if you try to keep a consistent
look/feel on each form, especially if you are working on a large database and
even if you make public procedures to put the 'highlight' into effect, you
still have to stick a call to those procedures in every single control's On
Got Focus/On Lost Focus events.
 
L

Linq Adams via AccessMonster.com

As Crazy has said, there is no easy way to do this. Lebans has a hack for
highlighting every other row, which you might be able to modify for your
needs. But to be honest, it would entail more work than I'd ever want to do,
for such a payoff.

As to Crazy's question about highlighting the control with focus, that's easy!


In Design View, select the control in question. Now

Goto Format - Conditional Formatting

In the Condition dropdown box select "Field has focus"

Now change to back color to whatever you want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top