Conditional Formatting on Current

G

Guest

I would like the current record in a dtasheet form to have conditional
formatting, not on focus because that requires the initial clicking on the
field. What expression can I use in the conditional formatting dialog box to
make this happen? Thanks
 
M

Marshall Barton

Steven said:
I would like the current record in a dtasheet form to have conditional
formatting, not on focus because that requires the initial clicking on the
field. What expression can I use in the conditional formatting dialog box to
make this happen?


Add a text box named txtCurrent to the form's header
section/ If you don't have a header section, use the View
menu to create it (it won't display on a datasheet form).

Now use the Form's Current to set the text box's value to
the record's primary key field:
Me.txtCurrent = Me.pkfield

With that takeb care of, you can use Conditional Formatting
expressionL
[pkfield] = [txtCurrent]
 

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