Is there some code I can put on the before update of the form, so that
it will not accept the mouse scroll submit and only accept if the
submit button is clicked?
Cheers
Sunny
One way is to use a public variable. Open the Form's VBA code, and put
Public bOKToClose As Boolean
at the very top, above the first Sub statement.
In the Submit button's code, set bOkToClose to True; and in the Form's
BeforeUpdate event, check it - e.g.
Private Sub Form_BeforeUpdate(Cancel as Integer)
If Not bOKToClose Then
MsgBox "Please use the Submit button to save data"
Cancel = True
End If
End Sub
Or, disable the scroll wheel altogether - see
www.mvps.org/access and
search for "scroll" for code to do so.
John W. Vinson[MVP]