Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Access 2019 Bible

You're reading from  Access 2019 Bible

Product type Book
Published in Dec 2018
Publisher Wiley
ISBN-13 9781119514756
Pages 1136 pages
Edition 1st Edition
Languages
Author (1):
Michael Alexander Michael Alexander
Profile icon Michael Alexander
Toc

Table of Contents (11) Chapters close

1. Cover
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 $15.99/month. Cancel anytime}