I'm trying to read the records into a combobox from the database without any success. There is no problem with the connection, but something seems wrong with my coding. Perhaps someone could tell me what I'm doing wrong.

vb.net Code:
  1. Dim reader_combo_plaats As SqlCeDataReader
  2. Dim cmd_Plaats As New SqlCeCommand("SELECT DISTINCT plaats FROM beslagdata", connStr)
  3.  
  4. reader_combo_plaats = cmd_Plaats.ExecuteReader
  5. While reader_combo_plaats.Read
  6.     mdi_beslag.ts_cbo_plaats.Items.Add(reader.Item("plaats").ToString)  ' <<< here is the problem
  7. End While