I need to check wheather or not a query returned successfully, and there is data to read. How do I check this? I have the following code:<BR><BR>Private Sub submit_Click(ByVal sender As System.Object, _<BR> ByVal e As System.EventArgs) Handles submit.Click<BR> <BR> <BR> <BR> Dim dbRead as OleDbDataReader<BR> Dim sConnectionString As String<BR> Dim PathInfo as String = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Password=;Data Source=" & _<BR> "c:InetpubwwwrootGrantProposalDatabase.mdb"<BR > Dim con as OleDbConnection = new OleDbConnection(PathInfo)<BR> Dim SQL as String = "Select PASSWORD, EMAIL from CSVBannerExtract Where EMAIL = &#039;" & login.text & "&#039;"<BR> Dim da as OleDbCommand = new OleDBCommand(SQL,Con)<BR> con.Open()<BR> dbRead = da.ExecuteReader()<BR> <BR> WHILE dbRead.Read()<BR> If dbRead("PASSWORD") = password.text Then<BR> &#039;Authenticate the user<BR> FormsAuthentication.RedirectFromLoginPage(login.Te xt, False)<BR> Else<BR> lblOutput.Visible = True<BR> End If<BR> End While<BR> <BR> dbRead.close<BR> Con.close<BR> <BR> End Sub