Re: Access database not updated when records are deleted
From: Anonymouse (Anonymouse_at_discussions.microsoft.com)
Date: 11/05/04
- Next message: HHoulston: "A severe error occurred on the current command"
- Previous message: Evan Camilleri: "Re: Connection Exection frim Windows SERVICE"
- In reply to: Miha Markic [MVP C#]: "Re: Access database not updated when records are deleted"
- Next in thread: Anonymouse: "Re: Access database not updated when records are deleted"
- Reply: Anonymouse: "Re: Access database not updated when records are deleted"
- Reply: Anonymouse: "Re: Access database not updated when records are deleted"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 5 Nov 2004 09:54:14 -0800
I reversed the order as Grzegorz suggested, but the record I supposedly
deleted still wouldn't stay dead. I even tried commenting out AcceptChanges -
same result. The database is definitely not read-only; the code for adding
and editing a record works. I used Debug to display the RowState for that
row, and it returned Deleted - as it should.
What, other than the usual Microsoft weirdness, is going on?
(sigh) I'll do some more research...as if I haven't done enough research
already in the course of learning VB.NET and ADO.NET. But I WILL crack this.
I do not allow code to defy me, I'm too stubborn for that. This app WILL do
what I want it to. It WILL concede my mastery. It will comply. Resistance is
futile. :)
Thanks, guys!
"Miha Markic [MVP C#]" wrote:
> Hi,
>
> Oooo, this is a classic one.
> You don't need and you shouldn't call AcceptChanges (before Update) in your
> case.
- Next message: HHoulston: "A severe error occurred on the current command"
- Previous message: Evan Camilleri: "Re: Connection Exection frim Windows SERVICE"
- In reply to: Miha Markic [MVP C#]: "Re: Access database not updated when records are deleted"
- Next in thread: Anonymouse: "Re: Access database not updated when records are deleted"
- Reply: Anonymouse: "Re: Access database not updated when records are deleted"
- Reply: Anonymouse: "Re: Access database not updated when records are deleted"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|