How to know.....

  • Thread starter Thread starter Alain
  • Start date Start date
A

Alain

Hi to all,

Is it possible to know, by code or by function, when a new recordset is
being created when using the new record with the record selector at the
bottom of the form.

The reason is I do not want to create some navigationnal button ( including
a New Button) on the forms unless I really have to

Thanks for the information

Alain
 
Hi,
Try this:

Private Sub Form_Current()
If Me.NewRecord Then
MsgBox "new record"
End If

End Sub
 
Thanks Dan,
works great

Alain


Dan Artuso said:
Hi,
Try this:

Private Sub Form_Current()
If Me.NewRecord Then
MsgBox "new record"
End If

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top