title: Run time error 3021 - EOF or BOF is true or the current record has been deleted
body: <pre><code>rst.Open "SELECT * FROM Equipas WHERE ([ID - Funcionário] LIKE '" &amp; idfunc &amp; "' AND [ID - Tarefa] LIKE ' " &amp; idtask &amp; "' );", CurrentProject.Connection, adOpenDynamic, adLockOptimistic
  rst.Delete adAffectCurrent
  rst.Update
  rst.Close
  </code></pre>
  
  <p>I receive the runtime error 3021 however the query is not empty.</p>