diamondDog
New member
- Local time
- Yesterday, 21:45
- Joined
- Sep 18, 2024
- Messages
- 26
How can I have my continuous form always expand to see all records instead of having a scroll wheel?
The following code seems to work well when I have up to three records, but any more than three records and the subform no longer grows but only displays a vertical scroll bar. How can I eliminate a vertical scrollbar to help force the resize of my subform to always show all records. I do not want any scrolling.
The following code seems to work well when I have up to three records, but any more than three records and the subform no longer grows but only displays a vertical scroll bar. How can I eliminate a vertical scrollbar to help force the resize of my subform to always show all records. I do not want any scrolling.
Code:
Private Sub Form_Current()
With Me.subform
.Height = .Form.Section(1).Height + .Form.Section(2).Height + (.Form.Section(0).Height * .Form.Recordset.RecordCount)
End With
End Sub