Ok so this the solution:
Table Inventory Transaction is responsible for calculating amounts in your stock.
That table is connected with table Orders through field Customer Order ID.
So create delete query with following SQL code and name it something like qrdelete:
Then change VBA code for...