A
Andrew Brill
Does anyone know a (much!) faster way to write the following please?
DELETE * FROM TRANSHEADER2 WHERE HEADERID NOT IN
(SELECT HEADERID FROM TRANSHEADER)
An unmatched query (below) runs a lot quicker (as a SELECT) but I can't work
out how to turn an unmatched query into a delete query. It complains:
'must use an updatable query':
DELETE TRANSHEADER2.*
FROM TRANSHEADER2 LEFT JOIN TRANSHEADER ON TRANSHEADER2.HEADERID =
TRANSHEADER.HEADERID
WHERE (((TRANSHEADER.HEADERID) Is Null));
Thanks!
Andrew
DELETE * FROM TRANSHEADER2 WHERE HEADERID NOT IN
(SELECT HEADERID FROM TRANSHEADER)
An unmatched query (below) runs a lot quicker (as a SELECT) but I can't work
out how to turn an unmatched query into a delete query. It complains:
'must use an updatable query':
DELETE TRANSHEADER2.*
FROM TRANSHEADER2 LEFT JOIN TRANSHEADER ON TRANSHEADER2.HEADERID =
TRANSHEADER.HEADERID
WHERE (((TRANSHEADER.HEADERID) Is Null));
Thanks!
Andrew