Tim,
Each form section has events, just like a control does.
I would however, suggest the form section's double-click event,
as your likely to get inadvertent single clicks:
Private Sub Detail_DblClick(Cancel As Integer)
Docmd.RunCommand accmdsaverecord
NextRecordButton.SetFocus
End Sub
But then the question arises... why?
If you are through entering data on a record, simply going
to the next record saves the record.
--
Fred
Please reply only to this newsgroup.
I do not reply to personal e-mail.
"Tim Graichen" <Tg*******@neo.rr.com> wrote in message
news:jm********************@twister.neo.rr.com...
I would like to be able to click outside of a field (i.e. on the
background of the form) and have the following happen:
Docmd.RunCommand accmdsaverecord
NextRecordButton.SetFocus
What event should I have this code in that would allow it to run when the
click is outside of a control area?