Solved

MouseWheelHook

Posted on 2004-08-13
8
230 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
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 …

705 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

16 Experts available now in Live!

Get 1:1 Help Now