Solved

Conditional Format on a report

Posted on 2014-12-26
3
119 Views
Last Modified: 2015-01-01
Experts, I have a report with control source of [DisbRQDate] and named txtDisbRQDate
It is a date field.

How can I shade the ones that are not equal to eachother?  

ie:
12/2/14
12/2/14
12/10/14

I want to shade the one that is 12/10/14
There will always be 2 that will match and one that will not match.  
I imagine i need to craft some sort of expression in the conditional formatting part.

thank you
0
Comment
Question by:pdvsa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 40519010
Hi Tony,

Try creating a GROUP BY query for the dates:

SELECT COUNT(IDField) AS NumOccurrences , DisbRQDate FROM YourTable
GROUP BY DisbRQDate

Save it as qryCountOfDates

That should give you a count of occurrences of each date.

You can then include it in a LEFT JOIN with the report's recordsource query, and use

NumOccurrences = 1

as the conditional formatting expression to highlight the 'different' date (the date that only has 1 occurrence)
0
 

Author Closing Comment

by:pdvsa
ID: 40526783
Sorry for my tardiness.

Thank you once again!
0
 
LVL 61

Expert Comment

by:mbizup
ID: 40527092
No worries -- Happy new year!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question