Results 1 to 4 of 4
  1. #1
    gammaman is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    56

    Shift Buttons up when textboxes are hidden.

    Is there a way either through form control settings or VBA that I can shift buttons upwards or downwards based on whether other text boxes are visible or not?

    In the attached image image, If I hide (using VBA) the circled items, I would like to shift the buttons upwards under the first row that would still be visible. Likewise, if I unhide a row (add line) then the buttons would shift downwards.



    Or should I use another approach all together?
    Attached Thumbnails Attached Thumbnails timesheet.JPG  

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,936
    it can be done in vba, but wouldn't it be easier just to put the buttons at the top?

    Assuming this is not a continuous form, then in vba you would set the top position of the buttons depending on how many rows were visible.

  3. #3
    gammaman is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    56
    Thanks. Good Idea!.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I would position the buttons above or not even be concerned about the empty space. Your code will have to reposition the buttons as each 'row' is revealed.

    Suggest you consider using the & shortcut. Place an & in front of a character in the button caption and this will allow Alt+letter shortcut keys. I like to design forms so users don't have to mouse.
    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. shift + f2
    By willifords in forum Access
    Replies: 1
    Last Post: 07-10-2014, 05:17 PM
  2. Replies: 1
    Last Post: 08-15-2013, 08:12 PM
  3. Replies: 10
    Last Post: 09-18-2012, 02:00 PM
  4. Shift By Pass
    By pkstormy in forum Code Repository
    Replies: 4
    Last Post: 03-18-2012, 05:51 PM
  5. Replies: 0
    Last Post: 01-18-2011, 07:09 AM

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