Guest tikki Posted May 28, 2002 Posted May 28, 2002 I have a database w/ 2 colums (itemName, amount). I have a label at the bottom of my form that i want to display the total value of all the amount variables, but I am clueless how to get it to work. I have established OleDBCommand1 to select all the values from the amount column, but don't know how to get it to add the values together. Any help is appreciated. Quote
Anis Posted May 28, 2002 Posted May 28, 2002 Sql Statement SUM. select sum(amount) fom table' Quote Regards, Anis Miles to go Before I Sleep.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.