hi!! i need to return the sum of price from purchases table, but i am not getting the value...
the value is displayed on label..
this is the code...
string stat = "SELECT SUM(Price)as Price from Purchases WHERE [Month of Purchase] = '" + purch_month + "'";
OleDbCommand cmd = new OleDbCommand(stat, con);
can someone help me with this problem..
Thanks in Advance.. :)