Feb 26, 2005 #1 orb353 Technical User Feb 16, 2005 7 US I want to sum a dataset column and insert that total in a text box.How can I get this done? Orb353
Feb 26, 2005 #2 dalchri Programmer Apr 19, 2002 608 US Code: Dim txt As TextBox Dim tbl As DataTable txt.Text = tbl.Compute("SUM(MyColumn)", "").ToString() More info here: http://msdn.microsoft.com/library/d...frlrfsystemdatadatatableclasscomputetopic.asp Upvote 0 Downvote
Code: Dim txt As TextBox Dim tbl As DataTable txt.Text = tbl.Compute("SUM(MyColumn)", "").ToString() More info here: http://msdn.microsoft.com/library/d...frlrfsystemdatadatatableclasscomputetopic.asp