i have a listbox named list0. can anyone teach me how to move item up/down in listbox by using command button.
thanks in advance.
i have a listbox named list0. can anyone teach me how to move item up/down in listbox by using command button.
thanks in advance.
Take a look at the attached db. Post back if you have any questions.
If this helped, please click the star at the bottom left of this posting and add to my reputation. Many thanks.
Bob Fitzpatrick
it help much.. thanks you very much.. i really appreciate it.. happy with this solution..
You're welcome. Glad to help.![]()
If this helped, please click the star at the bottom left of this posting and add to my reputation. Many thanks.
Bob Fitzpatrick
can you pls help me once more. i dont know why when the item i the listbox currently in first row, and i still want to click previous button, and i got error. same goes when the item currently at last row, amd i prefer to click next. based from the sample databse u gave me, it run smoothly, i dont know where should i configure. could you pls help me. thanks
anybody, pls solve my problem. hope anyone can solve this.. thank you
Can You post the code that you are using that is producing the error and tell us on which line it errors.
If this helped, please click the star at the bottom left of this posting and add to my reputation. Many thanks.
Bob Fitzpatrick
this is the example of previous button.. im not sure why the item didnt repeat to the last item since the code is right.Code:Dim n As Long Me.List29.SetFocus n = Me.List29.ListCount - 1 Select Case Me.List29.ListIndex Case Is < 1 Me.List29.ListIndex = n Case Else Me.List29.ListIndex = Me.List29.ListIndex - 1 End Select
Can you post a copy of your db in A2003 mdb format.
If this helped, please click the star at the bottom left of this posting and add to my reputation. Many thanks.
Bob Fitzpatrick
here is the sample of the database. hope u understand..