conditional formatting a report with expression using in (…)

chelle1

New Member
Joined
Jun 4, 2015
Messages
4
I'm trying to do conditional formatting on a field in a report using an expression looking for a list of values using a subquery
I don't get an error, it just doesn't work.
conditional_formatting1.jpg


If I hard-code the list, it works but not using the subquery
conditional_formatting2.jpg

Suggestions would be greatly appreciated
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Is the formatting IN the subReport?
(As opposed to the master report)

Is the value in subReport ?
 
Upvote 0
It's in the Detail portion
I don't think there is a subReport
I hope that answers your question. Sorry, I haven't worked in Access reports in over 20 years and I'm just wanting to add the conditional formatting on an existing report someone else wrote.

conditional_formatting3.jpg
 
Upvote 0
I do not believe you can expect any sort of query statememt in CF?

Simple comparisons only?
Possibly bring the result in as part of the query, then test for that.?
 
Upvote 0
I do not believe you can expect any sort of query statememt in CF?

Simple comparisons only?
Possibly bring the result in as part of the query, then test for that.?

Thank you for the feedback. I was hoping not to have to touch the existing query used in the report.
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,384
Members
449,080
Latest member
Armadillos

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