Results 1 to 2 of 2
  1. #1
    Mclaren is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Feb 2010
    Location
    Johannesburg
    Posts
    164

    position multiple subforms

    I have several subforms that overlay each other on a main form.



    I want to be able to reposition all subforms to the same position at the click of a button.

    I am sure this can be done with a loop, but i have not yet tinkered with loops.

    Please help.

  2. #2
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    You can set the left, top, width, and height properties of the subform control at runtime to reposition it. Ex. (from a command button OnClick event procedure) :

    Forms!MyForm!MySubformControl.left = 1440 '* Move subform control to 1 inch from left of form

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

Similar Threads

  1. Replies: 7
    Last Post: 04-27-2010, 10:29 AM
  2. Finding Scrolled position in Access forms
    By RJosephNewton in forum Access
    Replies: 7
    Last Post: 03-25-2010, 03:54 PM
  3. Access POPup forms - setting position
    By malcolm.wilcock@tesco.net in forum Forms
    Replies: 5
    Last Post: 02-24-2010, 10:56 AM
  4. Replies: 1
    Last Post: 10-19-2009, 02:37 AM
  5. Display and Empower Multiple Subforms
    By Schwagr in forum Forms
    Replies: 2
    Last Post: 03-28-2006, 03:51 PM

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