Highlight text - Can not use conditional formatting.

J

JKlein

I am looking for a way to highlight certain records showing in a subform.
Something like this

If clientID = "377" then
clientid.forecolor = 255 else
clientid.forecolor = 0
endif

I have placed code like this in the subforms on current event...does not
work.
I am using Access 97 so I can not use the Conditional Formatting that newer
versions have.
Any ideas??
 
M

Marshall Barton

JKlein said:
I am looking for a way to highlight certain records showing in a subform.
Something like this

If clientID = "377" then
clientid.forecolor = 255 else
clientid.forecolor = 0
endif

I have placed code like this in the subforms on current event...does not
work.
I am using Access 97 so I can not use the Conditional Formatting that newer
versions have.


That code looks logical to me. What don't you like about
its result?

Note that the result will not be what's desired in a
continuous or datasheet form.

Are you sure that Client ID is a text field? If not, remove
the quotes aroung the 377.
 
J

JKlein

I have a continuous form

Marshall Barton said:
That code looks logical to me. What don't you like about
its result?

Note that the result will not be what's desired in a
continuous or datasheet form.

Are you sure that Client ID is a text field? If not, remove
the quotes aroung the 377.
 

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