There are two ways of opening Microsoft
Dynamics GP windows in VBA:
Use the Openmethod to open windows that initially appear
empty, with no existing record displayed.
Programmatically “click” a navigational
control to open windows that display existing information, such as
lookup windows. The application code attached to a navigational
control (such as the lookup button) prepares the window to display
existing data correctly. “Clicking” these controls ensures that
this processing occurs.
If you use the Open
method in your VBA code to open a window, but the
window cannot be opened, a VBA exception will be thrown. You can
handle this exception using the On
Error statement in VBA.