dbTalk Databases Forums  

Re: "Execution failed' Error when deleting no rows

comp.databases.ms-access comp.databases.ms-access


Discuss Re: "Execution failed' Error when deleting no rows in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Trevor Best
 
Posts: n/a

Default Re: "Execution failed' Error when deleting no rows - 07-28-2003 , 12:29 PM






On 28 Jul 2003 04:13:21 -0700 in comp.databases.ms-access,
gilbert.george (AT) whoever (DOT) com (Gilbert) wrote:

Quote:
Hi,

I am talking to Access via ODBC from C++ code.

I have a problem when I try to delete rows using a where clause which
returns no rows.

For example DELETE FROM test_table WHERE id = 3 - if no rows have id =
3 this returns the error "Execution failed". Is this normal Access
behaviour?

BTW DELETE * FROM test_table WHERE id = 3 doesn't work either - same
error.

I would expect this statement to delete nothing and not throw an
error.
It doesn't throw an error from Access, if yours uses a criteria that
would delete something, would it delete without error?

--
Ride Free (but you still have to pay for the petrol)

(replace sithlord with trevor for email)


Reply With Quote
  #2  
Old   
Trevor Best
 
Posts: n/a

Default Re: "Execution failed' Error when deleting no rows - 07-29-2003 , 03:30 PM






On 29 Jul 2003 03:27:07 -0700 in comp.databases.ms-access,
gilbert.george (AT) whoever (DOT) com (Gilbert) wrote:

Quote:
I was just wondering if it was the usual behaviour of an Access DB
when you talk to it via ODBC for C/C++.
Last time I used C there was no ODBC :-)

--
Ride Free (but you still have to pay for the petrol)

(replace sithlord with trevor for email)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.