I am trying to remove a record from a query using the code below but keep getting an error on the "CurrentDb.Execute sSQL" line saying "Could not delete from specified tables".
Can someone please advise?Code:Private Sub cmdLeft_Click() dim sSQL as string sSQL = "DELETE [EntityName]" sSQL = sSQL & vbNewLine & "FROM qdf_EntityForCustomEmail" sSQL = sSQL & vbNewLine & "WHERE EntityName IN ('ABC') Debug.Print sSQL CurrentDb.Execute sSQL End Sub