Private Sub cmdNewRecord_Click(Index As Integer)
datIDU.Recordset.AddNew
cmdSaveRecord.Enabled = True
cmdMoveFirst.Enabled = False
cmdMoveLast.Enabled = False
cmdMoveNext.Enabled = False
cmdMovePrevious.Enabled = False

End Sub


i am getting the above mentioned error all the lines. I am trying to add new entry in the table by entering all the relevant data and clicking the add button . this add button will enable the save button.

but, i suppose, the command " cmdSaveRecord.Enabled = True" is not getting recognized..