Hi there,
This is probably a simple problem but I really couldn't get it working for the life of me.
I'm trying to calcuate grandtotal value using total;
totalsales work just fine. It's the grandtotalsales that won't work.
Is my formula wrong? Or any other problems?
Please let me know. Thank you.
Regards,
vb_noob
This is probably a simple problem but I really couldn't get it working for the life of me.
I'm trying to calcuate grandtotal value using total;
VB.NET:
Dim productsold As Decimal
Dim productprice As Decimal
Dim totalsales As Decimal
Dim grandtotalsales As Decimal
productsold = (Val(txtNumProd.Text))
productprice = (Val(txtProdPrice.Text))
totalsales = productprice * productsold
grandtotalsales = grandtotalsales + totalsales
lblTotalOutput.Text = "The total sales price is " & FormatCurrency(totalsales)
lblGrandTotalOutput.Text = "Grand Total sales price is " & FormatCurrency(grandtotalsales)
totalsales work just fine. It's the grandtotalsales that won't work.
Is my formula wrong? Or any other problems?
Please let me know. Thank you.
Regards,
vb_noob