Splash Screen

  • Thread starter Thread starter Kay
  • Start date Start date
K

Kay

Hi

Has anyone any ideas how to create a splash screen in access so when a
user opens the database the a form is displayed for a few seconds then
dissappear.

Any help is much appreciated
 
Hi,

Create a form that you want displayed as splash screen. Use the timer
function of the form to turn it off and call the next form.

Then on the Tools menu, click Startup and select the splash form. Everytime
you start the databse, the splash screen (form) will be displyed. You can
remove the form controls so that it appears as an image (splash screen) and
trasfers control to the next required form.

Regards,
 
Kay said:
Hi

Has anyone any ideas how to create a splash screen in access so when a
user opens the database the a form is displayed for a few seconds then
dissappear.

There's supposed to be a Timer control available but I can't find it in Access 2003.
If you have it, you can create a form for your splash screen then add the
hidden timer control to it. Set the number of milliseconds to wait before it fires.
When the timer expires, have it run a line of code that closes the form.

Tom Lake
 
Create whatever form you like, I would suggest calling it frmSplash. In the
database window, choose Tools/Starup and select frmSplash under Display
Form/Page. For frmSplash go to its design view, open the properties window,
on the Event tab go to the bottom and look for Timer Interval. This value is
in milliseconds so if you want the form to appear for 2 seconds, set this to
2000. Fill in the value you want here. You will then see the OnTimer event
above. Add code to this event which will say open the next form you want to
open or whatever you want to do such as:

DoCmd.Close
DoCmd.OpenForm "frmWhatever"

HTH

JR
 
Tom Lake said:
There's supposed to be a Timer control available but I can't find it in Access 2003.
If you have it, you can create a form for your splash screen then add the
hidden timer control to it. Set the number of milliseconds to wait before it fires.
When the timer expires, have it run a line of code that closes the form.

Unlike VB, forms in Access have a built-in Timer. You don't need to use a
control.

In the form's Load event, set the form's TimerInterval:

Sub Form_Load()
Me.TimerInterval = 3000
End Sub

(TimerInterval is thousandths of a second, so 3000 is 3 seconds)

Then, put logic in the form's Timer event to close the form:

Sub Form_Timer()
DoCmd.Close
End Sub
 
Thanks Tom

Im using access 2000. I have set a timer on my form before and it does
have a timer event.
Thanks Il mess about with it, try getting it to work
 
Unlike VB, forms in Access have a built-in Timer. You don't need to use a

Thanks! I've been using Access since ver 1.0 and never created a splash screen nor
used a timer. Now ALL my projects are going to have a splash screen. 8^)
You've created a monster!

Tom Lake
 
Thanks Doug, thats very helpful

Just on thing im not sure about. I can get the form on a timer so that
it closes itslef after 3secs
but where can I add the code so that it opens when the database is
first loaded up.

Any ideas
 
Guys thanks for the help. Managed to get it working in a matter of 5
minutes if that.
I done the little bit of code that doug gave. Then went to
tools>startup and it gives you an option to open a form at start up

Thanks guys
 
Back
Top