The Changed event always occurs when a field’s value changes.
• field – A window field object.
The Changed event will always occur in the following instances:
Use the Changed event to execute VBA code for window fields that Microsoft Dynamics GP updates. This occurs most often when the accounting system retrieves a record from a table, then displays the record’s contents in the window. The AfterUserChanged and BeforeUserChanged events won’t occur for a field in this case, since the accounting system, not the user, changes the contents of the field.
Exercise caution when using the Changed event. In many cases, Microsoft Dynamics GP causes the Changed event to occur numerous times for the same field even though the value of the field may not visibly change. This will execute the associated VBA event procedure each time the event occurs.