However you can just try something like this.
Dim drBranchForm As SqlDataReader
drBranchForm = myCommand.ExecuteReader()
' Always call Read before accessing data.
While drBranchForm.Read()
Console.WriteLine(( drBranchForm.GetInt32(0) & ", " & drBranchForm.GetString(1)))
End While
' always call Close when done reading.
drBranchForm.Close()
take out the FOR EACH loop first.
Hope this can help ^_^
From
http://www.developmentnow.com/g/38_2...le-problem.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com