Need a select query

G

Guest

I have a table with three fields (among others): num, inb, and del. The key
is a combo of num and del. In this table, it should not be possible for a
record to have a particular value for num (say X), a value for inb, and a
null value for del, if there also exists another record in the table with the
same value X for num, and values in both inb and del. I want to select these
illegal records and delete them. The query should filter the records to show
only records where del is null, with the value of num the same as other
records where inb and del are not null, and then delete those records.
 
M

[MVP] S.Clark

You can select the records for display in one query(or display on a form),
then use a second query that performs the delete.
 

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

Top