I have created a query from multiple tables. I want to add records to the fields of this query from the textboxes in a form. I have added the fields in the FORM from the query fields and created a command button to add new record. when I click the command button, it says 'cant goto a specified record'. Code on the Click event of the command button looks alright. Query is updatable as I can add records manually into the query.
Code in the command button:
Private Sub Command33_Click()
DoCmd.GoToRecord , , acNewRec
Me!QuoteNo.SetFocus
End Sub
Forms allow addition property is set to yes.
I'm doing a trial now so please ignore the command button name.
Wondering if anything else is required to add records to the query. Thank you very much for any possible help.