Ola,

Having me a weird issue, which I can't seem to solve. I'm loading a table from a MySQL-server, which loads fine, but I also get the following error:
Error 5: Index was out of range, Must be non-negatives and less then the size of the collection.
Parameter name: index

I don't understand where it comes from and what it means.

This is how I load the database:

vb.net Code:
  1. mysqlAdapter.SelectCommand = mysqlComm
  2. mysqlAdapter.Fill(mysqlTable)
  3. mysqlReader = mysqlComm.ExecuteReader
  4.  
  5. While mysqlReader.Read
  6.     sbar_progress.Value += 1
  7.     beslag_dg_beslag.DataSource = mysqlTable
  8. End While

Thanks for the help in advance.