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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems with a section with changing colors

Status
Not open for further replies.

HaraldBuesching

Programmer
Sep 12, 2001
25
0
0
BE
Hey Folks!

I've got a section where the color should change each record, I do this with a Visual Basic Formula directly on
the X-2 for the Background color and it works.
Code:
Global Invert as Boolean 
if ({?unterste Ebene} = 0) then Invert = not(Invert) 
If Invert Then 
 formula = crWhite 
 Else 
 formula = 14803425 
 End If
[\code]
Now I put this formula in a real formula and put a link
at the formatting section to this new formula, and it stops
working.
Is there an explanation or an easy work-around for this? 
Greetings Harald.
 
I figured it out on my own:

With 'Shared' instead of 'Global' it should work.

Thanx for all help! :)

Harald.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top