start database with another form

J

Jimbo

I have a database that has the main form as the start page. Can I create an
icon that will point to another form in this database as the start page. IE;
employee names form. I don't want the database to change the startup form.
Are there special switches I can use in the icon?

Thanks!
 
S

Salah Omer via AccessMonster.com

I have just tried it,
Create a shortcut to the second from
Place the following command in (On Open) event of the second form

DoCmd.Close acForm, "theStartupForm"

It works
Note:
** It will close the startup form when ever you open it.
** No error will be generated if the startup form was not opened
 
J

John Vinson

I have a database that has the main form as the start page. Can I create an
icon that will point to another form in this database as the start page. IE;
employee names form. I don't want the database to change the startup form.
Are there special switches I can use in the icon?

Thanks!

You can use the /X=macroname runtime switch to open the database
executing a specific macro (which could itself open a form or run
code).

John W. Vinson[MVP]
 
Top