• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 24. The Finishing Touches > Controlling How Your Application Starts and...

Controlling How Your Application Starts and Runs

Especially if you’re distributing your application for others to use, you probably want your application to automatically start when the user opens your database. As noted in the previous section, you should design switchboard forms to help the user navigate to the various parts of your application. You should also set properties and write code to ensure that your user can cleanly exit your application.

Setting Startup Properties for Your Database

At this point, you know how to build all the pieces you need to fully implement your database application. But what if you want your application to start automatically when you open your database? One way to do that is to create a macro named Autoexec—Microsoft Access always runs this macro if it exists when you open the database (unless you hold down the Shift key when you open the database). However, a better way to start your application is to specify an opening form in the startup properties for the database. You can set these properties by switching to the Database window and then choosing Startup from the Tools menu. Access opens the Startup dialog box, as shown in Figure 24-25.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint