Why Aren’t We Using Macros?

Although you can certainly use user interface macros to automate applications, macros have certain limitations. For example, as you might have noticed when examining the list of available events in Chapter 19, many events require or return parameters that can be passed to or read from a Visual Basic procedure but not a macro. And as you saw in Chapter 20, and Chapter 21, the debugging facilities for macros are not as robust as for Visual Basic.

When to Use Macros

Use macros in your application in any of the following circumstances:

  • You are working with a web database.

  • Your application consists of only a few forms and reports.

  • You need to build a simple application that is automated using only trusted macro actions so that ...

Get Microsoft® Access® 2010 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.