title: Run time error 3021- no current record
body: <p>I want to link the result of a query to a Textbox but  I get this error: here is my code:</p>
  
  <pre><code>Dim rst As DAO.Recordset
  Set rst = CurrentDb.OpenRecordset("SELECT XValue, YValue,Wert FROM tb_DCM_Daten WHERE (FzgID=" &amp; Forms!frm_fahrzeug!ID &amp; " AND Name='" &amp; List2.Value &amp; "')")
  Text10.Text = rst!XValue //error in this line
  </code></pre>
  
  <p>It should be return c.a 20 record</p>
  
  <p>Why do I get this error and how can I solve it?</p>