First of all, you can use when event of ListBox, not click. Secondly, show us your code, perhaps, we can catch the problem.
>HI,
>I use a listbox on a form that display items and their prices. I need to display the total of selected items as the user select them. I created a small routine in the click() event of the lstbox that parse the sewleted items and calculate their total. The problem is that when I click on the list, even if the item is selected, the total textbox is badly updated. It is updated but not always in sync with the selected items. Sometimes, even if there are no items selected, I still see a total in the textbox. Even if I re-initialize the value of the textbox at the beginning of the routine in the click() event.
>
>Can you help me ?
>
>Thank you,
>Christian Cote
If it's not broken, fix it until it is.
My Blog