O'Reilly logo

Access™ 2007 VBA Programmer's Reference by Armen Stein, Geoffrey Griffith, Rob Cooper, Teresa Hennig

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

M.7. Use a Splash Screen

You can display a custom logo (instead of the Access logo) while your Access program loads. Name a bitmap the same name as your database file (YourAppName.tif) and put it in the same folder as the database (.mdb or .accdb). The bitmap image will be displayed instead of the Access startup logo when you launch your application.

If you just want to remove the Access startup logo, you can create a bitmap image with just one pixel. Here's how: start Paint, select Image Attributes, specify Width = 1 and Height = 1, make sure Pixels is selected in the Units pane, and save the image. It doesn't really matter what color the pixel is because it will hardly be noticeable.

Now, with a fast computer, you probably won't notice your custom logo (or pixel) because it will only be displayed for a fraction of a second. So, you need another splash screen inside your application. The first screen of your application should always be a splash screen that shows at least the application name, client's company name, version number, and your company name. This single feature says, "This is a professional application." You could use a logo (either yours or your client's) and some basic application information, as shown in Figure M-13.

Example code for displaying the Splash screen for a specified number of seconds (3 or 4 seconds seems like a good duration) can be found in the Microsoft ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required