title: ADODB.Recordset error '800a0bb9' : Arguments are of the wrong type
body: <pre><code>Set rsPlanID = Server.CreateObject("ADODB.Recordset")
  rsPlanID.CursorLocation = adUseClient
  
  strSQL = "SELECT PlanID FROM ATTJournals WHERE ATTUserDataID = " &amp; ATTUserDataID 
  rsPlanID.Open strSQL, m_objConn, adOpenStatic, adLockOptimistic
  
  If Not rsPlanID.EOF Then
      response.Write "New PlanID:"  &amp; rsPlanID("PlanID")
  End If
  </code></pre>
  
  <p>The above code is in classic asp.</p>
  
  <p>I am getting the following error: </p>
  
  <blockquote>
    <p>ADODB.Recordset error '800a0bb9'<br>
    Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.</p>
  </blockquote>
  
  <p>Dows anyone know the cause this error and how to fix it?</p>