Problem in SQL query
I have this Code
CommandText = "SELECT firstName FROM Students Where Students.ID
myCommand = New SqlCommand(CommandText, myConnection)
Dim name As String = myCommand.ExecuteReader.GetString(0)
I get this Error massage:
Exception Details: System.InvalidOperationException: Invalid attempt to read when no data is present.