Delete is allowed in a non-editable subform

dewinter@hbsoftware.nldewinter@hbsoftware.nl Member Posts: 9
What we want is a subform that is editable only after the user presses a button on the form. We have made a very simple form with the sales header as the source table and a subform that holds the corresponding sales lines.

When the user presses the button, set the editable property of the form (not the subform) with :
CurrForm.EDITABLE := TRUE/FALSE;

If the editable property is set to FALSE, you cannot insert,delete or modify the sales header. That is good. You also cannot insert or modify the sales lines in the subform. However... when you press F4 to delete a line, that is still possible. I know there are workarounds for this (some found in the form). Can anyone tell me why the subform inherits some properties but deleting the lines is still allowed ? Is this a bug in Dynamics (we work with 4.0 SP2) ?

Comments

Sign In or Register to comment.