hello guys im having a problem how to compare the result of the query..

for example i have a command "Select RemainTime from time where username = username"

how do i get the result of the query and compare it to a string
this is what i do..

vb.net Code:
  1. dim remain as string
  2. 'and then the command
  3. using reader as oledb.oledbdatareader = command.executereader()
  4. remain = reader.getvalue(0)
  5. if remain = textbox1.text
  6.   'statements
  7. else
  8. 'statements
  9. end if
  10. end using

is this correct..?