Solved

MouseWheelHook

Posted on 2004-08-13
8
264 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
Independent Software Vendors: 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!

 

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

735 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