Solved

Conditional Format on a report

Posted on 2014-12-26
3
108 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
  • 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

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.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

810 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