Solved

Stop user moving to new records in subform PageDown

Posted on 2014-02-11
8
569 Views
Last Modified: 2014-03-01
I have this that works great for keeping one record only in a subform.

If KeyCode = vbKeyPageUp Or KeyCode = vbKeyPageDown Then
    KeyCode = 0
End If

To my horror rolling the mouse scroller moves straight to the next records.

In my app that is a big problem. How do I stop it.
0
Comment
Question by:DatabaseDek
  • 3
  • 3
  • 2
8 Comments
 
LVL 10

Expert Comment

by:Gozreh
ID: 39850821
Are you looking for solution to disable the mouse scroll in subform ?
look here  http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_23662702.html
0
 
LVL 35

Expert Comment

by:PatHartman
ID: 39851072
Set the Cycle property of the form (Properties dialog - Other Tab) to Current Record.
0
 

Author Comment

by:DatabaseDek
ID: 39852709
Hi All

Setting the forms Cycle property to current record does not work with any mouse I have tried. Lebans system does not compile in 2002 and I cannot figure out why that is,

I'm still stuck. Any more suggestions?

Derek
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 10

Expert Comment

by:Gozreh
ID: 39853276
Which version of access are you using ? I test the Lebans with 2010 and it worked.
Did you download from Lebans the A2KMouseWheelHookVer22 file ? what error did you get ?
0
 
LVL 35

Expert Comment

by:PatHartman
ID: 39853317
Setting the forms Cycle property to current record does not work with any mouse I have tried.
We must live in different dimensions.  It works for me.  When you have a row selected in a subform, scrolling allows you to move the list up and down but focus stays on the selected record.  However, Page up and down WILL move focus to a different record.
0
 

Author Comment

by:DatabaseDek
ID: 39858598
I am on version 2002. My packaging and security software are linked to this version so an upgrade would be very inconvenient and expensive.

My subforms are in single form mode. Perhaps that is the difference. But this problem applies to all single forms in my app and all have the cycle property set to current record
0
 
LVL 35

Accepted Solution

by:
PatHartman earned 500 total points
ID: 39859013
I think you must be using the version of access where cycle property is broken.  Lucky you.  The mouse wheel solution might work for you.  Otherwise, consider upgrading even though it will be inconvenient.
0
 

Author Closing Comment

by:DatabaseDek
ID: 39897046
Thanks

Derek
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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 …

770 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