I have a main form and a subfom that default view is datasheet. When I right click the subform and select "New Record" I get the following error"
'Run-Time Error 3077:
Syntax error (missing operator) in expression.'
Not sure if it matters but I have the following code in the on current of the subform to syn the records with the main form:
Private Sub Form_Current()
Dim rst As DAO.Recordset
Set rst = Me.Parent.RecordsetClone
rst.FindFirst "MtceID = " & Me!MtceID
If Not rst.NoMatch Then
Me.Parent.Bookmark = rst.Bookmark
End If
Set rst = Nothing
DoCmd.RunCommand acCmdSelectRecord
End Sub
At first I thought it was the DoCmd line and remarked it out, but I still got the error.
The right click Delete Record works fine.
Any ideas how to .prevent this error.
James