Home » Developer & Programmer » Forms » Master Detail Delete
Master Detail Delete [message #78582] Mon, 04 March 2002 11:14 Go to next message
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?

Re: Master Detail Delete [message #78596 is a reply to message #78582] Tue, 05 March 2002 00:35 Go to previous message
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 ?
Previous Topic: find duplicates before commiting the records
Next Topic: Binary tree or Trie
Goto Forum:

Current Time: Thu Dec 02 13:50:02 CST 2021