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

Chapter 11. What Are Macros and When Do ... > Practical Examples: Adding an AutoEx...

Practical Examples: Adding an AutoExec Macro to the Time and Billing Application

In Chapter 13, you will learn how to add a switchboard to your application. In Chapter 37, you will learn how to use Startup options to designate a Startup form for your application. For now, you'll build an AutoExec macro that acts as the launching point for your application. The macro will start the application by hiding the Database window, displaying a message to the user, and opening the frmClients form.

Build the macro shown in Figure 11.22. Start by opening a new macro in Design view. Set the first action of the macro to RunCommand, then set the Command argument to WindowHide. This will hide the Database window when it's run. Set the second action of the macro to MsgBox, and set the Message to Welcome to the Client Billing Application. Set Beep to No, the Type to Information, and the Title to Welcome. The final action of the macro opens the frmClients form. Set the action to OpenForm, and set the FormName to frmClients. Leave the rest of the arguments at their default values.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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