Rezise Popup Form to Content (1 Viewer)

Saphirah

Member
Local time
Today, 18:50
Joined
Apr 5, 2020
Messages
44
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
Today, 09:50
Joined
Oct 29, 2018
Messages
13,741
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

error reading drive A:
Local time
Tomorrow, 01:50
Joined
May 7, 2009
Messages
11,157
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: 21

Users who are viewing this thread

Top Bottom