Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 How to Sum this column

Author  Topic 

saidev
Posting Yak Master

101 Posts

Posted - 2006-07-13 : 18:18:27
Hi Guys,

I am just populating the data on the form and i want to sum this
rateactual column. how can i do this in VB.NET/ASP.NET

If objdatarow("rateactual") Is DBNull.Value Then
rateactual = 0
Else
Me.txtinvoicetotal.Text = objdatarow("rateactual")
End If

Appreciate your help,
Thanks,

Srinika
Master Smack Fu Yak Hacker

1378 Posts

Posted - 2006-07-14 : 08:18:27
Is this code inside a loop ? if so define a variable & use as

variable_rateactual = variable_rateactual + objdatarow("rateactual")
-- U may need to convert objdatarow("rateactual") to numeric

or u can query the Database-Table and get the results.



Srinika
Go to Top of Page
   

- Advertisement -