Conditional formatting based on table values MS access

ابن ميّاح 1 Reputation point
2022-03-01T22:25:56.573+00:00

Hi,

I have a general table and another one with specified dates, how to highlight dates which included in the second table using conditional formatting inside form or report?

Microsoft 365 and Office Access Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ken Sheridan 2,851 Reputation points
    2022-03-05T13:49:14.877+00:00

    In the conditional formatting expression call the DLookup function like this:

    DLookup("ColumnName","TableName","ColumnName = #" & Format([ControlName],"yyyy-mm-dd") & "#") IS NOT NULL

    Note that the use of the ISO standard for date notation of YYYY-MM-DD when building the date literal prevents any international ambiguity of the date format.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.