Counting can grow/can shrink controls

A

Al

Hi, folks!

Access 2K2

I have a report whose detail section is made up of a vertical stack of
20 can grow/can shrink text box controls. The detail is for any given
account.

What I'd like to be able to do is somehow count those controls that
are "active and grown" for each account - wherever they may be in the
"stack" - so that I can perform a report operation if the number
exceeds a predetermined count.

Any ideas and/or suggestions and/or... ????

TIA
Al
 
A

Al

To kind of offer a solution:

What I have ended up doing is essentially looping through the controls
in question during the OnPrint event. Those controls whose heights are
greater than zero are "full grown." I do my thing accordingly :)
 
M

Marshall Barton

That's a valid approach. However, the big problem you may
have with this whole issue is that the CanGrow/CanShrink
height is not available until the Print event. However the
Print event is too late to do anything more than change a
control's color or value.
 
A

Al

Thanks, Marsh - absolutely correct :)

As it works out, I'm changing the control line spacing - works just
fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top