Solved

scrolling in an access form with subforms

Posted on 2013-12-18
5
1,180 Views
Last Modified: 2016-09-19
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
Comment
Question by:damixa
  • 2
  • 2
5 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 39726895
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
 

Author Closing Comment

by:damixa
ID: 39727148
Perfect, I did that and it worked.
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 39727167
did which?  Used the MouseWheel event or placed your subforms on tab controls?
0
 

Author Comment

by:damixa
ID: 39727335
Did the Mousewheel event.
0
 

Expert Comment

by:Dalton L
ID: 41805051
What VBA code did you use to allow this to work? I tried setting focus, but that is not working for me...
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question