I have a simple question.
Do while loop to check each record in a MySQL Table, see code
But i want certainly not just want not use recordset or MySqlDataReader.
I Is that possible?
Information:
I use Visual Basic 8.0 and Mysql 5.0
I have one table: Articles
Article nb, Arcticle Dis, Arcticle stock
1000 hamer 75
2000 saw 100
3000 drill 50
4000 Screwdrivers 150
etc....
Which code should I add the dots?
What code needs to add more?
Dim myConnString = "Database=test; Data Source=localhost; User Id='test'; Password=''test"
Dim conn As New MySqlConnection
Dim myCommand As New MySqlCommand
Dim myAdapter As New MySqlDataAdapter
Dim myData As New DataTable
Dim SQL As String
SQL = "SELECT * FROM articles order by articlenb"
conn.ConnectionString = myConnString
conn.Open()
myCommand.Connection = conn
myCommand.CommandText = SQL
myAdapter.SelectCommand = myCommand
myAdapter.Fill(myData)
.........
Do while .......eof () 'Article Tabel
........
listbox1.items.add(........)
....... MoveNext 'next record
.........
loop
Thanks in advance,
Andre