Solved Rezise Popup Form to Content (1 Viewer)

Saphirah

Active member
Local time
Today, 06:46
Joined
Apr 5, 2020
Messages
163
Hello everyone,

i have a Popup with a continous form inside. This popup form has a predefined size.
Is it possible to make the form smaller, when there are less records? Like scale down the height of the form based on how many records you have?

I know there is a "Move" function which you can also use to scale the form but i do not know how to get the current number of records in a continous form.
If anyone knows how to get that value i could maybe calculate the height by hand...

If there is another solution, i would love to hear about it.

Thank you very much for your help.
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 21:46
Joined
Oct 29, 2018
Messages
21,455
Hi. Just a guess, but quickly try sizing the Form short or small and set the Auto Size (auto resize?) to Yes.

Sent from phone...
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 12:46
Joined
May 7, 2009
Messages
19,229
also you need to Calculate the New Height of the form on
it's Resize Event.

see this demo.
 

Attachments

  • autoResize.accdb
    640 KB · Views: 113

Users who are viewing this thread

Top Bottom