Dorian
1 - Check for it 2 - "IF" there", delete it 3 - "IF not there", don't
vs.
1 - Try to delete it 2 - Ignore/bypass the error if it isn't there
Looks to me like door #2...
Regards
Jeff Boyce Microsoft Office/Access MVP
"Dorian" <Dorian[ at ]discussions.microsoft.com> wrote in message news:42BD217E-0595-4A8A-BD7D-0D3D6E8BFB0C[ at ]microsoft.com...
[Quoted Text] >I need to delete a row from a table if it is there (it may or may not be). > Is it better to first do a select to see if its there, then delete it if > present or just always do the delete which may not delete anything? I'd > say > most of the time the row will not be there. Thanks. > > -- Dorian > "Give someone a fish and they eat for a day; teach someone to fish and > they > eat for a lifetime".
|