Re: Delete Record - DAO to ADO
- From: Tom van Stiphout <no.spam.tom7744@xxxxxxx>
- Date: Sat, 31 Mar 2007 09:13:07 -0700
On 30 Mar 2007 22:28:26 -0700, "igendreau"
<ian_gendreau@xxxxxxxxxxxxxxxx> wrote:
You may need to carefully inspect the execution path and exactly what
error occurs. AFAIK, "can't delete it because there are related
records in another table" only occurs under one condition, and that is
a violation of referential integrity.
Create a temporary table not linked to any other table, and your code
will be able to delete records from it.
-Tom.
I know... but some of my code was realllly old and didn't work
anymore, and I have to write a bunch of new stuff for this database,
and I'm writing it in ADO, and I'd like to keep everything
consistent. Here's the crazy thing... It DID work in DAO, and if I
open the query and try deleting the record manually? It deletes
without a problem! So I am led to believe that my relationships
between tables are okay. I thought maybe it had something to do with
the way I was opening my recordset.
My recordset ("rs") opens certain records from a query called
"ShipPull". If I open the ShipPull query manually, I can delete
records, with no problems. But open it via my code, and deletes get
blocked. Any thoughts?
.
- References:
- Delete Record - DAO to ADO
- From: igendreau
- Re: Delete Record - DAO to ADO
- From: Tom van Stiphout
- Re: Delete Record - DAO to ADO
- From: igendreau
- Delete Record - DAO to ADO
- Prev by Date: Re: form manipulation
- Next by Date: Re: report OutputTo with parameter
- Previous by thread: Re: Delete Record - DAO to ADO
- Next by thread: form manipulation
- Index(es):
Relevant Pages
|