Re: Don't want to delete from secondary table
- From: "Jon Jacobs" <JonJacobsAtcomcast.net>
- Date: Thu, 26 May 2005 22:17:40 -0500
Thank you very much. Unfortunately it didn't work. Finally I did it brute-force. In OnBeforeDelete method I delete the
record in the underlying main table and abort the original delete.
Jon
--- Brian Bushay TeamB wrote on 05/25/2005 21:13:35 :
>>
>>I have a TwwDBGrid with a TDBNavigator using a DataSource using the query.
>>
>>If I click the - on the navigator, to delete a record, it tries to delete the Agent record as well as the Loana record.
>>
>>How can I make this only delete the record in the main underlying table (Loans)?
>
>set the Unique Table property
>
> ADODataSet.Properties['Unique Table'].Value:='Loans';
>This property needs to be set after the dataset has opened
>--
>Brian Bushay (TeamB)
>Bbushay@xxxxxxxxx
.
- Follow-Ups:
- Re: Don't want to delete from secondary table
- From: Brian Bushay TeamB
- Re: Don't want to delete from secondary table
- References:
- Don't want to delete from secondary table
- From: Jon Jacobs
- Re: Don't want to delete from secondary table
- From: Brian Bushay TeamB
- Don't want to delete from secondary table
- Prev by Date: Re: LoadFromFile load error!
- Next by Date: Re: D2005 ADO problem: multiple-step OLE DB operation generated errors
- Previous by thread: Re: Don't want to delete from secondary table
- Next by thread: Re: Don't want to delete from secondary table
- Index(es):