If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Delete a record on a Join rs with ADO

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-03, 17:06
Bills Bills is offline
Registered User
 
Join Date: Nov 2003
Posts: 5
Question Delete a record on a Join rs with ADO

I have to edit or delete a record of the side "one" of a join.

DAO simply edits or deletes the record of the main table. With ADO, i get an error ("no information for key column"). Can I set an option, or something like that, to let ADO knows the main table ?

The only workaround I found is to find that record on another recordset (just the main table); edit or delete it; refresh the join recordset. I'd rather do on the join recordset itself.

Many thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 11-23-03, 22:15
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Which database are you using ? What is your original query that creates the recordset ?
Reply With Quote
  #3 (permalink)  
Old 11-24-03, 03:54
Bills Bills is offline
Registered User
 
Join Date: Nov 2003
Posts: 5
I have this problem with Access 2000 and with SQL Server. I'm pretty sure it's an option to set on the ADO recordset...

The join is a classical inner join between two tables (main/detail).

Thanks...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On