I have two forms: Form A and Form B. These forms should vary in appearance, but they have a lot of logic. The problem is that this logic is tied to appearance (push-button verification, triggering of events, etc.). For example, I have a name field, and when the save button is clicked, I need to fire an event that forces the parent form to check the record name to avoid duplication. Both forms need this logic, but their save buttons are in different places, and the tooltip displayed when an error occurs should also be displayed in another place. This is just one example, but does anyone know how I can avoid copying and pasting code here? Perhaps I am missing something obvious ...
Ed S. source share