Solved

Formating Odd and Even numbers

Posted on 2008-10-03
5
1,438 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
  • 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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

840 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