Group many buttons in one container with scrollbar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sophannaly
    New Member
    • Mar 2014
    • 67

    #1

    Group many buttons in one container with scrollbar

    Hi,

    In my access application, I have main page which contains many buttons and all that button I have group it by category. For example, there are 12 buttons budget for 12 months and I would like to group it in one container but in that container could just show like 5 buttons and for other user can see it by scroll down.

    I need to do like that cuz in main page there are a lot of information in it and for main window I don't want to use vertical scroll bar on that main page but it's okay with each sub window (each category container).

    Could anybody tell me which access component that I can do like this?

    Best regards,
    Sophanna
  • jimatqsi
    Moderator Top Contributor
    • Oct 2006
    • 1293

    #2
    sophannaly,
    A list box works very very well for this. Make your list box Row Source Type a Value List. Fill the list with the Description of the buttons, then use the On Update event to execute the code according to which selection was made in the list box.

    Beats using individual buttons by a mile.

    Jim
    Last edited by jimatqsi; May 7 '14, 03:41 AM. Reason: typo

    Comment

    • sophannaly
      New Member
      • Mar 2014
      • 67

      #3
      Hi Jim,

      Thanks for your reply. But in my main page, each button information looks like this:

      No label button deadline

      If I put in list box then everything looks like text but we want to show that there is a button.

      Do you know if there is other solution?

      Best regards,
      Sophanna

      Comment

      • jimatqsi
        Moderator Top Contributor
        • Oct 2006
        • 1293

        #4
        Why must everything look like a button? Users quickly adapt to what your program offers. I normally make a label above the list box "Command List" or some such thing, it is quickly obvious how it works.

        That being said, you must know your users and the environment you are working in. I don't have another, similar solution handy.

        Jim

        Comment

        • Rabbit
          Recognized Expert MVP
          • Jan 2007
          • 12517

          #5
          Put the buttons in a subform. You will need to rewrite your code to affect the parent form instead.

          Comment

          • zmbd
            Recognized Expert Moderator Expert
            • Mar 2012
            • 5501

            #6
            just to supplement Rabbit:

            when you get into subforms:
            This is the most simple and sweet: Allen Browne: Referring to Controls on a Subform

            THis is the reference I will use when I get lost:
            Forms: Refer to Form and Subform properties and controls
            I'm worried enough that this site might ever go down that I took advantage of the download offer of a hardcopy of the table - upper right hand corner!

            just keep in mind that the second reference will be more help when back referencing the parent... of course, I cheat the use the parent!controln ame method from within subforms. (^_^)

            Comment

            • jimatqsi
              Moderator Top Contributor
              • Oct 2006
              • 1293

              #7
              Good idea, Rabbit, that should work well.

              Comment

              Working...