Reports conditional formatting

deb

Active Member
Joined
Feb 1, 2003
Messages
400
I am using Access 2k.
Is it possible to have the name field turn red if the status field is "Closed", using conditional formatting?

It seems to only work if you are using the condition on one field and that fielld is numeric.

Thanks in advance, :rolleyes:
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
I haven't used the conditional formatting feature much in Access -- I tend to use the OnFormat event for the report section. Try this:

1. Go into design view on the report. Right-click the Detail band, select Properties, and go to the OnFormat event.
2. Click the Builder (...) and select Code from the popup.
3. You should be in Private Sub Detail_Format
4. Try this code:
Code:
If [Status]="Closed" Then
  [Name].BackColor=255 'red
Else
  [Name].BackColor=16777215 'white
End If

HTH
Denis
 
Upvote 0

Forum statistics

Threads
1,221,574
Messages
6,160,602
Members
451,657
Latest member
Ang24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top