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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top