Conditional Format based on Query criteria

C

cna48

I have a report that I would like to use a conditional format.

I would like to format that based on a criteria in the query.

Example:

I have a [date field] in the query that has ">[Enter The Begining Date]" as
the criteria.

I want the criteria to be
Expression Is _____ [date field2]<#[Enter The Begining Date]"


In short, how do I use the criteria for one field as the conditional format
for another field?
 
K

Ken Snell \(MVP\)

Add another calculated field to your query and use it to contain the
parameter value that is entered:

ParameterDate: [Enter The Begining Date]

Then use the ParameterDate field in your report's Conditional Formatting
expression.
 
C

cna48

Thanks Ken for helping connect the dots. It worked great. Sometimes it's
the simple answers that help the most.

Ken Snell (MVP) said:
Add another calculated field to your query and use it to contain the
parameter value that is entered:

ParameterDate: [Enter The Begining Date]

Then use the ParameterDate field in your report's Conditional Formatting
expression.

--

Ken Snell
<MS ACCESS MVP>


cna48 said:
I have a report that I would like to use a conditional format.

I would like to format that based on a criteria in the query.

Example:

I have a [date field] in the query that has ">[Enter The Begining Date]"
as
the criteria.

I want the criteria to be
Expression Is _____ [date field2]<#[Enter The Begining Date]"


In short, how do I use the criteria for one field as the conditional
format
for another field?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top