<pre> for (int i = lownum; i<= highnum; ++i) { con.Close(); con.Open();
SqlCommand qty = new SqlCommand("select itmqty from invDB where itemid='"+i+"'", con); double quant = Convert.ToDouble(qty.ExecuteScalar());
when I added sum() to that itmqty like sum(itmqty) it is showing error
Object cannot be cast from DBNull to other types"
i
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)