Run the code only if it new record

I

Irshad Alam

I want to post a value on a Text control of a form IF ONLY the current Record
is new. If it is old/already edited record it should produce error. I will be
running this code on a mouse click event of a lablel.

Please advise.

Regards.


Irshad.
 
K

Klatuu

If Me.NewRecord Then
'Run your code
Else
MsgBox "This is not a new record"
End If
 
Top