Solved

scrolling in an access form with subforms

Posted on 2013-12-18
5
1,131 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
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 …

772 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