You can't go to the specified record

P

Patty

I have a command button set, when clicked will go to a new form with
the following code

Private Sub ImageNewIncident_Click()
On Error GoTo Err_NewCAR_Click
Me.year.SetFocus
DoCmd.GoToRecord , , acNewRec

Exit_NewCAR_Click:
Exit Sub

Err_NewCAR_Click:
MsgBox Err.Description
Resume Exit_NewCAR_Click
End Sub

Now for some reason that I can't see I get the "You can't go to the
specified record. You may be at the end of a recordset" dialog box.

Does anyone have any suggestions???

Thank Patty
 
Top