It is not recommended to use DataReader and lej8lbf9p9p.gaeReader to get just one value from the database. Instead, you should use. I have an error on this line: dr = lej8lbf9p9p.gaeReader() Incorrect syntax near '='. What's wrong with my code? Private Sub verifycus() Dim objConn As New. C# ExecuteReader used for getting the query results as a DataReader object ExecuteNonQuery executes the command and returns the number of rows.