May 8, 2001 #1 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.
What would be the code for adding numbers together down one column in a datagrid and placing it in a variable. Thanks.
May 8, 2001 #2 MichaelRed Programmer Dec 22, 1999 8,410 US 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 Upvote 0 Downvote
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