Question : Resize subform to the max, (screen res)

Im using access 2007

I have a main form and
2 subforms (child1 & child2 in the pic)
There user's screen resulution varies,
i want to reize the 2 subforms to fit the users screen to the max (Onload event i guess),
how can i do that?
PS:I'm Only concerned about the height, the width is fixed

Answer : Resize subform to the max, (screen res)

CMDAI,

I think indeed you should maximize your form (DoCmd.Maximize)
Then you can use the property insideheight of Me to know the inner height of the form without the scroll bars and the record selectors.
At that point you can make a calculation based on the heights of each section, that are header,footer,detail, what the height of the subform should be. As the form doesn't have an .height of its own.

regards

Jupiler78
Random Solutions  
 
programming4us programming4us