Thank you very much for ur reply.
I also experimented and got some solution and my query will go like this
SELECT Inward.id AS id1, Inward.dATEI AS dd, Inward.item AS ita, Inward.qty, DSum("qty","inward","[item] =" & [ita] & "And [id]<=" & [id1]) AS rsqty, IIf(IsNull(DSum("qty","outward","[item] =" & [ita])),"0",DSum("qty","outward","[item] =" & [ita])) AS sales, [rsqty]-[sales] AS yn, IIf([yn]<0,"No","Yes") AS agei
FROM Inward LEFT JOIN Outward ON Inward.item = Outward.item
GROUP BY Inward.id, Inward.dATEI, Inward.item, Inward.qty
ORDER BY Inward.dATEI;
now agin feild will return value as yes or no and I will use datediff for the feild having yes as output
may be my procedure is bit lenthy but as i said i am new to access and this is the only way i got
please give some inputs