اخوي محمد بارك الله فيك
قم بنسخ جملة ال Sql التالية وضعه في استعلام جديد
SELECT Qry.cuname, Qry.innumber, Qry.invoiceval, Qry.coming, Qry.dater, [invoiceval]-[coming] AS Balance, (SELECT sum(tbl.invoiceval)-sum(tbl.coming)
FROM mk as tbl
WHERE tbl.innumber = qry.innumber) AS [total Balance]
FROM mk AS Qry
WHERE (((Qry.dater)=(SELECT Max(tbl.dater)
FROM mk as tbl
WHERE tbl.innumber = qry.innumber)) AND (([invoiceval]-[coming])<>0))
ORDER BY Qry.cuname;
و حاول الابتعاد عن المسميات العربية