thank you man for ur time.
in fact the main and subform are linked together and everything is fine concerning this matter.but when it comes to the macro, it s calculating the sum and showing it for all IDs.
lets say ID=1, qty=3 ID=2, qty=2
ID=1, qty=2...