Splash Screen

  • Thread starter Thread starter Chris
  • Start date Start date
To create a splash screen, just save a .bmp file with the same name as your
database. Not the extension, of course, just the name. Be sure to put the
..bmp file in the same folder as your database. As far as getting it to last
specifically three seconds, you can find answers to that in past posts.
Actually, you can even look in my recent posts for a thread titled "Make the
splash page last longer." I believe one responder put links in that could
help you.

As far as getting a specific form to come up on startup, this can be done by
clicking "Tools" then "Startup." One of the options will be Display
form/page. Select the form you wish to display on startup. You can also
select certain things to show or not show up on startup, such as the database
with the list of tables, queries, etc. Don't worry if you take something away
you did not want to take away. All you will have to do is hold down shift
when you open the database and it will open as though you did not change the
startup settings. You can then go into the startup settings and put back
whatever you wish you hadn't removed.

--
Have a nice day!

~Paul
Express Scripts,
Charting the future of pharmacy

~~~~~~
| |
|c--OD
| _)
| |
|-. |
/ `-# /A
/ /_|..`#.J/
||LJ `m''
ptaylor
 
Private Sub Form_Timer()
DoCmd.OpenForm "frmMainMenu"
DoCmd.Close acForm, "frmSplashScreen"
End Sub
 
In the Splash form's OnTimer event, place this code...

Private Sub Form_Timer()
DoCmd.OpenForm "frmYourFirstForm"
DoCmd.Close acForm, "frmSplashScreen"
End Sub

Set TimerInterval to 3000

I recommend using a Linked Splash screen image rather than Embedded... your
mdb size will greatly increase if you use Embedded. If you move your mdb,
you'll need to move the splash file with it.
Also, I name the file Splash.jpg, so you can occaisionally change splash
images by calling a new image in your mdb directory... Splash.jpg
 
One method would be to create your form, then have it open first by calling
it with a macro named "autoexec". Use the OnTimer event of your splash form
to open other form(s) and close itself; set the Timer Interval to 3000 to
have the OnTimer event fire after 3 seconds and run your code.
-Ed
 
Back
Top