Am I in the new record line?

P

Pantelis

How can I check with code in the On Current Event that I am in the new record line
without check if the fields values of the record are null.
It's in a continuous form.

I work with Access 2000.

Thanks in advance,
Pantelis
 
A

Allen Browne

Examine the NewRecord property of the form:

Private Sub Form_Current()
If Me.NewRecord Then
Me.Caption = "New client"
Else
Me.Caption = "Client number " & Me.ClientID
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

Top