A
Allen Clark
I have an Access 2000 db with many linked tables. I have determined that if
the persons.first, persons.last, persons.zip, and email.emailaddr fields are
all blank, the record was incorrectly entered and I would like to get rid of
any record that matches these criteria. When I build the delete query, the
SQL that is generated is as follows:
DELETE Persons.*
FROM Persons LEFT JOIN EMail ON Persons.id = EMail.Id
WHERE (((IsNull([persons].[first]))<>False) AND
((IsNull([persons].[last]))<>False) AND ((IsNull([persons].[zip]))<>False)
AND ((IsNull(.[emailaddr]))<>False));
If this same selection criteria is used in a simple query with a left outer
join, and select only the Persons.ID field, I get a listing of 1676 records.
If I convert it to a delete query, the only message I get is "could not
delete from specified tables".
Any ideas on what is going on here?
Thanks in advance,
Allen
the persons.first, persons.last, persons.zip, and email.emailaddr fields are
all blank, the record was incorrectly entered and I would like to get rid of
any record that matches these criteria. When I build the delete query, the
SQL that is generated is as follows:
DELETE Persons.*
FROM Persons LEFT JOIN EMail ON Persons.id = EMail.Id
WHERE (((IsNull([persons].[first]))<>False) AND
((IsNull([persons].[last]))<>False) AND ((IsNull([persons].[zip]))<>False)
AND ((IsNull(.[emailaddr]))<>False));
If this same selection criteria is used in a simple query with a left outer
join, and select only the Persons.ID field, I get a listing of 1676 records.
If I convert it to a delete query, the only message I get is "could not
delete from specified tables".
Any ideas on what is going on here?
Thanks in advance,
Allen