replace AanvulList with the name of your listbox
Main Topics
Browse All TopicsHi all
I have done this before but for the life of me i cant remember how to do it,
1 - i am wanting to do get the running total of all the values in a column
2 - I would like to convert the value to a show it is currency to view and then back to just a number to save in to the database
thanks all
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
listbox is not really multi column.
it will display that way only when the 'list' is full.
"Columns Property (ListBox)
Returns or sets a value that determines whether a ListBox control scrolls vertically or horizontally and how the items in the columns are displayed. If it scrolls horizontally, the Columns property determines how many columns are displayed.
Setting Description
0 (Default) Items are arranged in a single column and the ListBox scrolls vertically.
1 to n..... Items are arranged in snaking columns, filling the first column, then the second column, and so on. The ListBox scrolls horizontally and displays the specified number of columns."
how is your data populated into the listbox ? you can use arithmatic to get pseudo-columns out.
is there data in the itemdata property or do you want to sum the list values ?
sorry. was confused with ListBox for a while.
attached test code does what you want. it loops through all the listitems, summing the values of the selected subitems
BUT. there is no event for Add or Change to the list view so you must call the Update_Totals routine after any add operation or at the end of a series of adds.
hope this helps.
Thanks mate this looks like the code for VB6 i am using vb 2008 , i have taken the code for the update_totals and tested it and having some issues
(i have already got a listview on my page and i am just needing to get the totals from this)
I have attached the code as well as a image for this error
thanks for your help so far it olooks like i am almost there thanks to you
it's confusing but this is the vb5/6 TA.
i think for vb2008, the property is just .Items
http://msdn.microsoft.com/
ie Form1.invoicelist.items(i)
refer the example
http://msdn.microsoft.com/
price += Double.Parse(Me.ListView1.
Business Accounts
Answer for Membership
by: Surone1Posted on 2009-09-04 at 07:12:08ID: 25259830
For i = 0 To AanvulList.ListCount - 1
a(i)))
total = total + cdbl(nz(AanvulList.ItemDat
Next i
msgbox total & vbcrlf & ccur(total)