subform shrink/grow

M

Mark Zeis

Is there a way to have a subform shrink/grow when viewing
the main form in the form view? The shrink/grow property
works fine in the print preview but not in the form view.

Mark
 
R

Rick Brandt

Mark Zeis said:
Is there a way to have a subform shrink/grow when viewing
the main form in the form view? The shrink/grow property
works fine in the print preview but not in the form view.

CanGrow and CanShrink (on forms) only applies to printing them. You would
have to use code to reposition and resize the subform control yourself.
This is not so trivial as you have to first make the main form area larger,
then move down any controls beneath the subform control, and then increase
the height of the subform control itself. To make the subform smaller you
have to work in reverse order of that procedure. You also have to
determine the number of "twips" that the size needs to be changed based on
what is being displayed in the subform.
 

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

Similar Threads


Top