D
Dennis Powell
I have a form with code in the Form_Current() event. When I open the form
I'm using where condition that only returns one record like this:
doCmd.OpenForm "formname", , ,"[ID] = Forms![formwithlistbox]![lstID]"
When users use the Scroll Wheel on the mouse I get 'Error Number 3021 No
current Record'. Obviously the wheel is forcing the form to try to move to
the next record; but there is none. How can I disable the wheel on the mouse
(or trap it) so the form doesn't try to move from that record? If I trap
the error I can keep the user from having to deal with the error message;
but, It still moves off the current record and clears all of the controls.
I'm just trying to avoid having panicked users calling me saying that the
changes they just made are gone.
Any Ideas?
Thanks in advance.
Dennis
I'm using where condition that only returns one record like this:
doCmd.OpenForm "formname", , ,"[ID] = Forms![formwithlistbox]![lstID]"
When users use the Scroll Wheel on the mouse I get 'Error Number 3021 No
current Record'. Obviously the wheel is forcing the form to try to move to
the next record; but there is none. How can I disable the wheel on the mouse
(or trap it) so the form doesn't try to move from that record? If I trap
the error I can keep the user from having to deal with the error message;
but, It still moves off the current record and clears all of the controls.
I'm just trying to avoid having panicked users calling me saying that the
changes they just made are gone.
Any Ideas?
Thanks in advance.
Dennis