title: Why does recordset.RecordCount equal 1 but recordset.EOF and recordset.BOF both equal True
body: <p>I have a very simple query that only returns one record.  When I try to get the value out of the only column in the only record, I get "Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record."  What's going on here?  The code that is causing the error doesn't even execute if RecordCount is 0 and I have verified that the recordset does in fact contain a record.  </p>
  
  <p>Code is below.  Error is thrown when trying to set strDN.  It's so dead simple but I can't figure out where I'm going wrong.</p>
  
  <p>EDITED TO INCLUDE COMMAND</p>
  
  <pre><code>&lt;LDAP://DC=something,DC=com&gt;;(&amp;(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2)(employeeID=01234567));distinguishedName;subtree
  
  Set adoRecordset = adoCommand.Execute
  
  
      If adoRecordset.RecordCount &gt; 0 Then
  
  
          strDN = adoRecordset.Fields("distinguishedName").Value
  
          Set objUser = GetObject("LDAP://" &amp; strDN)
  
          objGroup.add(objUser.ADsPath)
  
      End if
  </code></pre>