H
Halfbrain
Hi,
I have a list box that has two column's, Column one is a recordID and column
two has a dollar value.
I want to have a label or textbox on the same form as the list box that
shows the total value (sum) of all the values in the second column of the
list box
eg
Listbox contents shows
Column 1 Column 2
34 $34.40
65 $27.89
123 $62.50
etc
I am trying to work out how to code so that a text box or label will show
the sum of Column 2. i.e $124.79 but can' t work it out.
The list box is populated by the user selecting records from another listbox
and then cllicking a button to transfer the selected records to the above
list box. They can also remove items from the second (above) list box, I
therefore need the total text box to recalculate each time an item is added
or removed from the listbox.
Thanks in advance for any help or guidance
Steve
I have a list box that has two column's, Column one is a recordID and column
two has a dollar value.
I want to have a label or textbox on the same form as the list box that
shows the total value (sum) of all the values in the second column of the
list box
eg
Listbox contents shows
Column 1 Column 2
34 $34.40
65 $27.89
123 $62.50
etc
I am trying to work out how to code so that a text box or label will show
the sum of Column 2. i.e $124.79 but can' t work it out.
The list box is populated by the user selecting records from another listbox
and then cllicking a button to transfer the selected records to the above
list box. They can also remove items from the second (above) list box, I
therefore need the total text box to recalculate each time an item is added
or removed from the listbox.
Thanks in advance for any help or guidance
Steve