I have a list box on a form and it contains a value column. I need to extract the Sum of this column into an unbound field but i keep getting an error no matter what I try. Can this be done?
Dim ctlList
Dim MySum as Long ' Or Double
Set ctlList=Me.YourListBox
MySum=0
For Each Lmnt In ctList.Columns(YourColumnIndex
MySum=MySum + CLng(ctlList.Columns(Lmnt))
Next
Me.YourUnboundSumField=MySum
This should do it.
Best wishes,
MakeItSo
Andreas Galambos
EDP / Technical Support Specialist
Bowne Global Solutions Wuppertal, Germany
(andreas.galambos@bowneglobal.de)
HP:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.