How to change Startup form by code ?

  • Thread starter Thread starter Albert
  • Start date Start date
If you have already set the startup form, you can change it by:

CurrentDb.Properties("StartupForm")="Form1"

The Help file is misleading here. It says you have to set it once in the
Startup Dialog before you can do this or you have to add this property using
code before you can do this. However, just using it once doesn't get the job
done, the property must currently be set. If you've set it back to None
(since you're setting it back, it has been set once), the property gets lost
and you'll have to also add it through code.
 
Back
Top