daveofgv
Well-known member
I have a simple windows form that I am trying to total the amount in a table to show up on a label. However, it's not working correctly....
I am using Visual Studio 2008 and the SQL Express Developers Edition that comes with VS. I have a table named "Money Oweds". Within the table I have a field named "AmountOwed".
My datatable is named "mydatatable" and when I use
I am using Visual Studio 2008 and the SQL Express Developers Edition that comes with VS. I have a table named "Money Oweds". Within the table I have a field named "AmountOwed".
My datatable is named "mydatatable" and when I use
VB.NET:
Label1.Text = myDataTable.Compute("Sum(MoneyOweds)", "AmountOwed = "")
[\code]
My program stops debugging with errors.
can anyone show me how to do a simple DataTable.Compute syntax?
Thanks