Close all windows and open a certain form

This comes to mind in the .Initialize procedure:

makesecret
setactivedatabase "MyDatabase" // use the name of your database
openform "Data Entry"