Results 1 to 8 of 8
  1. #1
    Jaik is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2016
    Posts
    33

    Question form's main page scroll bar is overlaping tab control scroll bar

    Hi guys,

    I am having scroll overlapping problem with my main form. In main form, there's a subform on a tab control.
    So when I go design view, it works perfectly what I wanted. Two separate scroll bars for subform and main form works perfectly. (If I scroll down from my mouse, main form's scroll is working)
    However, if I do the form view, scrolls overlaps and if I move down the scroll, it only moves subform. (Unlike design view, if I scroll down with my mouse, subform is scrolling down)

    Is there any solution for this?

    Thank you

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    The scroll bar works on whatever has the focus - if the subform has the focus, then that is the scroll bar that will be used. I usually set the TabStop property for subforms to "no".

  3. #3
    Jaik is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2016
    Posts
    33
    Thank you for your support,
    I changed my tab control and subform's Tab Stop to no in the property sheet, but scroll bar is still focusing on subform when I do the form view ...
    Is there any other ways to solve this issue?

  4. #4
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Test whether your subform has the focus : move the cursor to a control on the main form and roll your mouse. If the problem has gone away - i.e. the main form now scrolls - then the problem is that your subform has the focus.

    I created a form with a subform, I had the problem when I had no editable control on the main form, only labels. There was nothing to "focus" on.

  5. #5
    Jaik is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2016
    Posts
    33
    I think I am so stupid. I accidently used header for main and detail for subform. Thanks for the support!

  6. #6
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    No reason to beat yourself up!

    Mark as solved - if done.

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I marked this thread as *Solved* for you using the *Thread Tools* at the top of the thread.
    https://www.accessforums.net/showthread.php?t=1828

  8. #8
    Jaik is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2016
    Posts
    33
    Did not know I had to mark it. Thanks

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

Similar Threads

  1. Replies: 2
    Last Post: 09-10-2015, 03:21 PM
  2. Replies: 3
    Last Post: 12-02-2014, 03:10 PM
  3. Replies: 1
    Last Post: 08-15-2013, 05:43 PM
  4. Scroll bar position in main form
    By VictoriaAlbert in forum Forms
    Replies: 1
    Last Post: 10-25-2011, 04:24 PM
  5. Control of horizontal scroll bar
    By smthomer in forum Programming
    Replies: 3
    Last Post: 08-25-2010, 10:52 AM

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