I have two recordset based on two tables (Invent & buy_tab) , I want to subtract the (qunty) on the invent table from the ( begin_balance) on ( buy_tab) table , I used this code but it is still dealing only with the first record on the table not according to each material on the table ...