>Nadya,
>
>Just set delete to cascade for the relation. Open the database, select Edit Referential Integrity from the Database menu, click on the Rules for Deleting tab, scroll to the Regions and TownRegions relation and set to cascade.
Ok, now the question is: How can I get rid of the generated code? Suppose, I want to generate this code by myself (or using some special utility from Download section)? Seems like once added, I can get rid of it, and I can only delete it from SP code. Is it correct way?
Thanks again.
>>Hi everyone,
>>
>>This is a basic question, but I haven't used triggers before, so here is a problem:
>>
>>I have parent and child tables Regions and TownRegions. On the form I use views RegionsInfo and TownsInfo in buffered mode. I want to delete record in RegionsInfo view and this would automatically delete all records in TownsInfo view for this RegionID. Regions and TownRegions tables are part of Stats database, which is VFP database.
>>
>>Could you please help me here?
>>
>>Thanks in advance.
If it's not broken, fix it until it is.
My Blog