veyant
22nd July 2004, 06:23
Hi ,
I am facing a very strange problem. pls advice.
I created a main session having a subsession for recording lines and data is saved in two different tables (Header & Lines Table) with Order # as link field.
it is a type main table session. Now if i delete record from header form and lines are presnt for that order it gives error.
so lines are required to be deleted first. So i click on lines button and lines subsession opens and if i delete records from there. It is fine. Now when i come back to the main session and try to delete the Header it gives "Error 206 - Record is not locked" and record is deleted and session terminates automatically. Now if i rerun the same session and select the same order and press delete button. it deletes the record with any error.
Please advice why it is giving error in first go when i deleted the lines and then i try to delete header.
However, i have not written any code for deleting in both sessions (header & lines). as it is session with Main table so it is executing execute(mark.delete) itself.
thanks
Sandy
I am facing a very strange problem. pls advice.
I created a main session having a subsession for recording lines and data is saved in two different tables (Header & Lines Table) with Order # as link field.
it is a type main table session. Now if i delete record from header form and lines are presnt for that order it gives error.
so lines are required to be deleted first. So i click on lines button and lines subsession opens and if i delete records from there. It is fine. Now when i come back to the main session and try to delete the Header it gives "Error 206 - Record is not locked" and record is deleted and session terminates automatically. Now if i rerun the same session and select the same order and press delete button. it deletes the record with any error.
Please advice why it is giving error in first go when i deleted the lines and then i try to delete header.
However, i have not written any code for deleting in both sessions (header & lines). as it is session with Main table so it is executing execute(mark.delete) itself.
thanks
Sandy