this code only update values how do we remake our program (delete valuers from Price.Present that absent in [Goods].Remnant )? (1 Viewer)

sergey123

New member
Local time
Today, 02:17
Joined
Feb 19, 2021
Messages
3
we have price table and goods table in access we need to make query to delete all price values from table price that absent in table goods and leave all prices in table price that exist in table goods.
this code only update values how do we remake our program (delete valuers from Price.Present that absent in [Goods].Remnant )?**
UPDATE Price INNER JOIN Goods ON [Price].Article = [Goods].Article SET Price.Present = [Goods].Remnant;
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 07:17
Joined
May 7, 2009
Messages
19,231
backup table Price first!

UPDATE Price SET Price.Present = Null Where Price.Present Not In (SELECT Remnant FROM Goods);
 

Users who are viewing this thread

Top Bottom