I am trying to delete some blank records (all they have is a date and the autonumber field) in a table. A select query runs fine when selecting the offending record but when I change it to a delete query I get "The search key was not found in any record" Am I standing on the right foot or what?
We need some proper information.
Please provide the SQL of the query you say worked.
What do you mean when you say 'Blank Records'?
We have the first part OK :
- DELETE
-
FROM tblAccounts
-
WHERE ...
It's the WHERE clause which is holding us up, and for that we need the information which you haven't provided yet.
Records can look 'Blank' under a number of different circumstances. That's why we need the SQL of the query that did work to know how to determine 'Blank' in your circumstances. I've known a number of quite experienced users get confused over Nulls and Empty Strings etc.
Rabbit, A parameter isn't treated as a literal in SQL so won't need delimiters. Good thinking though.