|
|
|
|
|
|
Access
|
Start Up Splash Screen
|
|
Ease of Use
|
Easy
|
Version tested with
|
2000
|
Submitted by:
|
Brandtrock
|
Description:
|
This code illustrates how to display a startup form when a database launches. It is dismissed after a preset amount of time passes.
|
Discussion:
|
Many end users get anxious while a large file loads. One way to compensate for this is to display a splash screen to occupy the user's time. No worrying about the end user clicking three or four versions of the application or using the three finger salute because "it just froze". A simple little graphic for the user to watch reassures them that the computer is actually doing something.
|
Code:
|
instructions for use
|
Option Compare Database
Option Explicit
Private Sub Form_Timer()
DoCmd.Close acForm, "frmStartUp"
End Sub
|
How to use:
|
- The example attached launches a splash screen and dismisses it after a brief time.
- In practical use, another form or a table would be displayed after the initial screen is removed.
- Assuming that a second form has been created, proceed as follows.
- The code above has the appropriate code commented out to achieve the display of a second form.
- Remove the appostrophe at the far left of teh lines Private Sub Form_Close() through End Sub.
- Replace the words Your_Form_Name_Here with the actual name of the form you wish to display.
- Save the database.
- Double click on the StartUp Form.
|
Test the code:
|
- Launch the database in the example file.
- Watch the form display.
- Watch the form disappear.
- Click Forms on the menu at the left of the screen.
- Highlight StartUp
- Click on the Design Mode icon (looks like a triangle and a ruler).
- Right click the image.
- Select Properties.
- Change the path to the image.
- Change the path for the hyperlink.
- Save the form.
- Launch the startup form by double clickinkg it.
- Watch your new image display.
- Watch your new image disappear.
- Repeat as needed to satisfy your curiosity.
|
Sample File:
|
VBAX Start Up Form.zip 19.86KB
|
Approved by mdmackillop
|
This entry has been viewed 564 times.
|
|