It should be
Currentdb.Execute "DELETE * FROM TableB WHERE Order NOT IN (SELECT Number FROM TableA)"
It means
DELETE * FROM TableB >> Delete records from tableB
WHERE Order NOT IN >> where tableB.Order is not in the list of
(SELECT Number FROM TableA) >> numbers that exist in table A