Results 1 to 2 of 2
  1. #1
    tylerg11 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    200

    Question Automatically align button controls on a form


    So on my form, I have various command buttons for shortcuts, etc. I am using certain criteria to hide/show different shortcuts based on user login ID. This works great, but my only problem is how to automatically alight the buttons. I have all the buttons in one rectangular spot, but I don't want users to see blank gaps for command buttons that are invisible. Is it possible to automatically have the visible buttons justify to one side so there aren't random blank spots on the form? Thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,899
    No, must use code to position controls using Left and Top properties. Example:

    Me.buttonname.Top = 180 'default unit is twips, 1 inch = 1440 twips
    Me.buttonname.Left = 0.25 'default unit is inches, not twips
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. My VBA window won't align properly...
    By garmium in forum Access
    Replies: 1
    Last Post: 10-20-2011, 10:16 AM
  2. Align text in a field column.
    By israellawndale in forum Access
    Replies: 1
    Last Post: 08-16-2011, 06:18 PM
  3. Right Align Listbox
    By brc in forum Access
    Replies: 16
    Last Post: 07-12-2011, 07:06 PM
  4. Replies: 10
    Last Post: 12-31-2010, 12:35 PM
  5. Align Fields
    By saqqer in forum Programming
    Replies: 1
    Last Post: 08-04-2009, 07:30 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums