Master Detail Delete [message #78582] |
Mon, 04 March 2002 11:14 |
Tyler
Messages: 123 Registered: January 2002
|
Senior Member |
|
|
To delete a child record when trying to delete details in a Master Detail Rel., I get error, cannot delete master when child records exist. The thing is, I'm not trying to delete the master? DELETE_RECORD; is the only code behinde delete button. Do you have to put go_block in front of DELETE_RECORD;, even if the cursor is in the detail block where you want to delete?
Tyler
|
|
|
Re: Master Detail Delete [message #78596 is a reply to message #78582] |
Tue, 05 March 2002 00:35 |
pratap kumar tripathy
Messages: 660 Registered: January 2002
|
Senior Member |
|
|
is your detail block is the master of another block ?
have u created the relation in right direction?
e.g. dept--> emp (is correct)
emp --> dept (is incorrect)
does "go_block(..); delete_record;" solves ur problem ?
|
|
|