i have Database tables from Accesses called ConductorsWI when i make reading from it using filter parameters by filed callled "Type" and filed2 called "Shape" and put the result on called "SSize" on combobox3, the results come random and i looking to order them
i have sizes 1.5, 2, 4, 6, 8, 10, 12, .... etc from database
put it appear on combobox as 10, 12, 6, 3, 4, 25, .... Random
and i need to make them sorted from small to big
may be because when i chose reading from database with the cariteria it random it
but i need finally to sort it again
What I have tried:
Dim Cmd As New OleDbCommand 'cmd as command to use
Cmd.Connection = conn 'open connection to database
Cmd.CommandText = "select * from ConductorsWI where Type = '" & ComboBox1.SelectedItem & "' and Shape = '" & ComboBox2.SelectedItem & "'"
conn.Open() 'open connection
dr = Cmd.ExecuteReader
While dr.Read
ComboBox3.Items.Add(dr("SSize").ToString())
End While
dr.Close()
conn.Close()