Solved

Invert color from gray to white in the details

Posted on 2003-11-05
5
536 Views
Last Modified: 2012-05-04
Anyone has a quick formula that will display the Details of a certain group header with 2 colors, alternating each other?
I want the odd's to be in white and the even's to be in gray (or something like it).
My formula dosn't work, and I'm not sure what to use for it.

Thanks,

Gian
0
Comment
Question by:gian_the_man
[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
  • 2
5 Comments
 
LVL 42

Expert Comment

by:frodoman
ID: 9689105
If Remainder(GroupNumber, 2) = 0 Then
   gray
Else
   white
0
 
LVL 42

Expert Comment

by:frodoman
ID: 9689130
Or

If (GroupNumber Mod 2) = 0 Then
   gray
Else
   white

I think this is actually marginally faster because it does integer math instead of real numbers.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 100 total points
ID: 9689158
What are you trying?

Click FORMAT --> FORMAT SECTION
Select the approprite detail section
Click the Color Tab
Click the formula button for background
If (RecordNumber mod 2) = 0 then
  gray
else
  white

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 9691922
Glad I could help

mlmcc
0
 

Author Comment

by:gian_the_man
ID: 9696559
You are the man...
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

617 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