While trying to read the value of a column, I am getting the error
Invalid attempt to read when no data is present
If reader.HasRows Then name = reader("UserFirstName").ToString MsgBox(name) End If
reader.HasRows is returning True, but while printing 'name', the error happens.
UserFirstName column name exists in the table.