A
alex
MoveSize Subfrom
Hello,
Using Access ’03…
I have a form that’s opened and sized depending on the number of
records provided (either as a continuous form or datasheet).
Here’s the code (modified from a previous form):
Const FormTopMargin = 560
'Const FormScrollBar = 250
'Const FormRecSelectors = 250
Dim RecordCount As Long
RecordCount = DCount("*", "tblAlpha")
'Debug.Print (RecordCount)
'form has Header, Detail, and Footer
DoCmd.MoveSize , , , (Me.Detail.Height * RecordCount) _
+ FormTopMargin
In this form, however, there’s a subform that also needs to be sized
with the RecordCount.
I’ve tried to do this, but no avail…I thought maybe instead of sizing
the subform based on the RecordCount, to size the subform relative to
the main form.
Any ideas?
Thanks,
alex
Hello,
Using Access ’03…
I have a form that’s opened and sized depending on the number of
records provided (either as a continuous form or datasheet).
Here’s the code (modified from a previous form):
Const FormTopMargin = 560
'Const FormScrollBar = 250
'Const FormRecSelectors = 250
Dim RecordCount As Long
RecordCount = DCount("*", "tblAlpha")
'Debug.Print (RecordCount)
'form has Header, Detail, and Footer
DoCmd.MoveSize , , , (Me.Detail.Height * RecordCount) _
+ FormTopMargin
In this form, however, there’s a subform that also needs to be sized
with the RecordCount.
I’ve tried to do this, but no avail…I thought maybe instead of sizing
the subform based on the RecordCount, to size the subform relative to
the main form.
Any ideas?
Thanks,
alex