Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1852
  • Last Modified:

scrolling in an access form with subforms

i have a form with 2 subforms that is usually a bit longer than the page.

when the main form is active, my users can use the wheel on the mouse to scroll the page.

however when the subforms are active (when entering the info on the subforms) the mouse wheel scrolls the subform.

Is there a way, maybe some vba code or something that makes it so that the main form is always active. So in other words even when people are entering info on the subform, when the mouse wheel is moved the one who scrolls is the main form not the subform?

I know its a long shot, but thanks
0
damixa
Asked:
damixa
  • 2
  • 2
1 Solution
 
Dale FyeCommented:
What version of Access are you using?

Access 2007 has a On Mouse Wheel event associated with forms that you might be able to use to set the focus back to the main form, when the user scrolls the mouse.  

But this would only really be a good idea if the subform is not a continuous form.

Instead, you might consider sizing your forms not to exceed the size of your screen, and using a tab control for your subforms.
0
 
damixaAuthor Commented:
Perfect, I did that and it worked.
0
 
Dale FyeCommented:
did which?  Used the MouseWheel event or placed your subforms on tab controls?
0
 
damixaAuthor Commented:
Did the Mousewheel event.
0
 
Dalton LCommented:
What VBA code did you use to allow this to work? I tried setting focus, but that is not working for me...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now