O'Reilly logo

Access Cookbook, 2nd Edition by Andy Baron, Paul Litwin, Ken Getz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Automation

No Access application exists in isolation. Because Windows is a multitasking operating system, you will often want to be able to link Access with other Windows applications. Windows provides two mechanisms for communicating between applications: Object Linking and Embedding (OLE), which has been renamed ActiveX, and Dynamic Data Exchange (DDE), an older technology that is supported primarily for backward compatibility. ActiveX is easy for users and application programmers to work with and allows for the creation of custom controls. It also accommodates Automation, making it possible for Access to control various applications using VBA.

This chapter presents examples of using Automation with several Microsoft Office products. You'll also find an example of using DDE to perform a task with the Windows shell. You'll learn to activate an embedded ActiveX object (a sound file), and you'll learn how to control Access itself via Automation. You'll see how to use the statistical, analytical, and financial prowess of the Excel function libraries directly from Access, as well as how to retrieve Word Summary Info for any selected document. Then you'll dig into Automation, creating a form that allows you to alter properties of Microsoft Graph objects on the form. Finally, you'll delve into PowerPoint, which in previous incarnations didn't support Automation, and you'll see an example of automating tasks in Outlook. These examples will show how you can manipulate and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required