I'm currently stuck on how to sort/organize the results from an Oracle database, here's my issue.
While Not rs.EOF
reason_number = rs.Fields(0).Value
adju_type = rs.Fields(5).Value
reason_type = rs.Fields(6).Value
ID = reason_number & "|" & adju_type & reason_type
cmb.Items.Add(New PopulateCombo(rs.Fields(1).Value, ID))
rs.MoveNext()
End While
reason_number is getting pulled as '7', when it should be pulled as '4', I need the combobox to be populated as
4
5
6
7
8
9
10
11
1
2
3
But it's currently getting populated as
7
8
9
10
11
1
2
3
4
5
6
Is there a way to manually sort the results so I can get the index to start at 4 instead of 7?

New Topic/Question
Reply



MultiQuote




|