Forum Discussion

Tony2021's avatar
Tony2021
Steel Contributor
Apr 26, 2026

Bold Duplicates (Conditional Formatting)

Hello experts

 

I have a form based on qryLCAmends

I want to bold the [LCNo] if there is a duplicate but ONLY where LCID = LCID

here is what I have but it doesnt bold anything:

DCount("*","qryLCAmends","[LCID]=" & [LCID] & "[LCNo]='" & [LCNo] & "'")>1

LCNo is text. 

I am using the "expression" in conditional formatting: 

 

Example: 

 

How can I do this with conditional formatting?  

3 Replies

  • XPS35's avatar
    XPS35
    Iron Contributor

    Try:

    DCount("*","qryLCAmends","[LCID]=" & [LCID] & " AND [LCNo]='" & [LCNo] & "'")>1

     

    • Tony2021's avatar
      Tony2021
      Steel Contributor

      hello...thank you for the response.  

      I see where the edit is 

      However it seems to bold all records. 

      would you happen to know what the issue could be?  

      I was thinking adding a paren on the 2nd criteria?