B
BFish via AccessMonster.com
I'm getting the "Could not delete" message when trying to run the query below.
I assume do to the non updatable status.
Would anyone know how I can modify the query or a work around.
DELETE tblToWholesalePreApnd.*
FROM qselMatchAcctInvByAddressTrimPre INNER JOIN tblToWholesalePreApnd ON
qselMatchAcctInvByAddressTrimPre.InvNo = tblToWholesalePreApnd.InvNo
WHERE (((tblToWholesalePreApnd.InvNo) In (SELECT [InvNo] FROM
[tblToWholesalePreApnd] As Tmp GROUP BY [InvNo] HAVING Count(*)>1 )) AND (
(Left([Address],3))<>Left([ShipAddress1],3)));
I have tried many variations, but the above is the only sql that seems to
qualify the duplicate records I would like deleted.
Thanks,
Bill
I assume do to the non updatable status.
Would anyone know how I can modify the query or a work around.
DELETE tblToWholesalePreApnd.*
FROM qselMatchAcctInvByAddressTrimPre INNER JOIN tblToWholesalePreApnd ON
qselMatchAcctInvByAddressTrimPre.InvNo = tblToWholesalePreApnd.InvNo
WHERE (((tblToWholesalePreApnd.InvNo) In (SELECT [InvNo] FROM
[tblToWholesalePreApnd] As Tmp GROUP BY [InvNo] HAVING Count(*)>1 )) AND (
(Left([Address],3))<>Left([ShipAddress1],3)));
I have tried many variations, but the above is the only sql that seems to
qualify the duplicate records I would like deleted.
Thanks,
Bill