Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding values down a column

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
What would be the code for adding numbers together down one column in a datagrid and placing it in a variable.

Thanks.
 
Something like:

With dGrid
.Col = I 'I is the col 0f interest
[tab]While .Row < .Rows
[tab][tab]Mysum = MySum + Val(.Col)
[tab][tab].Row = .Row + 1
[tab]Wend
End With

MichaelRed
redmsp@erols.com

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top