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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top