• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 523
  • Last Modified:

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.
0
Megin
Asked:
Megin
  • 3
  • 2
1 Solution
 
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.
0
 
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.
0
 
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.
0
 
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!
0
 
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now