• Changing A Form Tab Control (Access 97)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Changing A Form Tab Control (Access 97)

    Author
    Topic
    #382573

    Is there a way to change the properties of a tab control once it has been placed on a form? I inherited a form that looks nice, uses a tab control, but now looks crowded and requires a horizontal scroll bar to see all the tabs. I am aware that you can set a tab control to multiple rows BEFORE you place it on the form, but cannot for the life of me find it in the properties of the tab control that already exists. Am I crazy?

    Thanks!

    Kwvh

    Viewing 0 reply threads
    Author
    Replies
    • #649064

      You can use the Tab Control’s MultiRow property. This property can be set at runtime as well as in design mode. Example of sub that toggles property on & off when button clicked:

      Private Sub TabButton_Click()

      Me.TABCTL1.MultiRow = Not Me.TABCTL1.MultiRow

      End Sub

      Small sample db (A97 format) attached that illustrates this, form has Tab Control with 6 tabs (Pages), the button toggles them from 2 rows to single row or from single row to 2 rows.

      HTH

      • #649441

        Mark,

        Thanks again for your solution. It works great! That is a super control you have that allows switching of the fly. I never considered that. Tunnel vision I suppose.

        Ken

    Viewing 0 reply threads
    Reply To: Changing A Form Tab Control (Access 97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: