Creating an On Start macro

Access web apps can contain a special type of macro called an On Start macro. Access Services runs the On Start macro each time you navigate to the web app or when you refresh your browser window while viewing your web app. You cannot run the On Start macro from a separate macro using the RunMacro action; Access Services controls when it runs. The On Start macro is useful when, for example, you want to define variables each time a user navigates to your web app. Variables defined in views last until you close your browser window or set the variable to a different value.

To create an On Start macro, switch back to Access, select the App Home View object tab, and then click the Advanced button in the Create group on the ...

Get Microsoft Access 2013 Inside Out now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.