Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21243

[RESOLVED] sum grid column

$
0
0
I have this code to loop on all the rows of the column and sum them up. But like if I have 20 and 20.50 the sum should be 40.50 but on the textbox of the result, I am getting
either round down or round up of the result like 41. How can I code it to present the decimals.

The format of the column that I use to format the number is #,###.00


Resolved:

change or remove the data type of my variable that holds the sum up value.

Viewing all articles
Browse latest Browse all 21243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>