Moving records up or down in a listbox based on Up or Down Button selection in a windows form

I need to allow my users to move records up or down in a list box.  I thought I would just add buttons (up and down) and move the items on 'click' of the button.  My problem is I can't come up with code to make this work.

I'll write the record(s) back to the DB table with the corrected order when the user leaves the form.

Thanks in advance..

TMHPROGAsked:
Who is Participating?
 
planoczCommented:
the database does not care what order the listbox is in.
the database replaces or adds to the database according to the database parameters.
0
 
TMHPROGAuthor Commented:
Ronald,

Thanks... That should work.

Planocz,

Understood... I just meant I will do updates to the records in the list box with the reassigned order values.

Again.... thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.