I'm sorry, but I don't get the correlation between needing to disable the wheel and opening the form to a new record!
As to the disabling of the mousewheel, if you're running Access 2007, you already have a function that addresses this issue! Just check with Help.
For all other versions, you'll need some outside help. A gentleman by the name of Stephen Lebans has a sample database that does this and it can be downloaded at:
http://www.lebans.com/mousewheelonoff.htm
First, download and unzip the db and take a look. Go into your db and goto File > External Data > Import and import the module modMouseHook from the sample database. Next make sure you have the included file, MouseHook.dll, in the same folder your database resides in. The following code needs to run before the mousewheel will be locked:
- Private Sub Form_Load()
-
'Turn off Mouse Scroll
-
blRet = MouseWheelOFF
-
End Sub
If you have one form that always loads first in your db, place the code there. If the first form to load varies, place the same code in each form.
You should be set now.
Concerning the opening on a new record for data entry, if you wnatusers to only be able to enter new records, you can set the form's
DataEntry Property to
Yes. This will allow entry of new records but will not allow access to existing records.
To allow both, use this code in the
Form_Load event
- Private Sub Form_Load()
-
DoCmd.GoToRecord , , acNewRec
-
End Sub
Linq
;0)>