title: VB.Net - ExecuteReader: CommandText property has not been initialized
body: <p>I know there are some threads about this topic, but for some reason nothing of these things given there didn't work for me. So that is my code:</p>
  
  <pre><code>Dim strAccSQL As String = "SELECT nUserNo FROM dbo.tUser WHERE sUserID='" &amp; AccountID.Text &amp; "';"
          Dim catCMDAcc As SqlCommand = New SqlCommand(strAccSQL, AccCon)
          Dim myAccountReader As SqlDataReader = catCMDAcc.ExecuteReader()
          While myAccountReader.Read
              AccountNo.Text = myAccountReader(0)
          End While
          myAccountReader.Close()
          Con.Close()
          Con.Open()
          Dim strSQL2 As String
          Dim catCMD As SqlCommand = New SqlCommand(strSQL2, Con)
          Dim myReader As SqlDataReader = catCMD.ExecuteReader()
          InfoTextBox.Text &amp;= Environment.NewLine &amp; Now &amp; " Account: " &amp; AccountID.Text &amp; " Found"
          CharacterName.Properties.Items.Clear()
          While myReader.Read()
              CharacterName.Properties.Items.Add(myReader(0))
          End While
          myReader.Close()
          AccCon.Close()
          Con.Close()
  </code></pre>
  
  <p>Anyone got an idea for my problem?</p>