Solved

MouseWheelHook

Posted on 2004-08-13
8
251 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
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.

 

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

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

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

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