Problem with delete query

  • Thread starter Thread starter Wendy
  • Start date Start date
W

Wendy

Hi

I am trying to delete records out of the users table where they don't match
the records in the SY020 table. The tables are joined on the usercode
field.

This is my query
DELETE Users.*, sy020.Username
FROM Users LEFT JOIN sy020 ON Users.Username = sy020.Username
WHERE (((sy020.Username) Is Null));

It tells me 'Could not delete from specified tables'

Can anyone show me how to do this please?

Thanks

Wendy
 
Back
Top