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
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