Access - SplashScreen - Close form after content enabled

I did this in the past, but I can't remember how to now.

When the user opens my database, I want a Splash Screen to appear that instructs him/her to enable the content. After the content is enabled, I want to splash screen to close and for main screen to appear.

How do I do this?

Last time I did it with an AutoExec macro. But I just can't remember anything beyond that and my internet searches have not been fruitful.

I am using access 2010.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
That's kind of a Catch-22 - you can't run code unless you've "enabled content", so you really can't do this unless you set your splash form as the Startup form.

So just create the splash form, and set that as your Startup form in Access Options.
MeginAuthor Commented:
Once content has been enabled, I want that form to close.

If that isn't possible, I can add a button. I was just really hoping that it can happen automatically.
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
You can't really detect when Content has been enabled, so there's no way to determine exactly when to close the form.

You can use the Form's Timer event to close the form. Just set  the Timer Interval to a value like 5000 (which is 5 seconds), then add code like this in the Timer event:

DoCmd.Close acForm, "YourSplashForm"

However - the correct way to handle the "Enable Content" matter is to install your application in a folder that's set as a Trusted Location. When your database is originally installed, you should insure that the folder is a TL, and if not, you should inform the user that they must set the folder as a TL.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MeginAuthor Commented:
Okay. I will handle it that way. I don't think there is a way to have it in a trusted location, but I can research that. Our company is kind of strict with the security.

Thank you for the help!
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
I don't think there is a way to have it in a trusted location,
That's the only way to remove the "Enable Content" button in Access 2007 or later. MSFT did away with the other stuff, like macro security, and moved to the Trusted Location method.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.