Solved Auto Adjust unbound sub-form depending on which form is loaded into it

donkey9972

Registered User.
Local time
Today, 02:40
Joined
May 18, 2008
Messages
82
I have a form with several navigation buttons vertically on the left side. I have an unbound sub-form to the right of that, and when I click on a button it will load the corresponding form into the unbound sub-form. What I want to have done is have that unbound sub-form adjust its width and height to adjust depending on how big or small the loaded form is. I am not even sure if this is possible. But I look forward to finding out if it is possible, and if it is how it can be accomplished.
 
Once you have set the source object of the subform, reference the width and height

Subform.width=subform.form.width

The height depends on whether the form has headers/footers/detail sections that are visible or not and whether or not it is a continuous form
 
OK, thank you. I think this is what I am looking for.
 
be aware that the maximum form width is around 22 inches - so if your subform control has a left value of say 3" the maximum width of the control will be 19". If you try to make it wider than that, you will get an error
 

Users who are viewing this thread

Back
Top Bottom