+ Start a Discussion

Trigger Updating Child and Parent Accounts

I am trying to create a trigger that updates the Parent account and any children (all children and parents are account objects). If acc_Field1 = "Yes", then DNM__c should be TRUE in both the child and parent accounts.



If (acc_Field1 = 'Yes')


/*Logic Here To Update All Accounts to DNM__c that are Related to it



In the above code I always hit the limit for DML statements.  I think it is because when I update other accounts the trigger keeps firing in an infinite loop. Does anyone have any ideas?