Can't go to specified record.

D

Desert Bear

This appears when I click the "Add Task" button. it has the following code, and has not changed between
a backup version which adds the new record without protest and the current version which gives "You can't go to the specified record", and then, upon re-clicking "Add Task", adds the new record without protest.

Private Sub cmdAddTask_Click()
On Error GoTo Err_cmdAddTask_Click
Me.AllowAdditions = True
DoCmd.GoToRecord , , acNewRec
Exit_cmdAddTask_Click:
Exit Sub

Err_cmdAddTask_Click:
MsgBox Err.Description
Resume Exit_cmdAddTask_Click
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