Error to add lines from Trigger of the form to Subform-lines

gonzy1981gonzy1981 Member Posts: 156
Hi:
I've a Form-card with subform-lines, i want that in the trigger of the Form, OnAfterGetRecord, to add some lines to the subform, in some cases.
When i try Insert lines, there is a error, this is the error: "You cannot make any changes in the database until a transaction has been started".
I want to add some lines in the subForm when i change of the record and i think that the best place is it, but i cannot.
Do you know how to do it??Or another trigger where i cant to do it??
Thanks

Comments

  • garakgarak Member Posts: 3,263
    gonzy1981 wrote:
    ..... I want to add some lines in the subForm when i change of the record.......

    And why do you not use the modify trigger of the table?
    Do you make it right, it works too!
Sign In or Register to comment.