title: How to use If .eof OR .bof condition in vb.net?
body: <p>I am converting vb6 application into vb.net and in it .eof and .bof are used as condition. I am not understanding how to carry out these conditions in vb.net</p>
  
  <pre><code>sSql = "Select * From SPCsetup"
      Set dbConn = New ADODB.Connection
      Call openDBconn(dbConn)
      Set rsConn = dbConn.Execute(sSql)
  If rsConn.EOF Or rsConn.BOF Then
              bFlag = False
          Else
              bFlag = True
          End If
  </code></pre>