title: How to Convert the Code in VB 6 to VB.NET?
body: <p>I got a chance to work in the migration project(VB to VB.NET).I was confusing in the RecordSet functionality.In our project we are taking the DataReader according to the scenario.But in the Looping cases like dsr.EOF.</p>
  
  <pre><code>  Dim recordset As dao.RecordSet
  If recordset .EOF Then
         '    '    msgbox "Please enter some number ", vbOKOnly, "Number Not Found"
         '    '    txtAdd.SetFocus
         '    '    Exit Sub
  End If
  </code></pre>
  
  <p>How to convert this into VB.NET?
  Either we need to write If Not reader.Read or If reader.Read.</p>
  
  <p>Can any help me regarding this ? </p>