Opening another company in Navision

Is there a way to simulate the CTRL+O function to open another company in Navision by clicking on a button in a form? On certain triggers I want to open another company depending on the data in my globals. Marco de Vries Navision Consultant/Developer ICM-Solutions

How about the CHANGECOMPANY function?

That doesn’t work if you want to open another company, it justs changes the company-filter on one table. Marco de Vries Navision Consultant/Developer ICM-Solutions