i have changed it as per your suggestion
but now it doesnt add the record
this is the code now
Option Compare Database
Private Sub Command16_Click()
On Error GoTo Err_Command16_Click
DoCmd.GoToRecord , , acNewRec
Exit_Command16_Click:
Exit Sub
Err_Command16_Click:
If Err.Number = 3022 Then...