Then it is a sql task. Write a query using sql aggregate functions and debug
it with a utility that runs queries against your database.
If for whatever reason you still need to do it in the code, use database
access components connection, command and reader. You can find plenty of
examples in MSDN.
Eliyahu
"Carlos" <ch******@yahoo.com> wrote in message
news:es*************@tk2msftngp13.phx.gbl...
Thanks Eliyahu,
I just need to accumulate totals from a particular field without showing
data.
Carlos.
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:e5**************@TK2MSFTNGP14.phx.gbl... Carlos,
Do you need to show the rows or just to get totals?
Eliyahu
"Carlos" <ch******@yahoo.com> wrote in message
news:uj**************@TK2MSFTNGP09.phx.gbl... Hi all,
I am new to asp .net, and now I need to access a database,
and accumulate totals according to values that I find on each row
with a given condition. Can anybody show me a code snipet addressing
such task ? Thanks in advance.
Carlos