Integrating Excel and Access

Book description

In a corporate setting, the Microsoft Office Suite is an invaluable set of applications. One of Offices' biggest advantages is that its applications can work together to share information, produce reports, and so on. The problem is, there isn't much documentation on their cross-usage. Until now.

Introducing Integrating Excel and Access, the unique reference that shows you how to combine the strengths of Microsoft Excel with those of Microsoft Access. In particular, the book explains how the powerful analysis tools of Excel can work in concert with the structured storage and more powerful querying of Access. The results that these two applications can produce together are virtually impossible to achieve with one program separately.

But the book isn't just limited to Excel and Access. There's also a chapter on SQL Server, as well as one dedicated to integrating with other Microsoft Office applications. In no time, you'll discover how to:

  • Utilize the built in features of Access and Excel to access data
  • Use VBA within Access or Excel to access data
  • Build connection strings using ADO and DAO
  • Automate Excel reports including formatting, functions, and page setup
  • Write complex functions and queries with VBA
  • Write simple and advanced queries with the Access GUI
  • Produce pivot tables and charts with your data

With Integrating Excel and Access, you can crunch and visualize data like never before. It's the ideal guide for anyone who uses Microsoft Office to handle data.

Publisher resources

View/Submit Errata

Table of contents

  1. Integrating Excel and Access
    1. SPECIAL OFFER: Upgrade this ebook with O’Reilly
    2. A Note Regarding Supplemental Files
    3. Preface
      1. Who Should Read This Book
      2. What's in This Book
      3. Conventions in This Book
      4. References in VBA
      5. We'd Like Your Feedback!
      6. Safari Enabled
      7. Acknowledgments
    4. 1. Introduction to Access/Excel Integration
      1. 1.1. Communications Between Excel and Access
      2. 1.2. Automation Objects
      3. 1.3. ADO and DAO
      4. 1.4. Tackling Projects
      5. 1.5. Designing Applications
      6. 1.6. Next Steps
    5. 2. Using the Excel User Interface
      1. 2.1. Using External Data
      2. 2.2. Using Database Queries
      3. 2.3. Returning a PivotTable to Excel
      4. 2.4. Using Microsoft Query to Gather Data
      5. 2.5. Keeping the Query Updated with VBA
      6. 2.6. Next Steps
    6. 3. Data Access from Excel VBA
      1. 3.1. Writing a Reusable Module for Data Access
      2. 3.2. Choosing Between ADO and DAO
      3. 3.3. CopyFromRecordset Versus Looping
      4. 3.4. Formatting Techniques
      5. 3.5. Formatting Techniques Example
        1. 3.5.1. Getting to the Data
      6. 3.6. Summary
    7. 4. Integration from the Access Interface
      1. 4.1. Importing Excel Data
        1. 4.1.1. Using Excel to Ease Importing
      2. 4.2. Linking Excel Data
        1. 4.2.1. Combining Linking and Importing
      3. 4.3. Using Export and Analyzing It with Microsoft Office Excel
      4. 4.4. Using Raw Exported Access Data in Excel
      5. 4.5. Exporting an Access Report to Excel
      6. 4.6. Next Steps
    8. 5. Using Access VBA to Automate Excel
      1. 5.1. High-Level Excel Objects
        1. 5.1.1. The Application Object
        2. 5.1.2. The Workbook Object
        3. 5.1.3. The Worksheet Object
      2. 5.2. Other Excel Objects
        1. 5.2.1. The Range Property and Object
        2. 5.2.2. The Cells Property
        3. 5.2.3. Using Offset
      3. 5.3. Writing and Using Queries in VBA
        1. 5.3.1. Referring to Queries
        2. 5.3.2. Querying Data with Form Input
        3. 5.3.3. Creating Crosstab Queries
        4. 5.3.4. Generating a Created Crosstab Query
      4. 5.4. Referencing Sheets, Ranges, and Cells
        1. 5.4.1. Working with Sheets
        2. 5.4.2. Working with Ranges
        3. 5.4.3. Working with Cells
      5. 5.5. Writing Excel Worksheet Functions from Access VBA
      6. 5.6. Chapter Summary and Next Steps
    9. 6. Using Excel Charts and Pivot Tables with Access Data
      1. 6.1. Automating Pivot Tables
      2. 6.2. Building a Regular Chart
      3. 6.3. Using an Array Formula
      4. 6.4. Graphing Variables in a Model
    10. 7. Leveraging SQL Server Data with Microsoft Office
      1. 7.1. Pass-Through Queries Versus Linked Tables
      2. 7.2. Creating a Connection Using VBA
      3. 7.3. Building the Connection in Access
      4. 7.4. Pulling Data in with Excel Alone
      5. 7.5. Using DTS to Automate Excel
      6. 7.6. Crosstab Queries on SQL Server
      7. 7.7. SQL Server Summary
    11. 8. Advanced Excel Reporting Techniques
      1. 8.1. Writing Flexible Formulas
      2. 8.2. Changing Data in an Existing Report
      3. 8.3. Creating a Report from Scratch
      4. 8.4. Using an Access Table for Reporting
      5. 8.5. Putting It Together
    12. 9. Using Access and Excel Data in Other Applications
      1. 9.1. Automating Microsoft Word
      2. 9.2. Getting Information from Microsoft Word
      3. 9.3. Automating PowerPoint
      4. 9.4. Using Data in MapPoint
      5. 9.5. Summary
    13. 10. Creating Form Functionality in Excel
      1. 10.1. Working with the UserForm
      2. 10.2. Accepting Parameters
      3. 10.3. Other Useful Items
      4. 10.4. Next Steps
    14. 11. Building Graphical User Interfaces
      1. 11.1. Setting Up a Form
      2. 11.2. Using Events
        1. 11.2.1. OnCurrent
        2. 11.2.2. BeforeUpdate/AfterUpdate
        3. 11.2.3. OnChange
        4. 11.2.4. OnDirty
        5. 11.2.5. OnEnter/OnExit
        6. 11.2.6. OnClick/OnDoubleClick
        7. 11.2.7. OnOpen
        8. 11.2.8. OnTimer
      3. 11.3. Using Data
      4. 11.4. Adding Buttons
      5. 11.5. Tab Order
      6. 11.6. Next Steps
    15. 12. Tackling an Integration Project
      1. 12.1. The Project Description
      2. 12.2. Main Menu
      3. 12.3. Customer Information
      4. 12.4. Billing and Payment Information
      5. 12.5. Contact History
      6. 12.6. Services and Charges
      7. 12.7. Expense Entry
      8. 12.8. Invoices
      9. 12.9. Letters
      10. 12.10. Income Statements
      11. 12.11. Project Summary
    16. A. Excel Object Model
      1. A.1. Application Object
        1. A.1.1. Application Object Properties
          1. A.1.1.1. ActiveCell
          2. A.1.1.2. ActiveChart
          3. A.1.1.3. ActivePrinter
          4. A.1.1.4. ActiveSheet
          5. A.1.1.5. ActiveWorkbook
          6. A.1.1.6. AddIns
          7. A.1.1.7. CalculateBeforeSave
          8. A.1.1.8. CalculateState
          9. A.1.1.9. Caption
          10. A.1.1.10. DisplayAlerts
          11. A.1.1.11. DisplayFullScreen
          12. A.1.1.12. EnableEvents
          13. A.1.1.13. FileSearch
          14. A.1.1.14. FileDialog
          15. A.1.1.15. Selection
          16. A.1.1.16. Sheets
          17. A.1.1.17. ShowWindowsInTaskbar
          18. A.1.1.18. UserName
          19. A.1.1.19. Visible
          20. A.1.1.20. Workbooks
          21. A.1.1.21. WorksheetFunction
          22. A.1.1.22. Worksheets
        2. A.1.2. Application Object Methods
          1. A.1.2.1. Calculate, CalculateFull, CalculateFullRebuild
          2. A.1.2.2. ConvertFormula
          3. A.1.2.3. InchesToPoints
          4. A.1.2.4. Quit
      2. A.2. Workbook and Worksheet Objects
        1. A.2.1. Workbook and Worksheet Properties
          1. A.2.1.1. Range Objects
          2. A.2.1.2. Sheet Objects
          3. A.2.1.3. QueryTables Property
          4. A.2.1.4. Name Property
          5. A.2.1.5. Names Property
        2. A.2.2. Workbook and Worksheet Methods
          1. A.2.2.1. PrintOut Method
          2. A.2.2.2. Copy, Delete, Paste, and PasteSpecial Methods
          3. A.2.2.3. Protect Method
      3. A.3. Excel Object Model Summary
    17. B. VBA Basics
      1. B.1. Dim and Set Statements
      2. B.2. Loops
        1. B.2.1. For...Next Loop
        2. B.2.2. For Each...Next Loop
        3. B.2.3. While Loop
      3. B.3. With Statement
      4. B.4. Goto Statement
      5. B.5. Select Case Statement
      6. B.6. If Statements
      7. B.7. VBA Summary
    18. About the Author
    19. Colophon
    20. SPECIAL OFFER: Upgrade this ebook with O’Reilly

Product information

  • Title: Integrating Excel and Access
  • Author(s): Michael Schmalz
  • Release date: November 2005
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9780596553319