Am I correct in assuming you want the window/form height to adjust based on the number of records displayed in the form? If there are more records, make the form higher automatically?
You can try code like the following.
Code:
Private Sub Form_Open(Cancel As Integer)
Dim lngMargins As Long
lngMargins = 1440 '1 inch
Me.InsideHeight = lngMargins + Me.RecordsetClone.RecordCount * 400
End Sub
That's right. I guess I'm confused why other forms don't behave this way tho? But then on other forms I have other elements, but, I don't know, it's just odd.
Thanks!!
Matt
edit: BTW, your website link is kinda, well, you probably already know.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.