Avatar of Kevin Willyerd
Kevin Willyerd
Flag for United States of America asked on

Search key not found

I have a table (Receive) with a field Named "Due". It is a data type yes/no field. It defaults to yes or -1 or checked. SQl statment
DELETE Receive.Due
FROM Receive
WHERE (((Receive.Due)=No));

Open in new window

Causes a search key not found error.
Same happens when 0 is used.

How do I fix it?
Microsoft AccessSQL

Avatar of undefined
Last Comment
aikimark

8/22/2022 - Mon
SOLUTION
Ryan Chong

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)

You can also try importing all records in to a new table, and if successful ... replace the original table with the new table.
aikimark

Try this
DELETE *
FROM Receive
WHERE Receive.Due = False;

Open in new window

Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy