G
Guest
Hi! I want to delete from TM_A MAIN where there are no records from the
subforms TM_bi, TM_other, and TM_elisa. The SQL view is:
DELETE DISTINCTROW [TM_A MAIN].bnum, [TM_bi.bnum] & [TM_elisa.bnum] &
[TM_other.bnum] AS Expr1
FROM (([TM_A MAIN] LEFT JOIN TM_bi ON [TM_A MAIN].bnum = TM_bi.bnum) LEFT
JOIN TM_other ON [TM_A MAIN].bnum = TM_other.bnum) LEFT JOIN TM_elisa ON
[TM_A MAIN].bnum = TM_elisa.bnum
WHERE ((([TM_bi.bnum] & [TM_elisa.bnum] & [TM_other.bnum]) Not Like "*"));
It gives me the error "Specifiy the table containing the records you want to
delete"... How do I delete from TM_A MAIN?
Thanks!
subforms TM_bi, TM_other, and TM_elisa. The SQL view is:
DELETE DISTINCTROW [TM_A MAIN].bnum, [TM_bi.bnum] & [TM_elisa.bnum] &
[TM_other.bnum] AS Expr1
FROM (([TM_A MAIN] LEFT JOIN TM_bi ON [TM_A MAIN].bnum = TM_bi.bnum) LEFT
JOIN TM_other ON [TM_A MAIN].bnum = TM_other.bnum) LEFT JOIN TM_elisa ON
[TM_A MAIN].bnum = TM_elisa.bnum
WHERE ((([TM_bi.bnum] & [TM_elisa.bnum] & [TM_other.bnum]) Not Like "*"));
It gives me the error "Specifiy the table containing the records you want to
delete"... How do I delete from TM_A MAIN?
Thanks!