I've tried many times, for many purposes, to create a counter, or some kind of switch, and never succeeded. I'm unsure of the concepts involved: Where to set up the counter (a formula field or a numberVar declaration), where to place the formula field if anywhere, how to increment the counter, etc. I'm similarly in the dark regarding setting up and using a switch of some kind (stringVar?).
Today, in a Detail Section within a Group Section, I created a formula field 'CubLabel', whose formula is:
"Cub:"
It appears on the same line as another formula field, CubTitle.
If CubTitle is going to appear more than once in the Detail Section, I want CubLabel to print "Cubs:"; if it is going to appear only once, I want CubLabel to print "Cub:".
I attempted to use an 'if then else' statement, testing NextIsNull({@CubTitle}), but it did not work. I tried PreviousIsNull just to see if it would work, but it did not.
Today, in a Detail Section within a Group Section, I created a formula field 'CubLabel', whose formula is:
"Cub:"
It appears on the same line as another formula field, CubTitle.
If CubTitle is going to appear more than once in the Detail Section, I want CubLabel to print "Cubs:"; if it is going to appear only once, I want CubLabel to print "Cub:".
I attempted to use an 'if then else' statement, testing NextIsNull({@CubTitle}), but it did not work. I tried PreviousIsNull just to see if it would work, but it did not.