Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Access 2019 Bible

You're reading from   Access 2019 Bible The comprehensive tutorial reference

Arrow left icon
Product type Paperback
Published in Dec 2018
Publisher Wiley
ISBN-13 9781119514756
Length 1136 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Michael Alexander Michael Alexander
Author Profile Icon Michael Alexander
Michael Alexander
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

1. Cover FREE CHAPTER
2. Introduction 3. Part I: Access Building Blocks 4. Part II: Understanding Access Tables 5. Part III: Working with Access Queries 6. Part IV: Analyzing Data in Microsoft Access 7. Part V: Working with Access Forms and Reports 8. Part VI: Microsoft Access Programming Fundamentals 9. Part VII: Advanced Access Programming Techniques 10. Index
11. End User License Agreement

CHAPTER 23
Using Access Data Macros

For a long time, macros were considered the poor cousins of VBA statements. Although in many ways VBA and macros were equivalent in their capabilities, macros have always been considered inferior to VBA for handling an application's logic.

The problems with traditional Access macros were considerable:

  • Macros existed as separate database objects, so keeping track of the macro's effect on a particular form was often difficult. Because there was no direct connection between a form (or a report, for that matter) and a macro, it was easy to break the macro by deleting or renaming it. VBA code encapsulated within the form's code module never had this problem.
  • There was no way to trap or handle errors in macros. In versions of Access prior to 2007, macros would simply stop running and display an error dialog box if something unexpected...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image