I have created a form from several tables. I have also added an add record button, but when I click it, I get this "you can't go to specified record".
here is the code (using Access 2000)
Private Sub Command40_Click()
On Error GoTo Err_Command40_Click
DoCmd.GoToRecord , , acNewRec
Exit_Command40_Click:
Exit Sub
Err_Command40_Click:
MsgBox Err.Description
Resume Exit_Command40_Click
End Sub
Any help would be appreciated!
here is the code (using Access 2000)
Private Sub Command40_Click()
On Error GoTo Err_Command40_Click
DoCmd.GoToRecord , , acNewRec
Exit_Command40_Click:
Exit Sub
Err_Command40_Click:
MsgBox Err.Description
Resume Exit_Command40_Click
End Sub
Any help would be appreciated!