
Originally Posted by
Missinglinq
Forms do not have a Height Property, only Width.
Each Section (Header, Detail and Footer) has its own Height Property, so you could calculate the Form's 'height' from these, if you needed to.
To be honest, I'm not exactly sure about what you're asking, here. From a practical standpoint, on a Single View Form the Height of the Detail Section would also be the 'height' of a Record. But on Datasheet View and Continuous View Forms this would not be true. On these types of Forms you'd have to do some experimenting to find out a Record's 'height.' For you current three Records, I'd set the Detail Section Height to, say, 3 Inches, run the Form, and see what it looks like. If you cannot see all three Records, in their entirety, increase the Detail Section Height to, say, 3.6 Inches, run the Form again, observe the results and adjust the Detail Section Height again, repeating until it looks as you want it to. Then divide the Detail Section Height by the number of Records (three, in this case) to get the Record 'height.'
Then, to dynamically set the Detail Section Height for the current number of Records, when the Form opens you'd get a Record Count, multiply by the number of Records by the Record 'height' and set the Detail Section Height to this figure.
Tweaking something like this is likely to be more work than I'd be willing to give it, in most circumstances! We all like our apps to look nice, but we are, after all, talking about a Database, not a Graphics program nor a webpage, but a business app. Of course, that's a matter of taste, and I'm a true believer in the philosophy of 'to each his own!'.
Linq ;0)>