Solved

MouseWheelHook

Posted on 2004-08-13
8
240 Views
Last Modified: 2012-06-21
Has anyone ever used this? Any problems with runtime version?
0
Comment
Question by:JamieRhodes
  • 4
  • 4
8 Comments
 
LVL 4

Expert Comment

by:Colonel32
ID: 11795132
Nope :) What problems are you having and what does your code look like?
0
 

Author Comment

by:JamieRhodes
ID: 11800949
When I use the mouse wheel in a form it knocks out the current record with all the criteria etc,,, and creates a new record.  I was browsing around and printed out an article from an earlier asked question on the topic( dont ahve it with me right now or I would tell you) and had links to microsoft and lebans(?).  
0
 
LVL 4

Expert Comment

by:Colonel32
ID: 11818394
When you say "hook" do you mean that you are subclassing the form with the SetWindowLong API?

Also, I'm not sure I understand when you say that "it knocks out the current record with all the criteria etc,,, and creates a new record". Do you mean that just the focus is moved to the "New Record" row, or is data actually added to the data-set?

A look at your existing (relevant) code would help put things into focus :)
0
 

Author Comment

by:JamieRhodes
ID: 12607600
In a form when you use the mouse wheel yes a new reocord is focused on, which is what I do not want to happen
0
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.

 
LVL 4

Expert Comment

by:Colonel32
ID: 12633099
Again, it will be easier to see what is causing this if you post your code.
0
 

Author Comment

by:JamieRhodes
ID: 12726804
okay no code is causing this to happen, it is how access and the mouse wheel work by default.  When you roll the mouse wheel, a new record is created and I do not want a new record created.  
0
 
LVL 4

Accepted Solution

by:
Colonel32 earned 150 total points
ID: 12729829
No records are created by the mouse wheel. If you are refering to the record shown at the end with an asterisk * in the record-selector (left-hand side), that is always there and is where you insert data to create a new record.

If you wish to remove this so that records cannot be added, then open the form in design mode, open the properties window and navigate to the 'Data' tab. Then change the 'Allow Additions' property to "No".
0
 

Author Comment

by:JamieRhodes
ID: 12756404
Okay perhaps added was not what I wanted to say.  When this form opens it already has  information that the user has selelected from the previous form.  Such as residentid, date etc... The user then will add more data to complete the process.  The problem is when they accidentially roll the mouse wheel the residentid, date etc are lost.
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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
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…
Familiarize people with the process of utilizing SQL Server views 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 Access…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now