Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting Borders 1

Status
Not open for further replies.

hgg21

Programmer
Apr 25, 2002
60
SG
I need to create my report such that this
single field will have alternate colors.
Example:

BucketName
AAAA (in green)
BBBB (in yellow)
CCCC (in green)
DDDD (in yellow)

How can I do this?
Now I can only make it in one yellow.

Please advise.
Thanks!
Jerry
 
Jerry,

Format the field by right clicking on the field and choose Format Field.

Then go to the border tab - and click on the x+2 button next to background color and write this formula.

If Remainder(RecordNumber,2)<>0 then green else yellow

Hope this helps


paulmarr@arcom.com.au
 
Hi paulmarr,

thanks for replying.

Hmm I did what u say but it doesnt work.
I didnt get an alternating back_color.
All are in yellow.

Is there anything I need to do??
Thanks for your help
Jerry
 
Paulmarr,

The field is in the Group Footer section.

Jerry
 
Jerry;

Try this:

If Remainder(GroupNumber,2)<>0 then green else yellow

Cheers,

paulmarr
 
Paulmarr,

thanks a lot for your help!
It's working now.

However, I have one question. Is it possible to use custom colors for this? If yes how do I specific the colors?

Thanks again.
Jerry
 
Jerry,

You need to know the RGB color settings and use the
Color(r,g,b,) function - instead of the keywords green and yellow - like If Remainder(GroupNumber,2)<>0 then
Color(255,126,57) else Color(123,211,122)

Hope this helps you!

paulmarr@arcom.com.au
 
Oh great!!!

Paulmarr,
Really appreciate that!
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top