//sale counter string at, sa, bb, kk; OleDbConnection con = new OleDbConnection(@"provider=microsoft.jet.oledb.4.0;data source=" + Server.MapPath("shop.mdb")); at = " update myproducts set salecounter = (SELECT sum(details.Quantity) FROM Details Group By ProductID) in(select productid from details);";// WHERE EXISTS (select productid from myproducts)"; OleDbCommand cmm = new OleDbCommand(at, con); // OleDbDataReader drm; con.Open(); // drm = cmm.ExecuteReader(); // drm.Read(); cmm.ExecuteNonQuery(); con.Close(); //