Hiding/Showing Scrollbars in Continuous Subforms (1 Viewer)

Mohsin Malik

Registered User.
Local time
Today, 19:48
Joined
Mar 25, 2012
Messages
175
Hello,

Does anyone know how to conceal the scrollbars in continuous subforms within Microsoft Access, particularly when they aren't required? An example would be the grey bars that still show if the subform previously displayed the scrollbars. Does anyone know of a technique or property that can be employed to accomplish this? I have tried Me.SubForm.Form.Paint but that does not work. I would greatly value any advice or recommendations on this matter.

1680906083357.png
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 23:48
Joined
May 7, 2009
Messages
19,245
you can set the Vertical Scrollbar also on the Form (subform) Current event.
on your sample form, you need, at least, 6 records for the scrollbar to appear.

Code:
Private Sub Form_current()
    With Me
        .ScrollBars = IIf(.Recordset.RecordCount > 5, 2, 0)
    End With
End Sub
 

Users who are viewing this thread

Top Bottom