SetEventServerObject (EventServer As Object)

Application object

Informs FORMS that there is an ActiveX automation object that may supply event handlers. When an event is fired and there is an event server object defined by SetEventServerObject, the server object is queried for a method with the same name as the event. If such a method is found, it is called with the parameters defined for the event.

Note

If event handlers are defined both internally and in an event server object, both are used: first the internal one and then the one in the event server object.

Although FORMS creates a method called OnFormComplete for internal VBA, the method should be called FormComplete when used in an external event server object.

The Application object