Delphi / Object Pascal · Database exception
What does BDE Error 8710 ($2206) - Could Not Find Record mean in Delphi / Object Pascal?
Raised when a Locate/lookup/GotoKey-style operation can't find a record matching the specified key or search criteria.
Raised when a Locate/lookup/GotoKey-style operation can't find a record matching the specified key or search criteria.
Check the search value actually exists in the dataset/index before assuming this is an error condition - many call sites should treat 'not found' as a normal outcome by testing the return value of Locate rather than relying on the exception where the API offers a non-raising alternative.