Error: You cannot go to specific record

J

Jack

Hi,
I am trying to add records in a form using standard code:

Private Sub Command29_Click()
On Error GoTo Err_Command29_Click


DoCmd.GoToRecord , , acNewRec


Exit_Command29_Click:
Exit Sub

Err_Command29_Click:
MsgBox Err.Description
Resume Exit_Command29_Click

End Sub


However, when I try to add record it gives the following error:
You can't go to specific record
This prevents me from getting the add button functional.
Any help is appreciated. Thanks
 
J

Jack

Actually, I was using a query related to single table for this job. Now
changing the recordsource to the table itself resolved the problem. Thanks
 

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