Place a command button on your form.
Place this code behind it in the code window:
- Private Sub SaveRecord_Click()
-
If Me.Dirty Then Me.Dirty = False
-
End Sub
Now, in the form's
Design View, select the button and go to
Properties - Other and set the
Default Property to
Yes.
Now, when the <
Enter> key is pressed the
Command Button's code will be run. Obviously, you can only do this for one button on any given form.
Linq
;0)>