Conditional Formatting based on another table

Atthe

Member
Local time
Today, 10:32
Joined
Oct 26, 2021
Messages
57
Hi All,

I have a text box within a report that I would like to apply a bold formatting if it matches a record within another table (tblConditionalFormattingBold), Can anyone advise if this is possible?

Thanks
 
Have you tried using DLookup()?
 
Essentially, in your Condition Expression, you would use the DLookup() function to compare the current record to another table. Here's a link explaining how to use DLookup().

DLookup Function (microsoft.com)
I am struggling with the syntax, my main table is tbltools and the field is Tool Type and the table I want to field matches against is tblConditionalFormattingBold and field Bold

Can anyone help?
Thanks
 
I am struggling with the syntax, my main table is tbltools and the field is Tool Type and the table I want to field matches against is tblConditionalFormattingBold and field Bold

Can anyone help?
Thanks
It might be easier to help you if you could post a sample copy of your db.
 
here is a demo.
Thanks for your time, the problem I have is there are over 80 records in my tblConditionalFormattingBold and they could all be in the report so I need to check against all of these not just one and format bold all the matches. Is this possible?

Thanks
 
concatenate all your "conditions" into a string. use recordset to do this.
use Instr() function to test if your field in report can be found inside the string.
 

Users who are viewing this thread

Back
Top Bottom