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, :help:
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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,223,560
Messages
6,173,030
Members
452,500
Latest member
jesuisazep

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