Solved

MouseWheelHook

Posted on 2004-08-13
8
267 Views
Last Modified: 2012-06-21
Has anyone ever used this? Any problems with runtime version?
0
Comment
Question by:JamieRhodes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

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
 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

739 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