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
 

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