Solved

Invert color from gray to white in the details

Posted on 2003-11-05
5
534 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 100

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 100

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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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