A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Formatting



 
 
Thread Tools Display Modes
  #1  
Old July 21st, 2009, 09:13 AM posted to microsoft.public.access.gettingstarted
Roger Bell
external usenet poster
 
Posts: 275
Default Conditional Formatting

I have designed a report that includes Names and Dates of Death.

I would like the font color for those that died in the 19th century to be
red and those that died in the 20th century to be in blue.

I have managed to get the right colors for the Date of Death using the
Conditional formatting. The problem is that the names all appear in black.
I have attempted to use the Conditional formatting for the Names field using
the following 2 conditions and selecting the appropriate font color:

Condition 1 Expression is: [Date of Death] between 01/01/1900 and 01/01/2000
Condition 2 Expression is: [Date of Death] between 01/01/2001 and 01/01/3000

I would appreciate any guidance to where I have gone wrong and Many thanks


  #2  
Old July 21st, 2009, 02:50 PM posted to microsoft.public.access.gettingstarted
John Spencer
external usenet poster
 
Posts: 7,815
Default Conditional Formatting

Try surrounding the dates in the expression with # signs to signify they are
dates and not division expressions.

Condition 1 Expression is: [Date of Death] between #01/01/1900# and #01/01/2000#
Condition 2 Expression is: [Date of Death] between #01/01/2001# and #01/01/3000#


John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

Roger Bell wrote:
I have designed a report that includes Names and Dates of Death.

I would like the font color for those that died in the 19th century to be
red and those that died in the 20th century to be in blue.

I have managed to get the right colors for the Date of Death using the
Conditional formatting. The problem is that the names all appear in black.
I have attempted to use the Conditional formatting for the Names field using
the following 2 conditions and selecting the appropriate font color:

Condition 1 Expression is: [Date of Death] between 01/01/1900 and 01/01/2000
Condition 2 Expression is: [Date of Death] between 01/01/2001 and 01/01/3000

I would appreciate any guidance to where I have gone wrong and Many thanks


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.