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

Hour 13. Creating Macros > Creating an AutoExec Macro

Creating an AutoExec Macro

In versions of Access prior to Access 2003, the only way to have something happen when the user opens a database is to use an AutoExec macro. With Access 2003, you can use either an AutoExec macro or Startup options to determine what occurs when the user opens a database. Using an AutoExec macro to launch the processing of an application is certainly still a viable option.

Creating an AutoExec macro is quite simple; AutoExec is just a normal macro saved with the name AutoExec. An AutoExec macro usually performs tasks such as hiding or minimizing the Database window and opening a Startup form or switchboard. The macro shown in Figure 13.22 hides the Database window, displays a welcome message, and opens the frmClients form.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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