Coditional Formatting

  • Thread starter Thread starter Matt
  • Start date Start date
M

Matt

Hi All,

I am running productivity and efficiency numbers on processors in a
processing center output to a report in access). I want to
conditionally format their ratings Red for way out of goal, orange for
within 10% of goal, and green for meeting goal or above.
Additionally, anytime a rating goes 50% or below, I want to make the
backcolor of that field yellow.

The form designer will only let me conditionally format up to 3
conditions. Is there a way in code to do more than 3.

I tried to get the value of a field by doing Me.FieldName. but value
or caption were not options in the list.

HELP!

As always, Thanks in advance!
 
Hi

Try something like

If Me.SomeField = Something Then
Me.Somefield.BackColor = vbRed
End If
If Me.SomeField = Something Then
Me.Somefield.BackColor = vbYellow
End If
If Me.SomeField = Something Then
Me.Somefield.BackColor = vbBlue
End If
If Me.SomeField = Something Then
Me.Somefield.BackColor = vbGreen
End If
If Me.SomeField = Something Then
Me.Somefield.BackColor = vbSomeOtherColor
End If

etc
etc
etc
 
Why don't you try conditional formatting?

In Access 2002:
1) Select the text box that you want to format.
2) From the menu choose Format, Conditional formatting.

You can set more than one formatting condition.

HTH

Vlado
 

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

Back
Top