I don't think conditional formatting alone will work for what you want, at
least from the way it works as I understand it. There are three options in
the Condition 1 dropdown when you select Format, Conditional Formatting. The
first two, 'Field Value Is' and 'Expression Is', will affect all rows in the
continuous form (at least when I've used it it works this way). The third
option, 'Field Has Focus', will allow you to apply the format only to the
selected row and field, but it doesn't allow other options along with it. So
if you use that option, the format will be applied to that row only, but it's
applied no matter what the value is. I don't think there's a simple way to
have only the selected row conditionally formatted for certain values.
If there is a way to do conditional formatting thru VBA code, then you could
use the forms On Current event to do it. You could do something like this
Select Case myValue
case 1
turn conditional formatting on, set formatting values for when = 1
case 2
turn conditional formatting on, set formatting values for when = 2...
case else
turn conditional formatting off
End Select
It looks like you can turn it on/off in VBA after doing a little searching.
Here's a link that has an example...
http://blogs.msdn.com/frice/archive/2004/06/08/151178.aspx
OK...I am getting there. I had the format set to Currency, but if I type
into the format property:
#.00[Red];-#.00[Black];#[White];#[Green]
The numbers do not change to the colors indicated. In fact the numbers show
up with the word [Red] attached to them and so on. The one good thing is
that the 0.00 fields show up as empty fields although the 0.00 is still there
(at least I think so since a 0 appears when you click in the field).
If you have a continuous form and want to change the format of one control
based on the value in the field bound to the control you open the form in
[quoted text clipped - 42 lines]
show up. I just want the one field in the one record to change. Can someone
help me please. PSS...I need this to happen in VB.