Solved

Formating Odd and Even numbers

Posted on 2008-10-03
5
1,439 Views
Last Modified: 2012-05-05
I have a report that displays a long list of numeric values and i want it so that if the number is ODD the colour is blue and if its even then RED.

Any help welcome.
0
Comment
Question by:NedBishay
[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
5 Comments
 
LVL 13

Expert Comment

by:crgary_tx
ID: 22633414
>right click on the field you want to format->Format field
>click on the Font tab
>click on X+2 tab next to color
place the below formula:-

if mod({table.numericfield}) = 1
then crblue
else
crred
0
 
LVL 13

Accepted Solution

by:
crgary_tx earned 500 total points
ID: 22633432
correction in the formula:

if{table.numericfield} mod 2 = 1
then crblue
else
crred
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22636631
Looks good.

mlmcc
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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