How to detect if a form has a scrollbar?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deBassMan
    New Member
    • Jul 2006
    • 4

    How to detect if a form has a scrollbar?

    Hi all

    Using MS Access 2000, Win XP

    I require a way of detecting whether a vertical scrollbar is visible on a sub-form.

    apologies if posted in wrong forum - didn't see a VBA section

    thanks
  • Hemant Pathak
    Recognized Expert New Member
    • Jul 2006
    • 92

    #2
    Hi........
    you can use this code

    Dim Ctl as control

    For each ctl in Form1.controls
    if ctl is typeof scrollbar then msgbox "Scroll bar is present"
    Next

    Comment

    Working...