1. Trang chủ
  2. » Công Nghệ Thông Tin

Wrox Access 2007 Vba Programmers Reference docx

1.2K 1.1K 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Cấu trúc

  • Access 2007 VBA Programmer’s Reference

    • About the Authors

    • Credits

    • Acknowledgments

    • Foreword

    • Contents

    • Introduction

      • What Is VBA?

      • What Does This Book Cover?

      • How to Use This Book

      • Other Access/VBA Sources

      • Conventions Used in This Book

      • Source Code

      • Errata

      • p2p.wrox.com

    • Chapter 1: Introduction to Microsoft Access 2007

      • A Brief History of Access

      • Is Access the Only Database System?

      • Developing Databases Without VBA Code

      • Summary

    • Chapter 2: Access, VBA, and Macros

      • VBA in Access

      • VBA versus Macros in Access

      • Summary

    • Chapter 3: New Features in Access 2007

      • Who Benefits

      • New Look

      • Development Environment

      • Forms

      • Reports

      • Embedded Macros

      • Access Data Engine

      • Integration with SharePoint

      • External Data Sources

      • Security

      • Conver t with Confidence

      • ADE and Creating Runtime Files

      • What’s Gone or Deprecated

      • Summary

    • Chapter 4: Using the VBA Editor

      • Anatomy of the VBA Editor

      • Using the Object Browser

      • Testing and Debugging VBA Code

      • Summary

    • Chapter 5 VBA Basics

      • VBA Objects

      • Variables and VBA Syntax

      • Other VBA Structures

      • Summary

    • Chapter 6: Using DAO to Access Data

      • Data Access Objects

      • Why Use DAO?

      • New Features in DAO

      • Referring to DAO Objects

      • The DBEngine Object

      • The Databases Collection

      • DAO Object Properties

      • Creating Schema Objects with DAO

      • Database Encryption with DAO

      • Managing Access ( JET) Security with DAO

      • Data Access with DAO

      • Append Only Fields

      • Summary

    • Chapter 7: Using ADO to Access Data

      • Ambiguous References

      • Referring to ADO Objects

      • Connecting to a Data Source

      • Rolling Your Own Connection String

      • Data Access with ADO

      • Creating ADO Recordsets

      • Creating Schema Recordsets

      • Using ADO Events

      • Testing the State Proper ty

      • Creating Schema Objects with ADOX

      • Managing Security with ADO

      • Summary

    • Chapter 8: Executing VBA

      • When Events Fire

      • VBA Procedures

      • Evaluating Expressions in VBA

      • Using Recordsets

      • Using Multiple Recordsets

      • Using VBA in Forms and Reports

      • Debugging VBA

      • Investigating Variables

      • Common VBA Techniques

      • String Concatenation Techniques

      • Summary

    • Chapter 9: VBA Error Handling

      • Why Use Error Handling?

      • Two Kinds of Errors: Unexpected and Expected

      • Basic Error Handling

      • Cleaning Up After an Error

      • More on Absorbing Expected Errors

      • Issues in Error Handling

      • Summary

    • Chapter 10: Using VBA to Enhance Forms

      • VBA Basics

      • Creating Forms the 2007 Way

      • Summary

    • Chapter 11: Enhancing Reports with VBA

      • Introduction to Repor ts

      • Creating a Report

      • Working with VBA in Repor ts

      • Important Report Events and Properties

      • Report Proper ties

      • Working with Char ts

      • Common Report Requests

      • Layout View

      • Report View

      • Summary

    • Chapter 12: Customizing the Ribbon

      • Ribbon Overview

      • Custom Menu Bars and Toolbars

      • Ribbon Customization

      • Saving a Custom Ribbon

      • Specifying the Custom Ribbon

      • Creating an Integrated Ribbon

      • Creating a Ribbon from Scratch

      • Customizing the Office Menu

      • Customizing the Quick Access Toolbar

      • More Ribbon Tips

      • Summary

    • Chapter 13: Creating Classes in VBA

      • A Touch of Class

      • Why Use Classes?

      • Creating a Class Module

      • Naming Objects

      • Using Class Events

      • Forms as Objects

      • Variable Scope and Lifetime

      • The Me Property

      • Creating a Clone Method

      • Creating and Using Collection Classes

      • The Three Pillars

      • Summary

    • Chapter 14: Extending VBA with APIs

      • Introducing the Win32 API

      • Introducing Linking

      • Linking Libraries in Access 2007

      • Understanding C Parameters

      • Err. LastDLLError

      • Distributing Applications That Reference Type Libraries and Custom DLLs

      • Summary

    • Chapter 15: SQL and VBA

      • Working with SQL Strings in VBA

      • Using SQL When Opening Forms and Reports

      • Using SQL to Enhance Forms

      • The ReplaceOrderByClause and ReplaceWhereClause Functions

      • Summary

    • Chapter 16: Working with Office Applications

      • Sharing Information Is a Two-Way Street

      • Working with Outlook

      • Sending Information from Access to Excel

      • Exchanging Data with Microsoft Word

      • Sending Data to PowerPoint

      • Pulling Data from Access

      • Summary

    • Chapter 17: Working with SharePoint

      • Overview

      • Access Features on SharePoint

      • SharePoint Features in Access

      • Summary

    • Chapter 18: Database Security

      • Security for the ACCDB File Format

      • Security for the MDB File Format

      • Summary

    • Chapter 19: Understanding Client-Server Development with VBA

      • Client-Ser ver Applications

      • Choosing the Correct File Format

      • Controlling the Logon Process

      • Binding ADODB Recordsets

      • Using Unbound Forms

      • Summary

    • Chapter 20: Working with the Win32 Registry

      • About the Registr y

      • Using the Built-In VBA Registr y Functions

      • Using the Win32 Registry APIs

      • Summary

    • Chapter 21: Using the ADE Tools

      • The Redistributable Access Runtime

      • The Package Solution Wizard

      • Save as Template

      • Source Code Control Support

      • Summary

    • Chapter 22: Protecting Yourself with Access 2007 Security

      • The Office Trust Center

      • Disabled Mode

      • Digital Signatures and Cer tificates

      • Access Database Engine Expression Service

      • Summary

    • Appendix A: Upgrading to Access 2007

      • To Conver t or To Enable

      • Installing Multiple Versions of Access on One PC

      • Changing File Formats

      • Converting a Secured Database

      • Converting a Replicated Database

      • Enabling a Database

    • Appendix B: References for Projects

      • Types of References

      • Adding References to Your Projects

      • Building Code Libraries

      • Resources

    • Appendix C: Calling Managed Code

      • A Quick Overview of Managed Code

      • Writing Managed Code

      • Using Managed Code in Access

    • Appendix D: DAO Object Method and Property Descriptions

      • DAO-Supported Objects

      • Undocumented Tools and Resources

      • DAO Field Types

      • OpenRecordset Constants

    • Appendix E: ADO Object Model Reference

      • Connection Object

      • Errors Collection and Error Object

      • Properties Collection and Proper ty Object

      • Command Object

      • Parameters Collection

      • Recordset Object

      • Fields Collection

      • Field Object

      • Record Object

      • Stream Object

    • Appendix F: ADO Object Argument Enumeration Information

      • Connection. Execute Method Options

      • Recordset. Open Method Options

      • Connection. OpenSchema Method Options

      • Group or User SetPermissions Method Options

    • Appendix G: The Access Object Model

      • The Application Object

      • AllObjects Collection

      • The CurrentData Object

      • The CurrentProject Object

      • AccessObject

      • The DoCmd Object

      • The Form Object

      • The Control Object

      • The ImportExportSpecification Object

      • The Module Object

      • The Printer Object

      • The References Collection and Reference Object

      • The Reports Collection and Repor t Object

      • The Screen Object

      • The Section Object

      • The SmartTag Object

      • The SubForm Object

      • The SubReport Object

      • Other Helpful Information

    • Appendix H: Windows API Reference Information

      • API Viewer

      • Websites

      • Books

      • Some Useful API Functions

    • Appendix I: Windows Registry Information

      • Windows Registry Data Types

      • Registry Root Key Hives

      • Registr y Function Declarations

      • Registry API Constant and User-Defined Type Declarations

    • Appendix J: Access Wizards, Builders, and Managers

      • Access Wizards

      • Access Builders

      • Access Managers

    • Appendix K: Reserved Words and Special Characters

      • What Are the Sources of Reserved Words?

      • Reserved Words with Error Messages

      • Reserved Word List

      • What Are Special Characters?

    • Appendix L: Naming Conventions

      • Why Implement Naming Conventions?

      • A Brief Histor y

      • The Fundamentals of the Hungarian Convention

      • Rules for Creating Names — Adding the Personal Touch

      • More Do’s and Don’ts

      • Tables of Tags

      • Standards

    • Appendix M: Tips and Tricks

      • Visual Interface Standards

      • Daisy Chain Your Forms

      • Find Records

      • Split Your Application

      • Display Informative Form Captions

      • Preload Records

      • Use a Splash Screen

      • Pop-Up Memo Workspace Form with Spell Check

      • Determine the User Name

    • Index

Nội dung

[...]... Office Access 2007 SQL Server 2005 Express Edition SQL Server 2005 How Do You Choose? Developing Databases Without VBA Code Access 2007 Database Templates Access Database Objects Creating Tables Creating Queries Creating Forms Creating Reports Creating Macros Summary Chapter 2: Access, VBA, and Macros VBA in Access Writing Code in Modules Writing Code Behind Forms and Reports VBA versus Macros in Access. .. power of Access by adding VBA, we identify the new features of Access 2007 Because many of you are familiar with prior versions of Access, we also point out some of the major changes, particularly if they affect the way that you will be working The goal is for Access 2007 VBA Programmer’s Reference to be your primary resource and tool to help you leverage both Access s built-in functionality and VBA in... breadth of Access 2007 It is also an excellent reference and something that you will surely want to keep close at hand Tim Getsch Program Manager, Microsoft Access 47033ffirs.qxd:WroxProgRef 3/30/07 12:20 AM Page xiv 47033ftoc.qxd:WroxProgRef 3/30/07 12:23 AM Page xv Contents Acknowledgments Foreword Introduction Chapter 1: Introduction to Microsoft Access 2007 A Brief History of Access Is Access the... that you need if you’re new to Access or VBA After a review of Access 2007 s new features, you explore the building blocks of VBA, including objects, properties, methods, and events And you’re introduced to the VBA Editor and its various debugging tools Chapters 6 and 7 focus on using VBA to access data Both DAO and ADO provide methods for accessing data in Microsoft Access and other external data... the Access Developer Extensions that ship with Visual Studio Tools for Office for that very purpose What Does This Book Cover? Access 2007 VBA Programmer’s Reference covers a wide spectrum of programming topics relevant to Access Although it assumes the reader has some familiarity with VBA programming language, it begins with a brief introduction to VBA And to help you leverage the tools that Access. .. have both earned Access MVP status in recognition of their expertise and contributions to the Access community, and Rob and Geoff are members of the Microsoft Access test team They have the level of familiarity with Access 2007 that can only be developed through time and use Both of the tech editors are testers on the Microsoft Access team, so they too have been working with Access 2007 for more than... and Reports VBA versus Macros in Access Creating Macros in Access 2007 New Features for Macros in Access 2007 Why All the Changes? Advantages to Using VBA over Macros Summary Chapter 3: New Features in Access 2007 Who Benefits The End User xi xiii xxxi 1 1 2 2 3 3 4 4 5 8 8 11 13 15 17 18 19 19 19 20 22 23 26 30 31 31 33 34 34 47033ftoc.qxd:WroxProgRef 3/30/07 12:23 AM Page xvi Contents The Power User... 477 478 478 482 483 47033ftoc.qxd:WroxProgRef 3/30/07 12:23 AM Page xxv Contents Chapter 14: Extending VBA with APIs Introducing the Win32 API Know the Rules, Program with Confidence Why You Need the API 485 485 486 487 Introducing Linking 489 Static Linking Dynamic Linking 489 490 Linking Libraries in Access 2007 Referencing a Library How Microsoft Access Resolves VBA References Declaring APIs 490 490... been working with Access since 97 or before Even with this remarkable level of expertise, we took the opportunity to complement our own experiences with contributions from other developers to bring you the best available information on using VBA (Microsoft Visual Basic for Applications) in Access 2007 Many of the new features in Access 2007 can accomplish tasks that previously required VBA programming... Your Merge Using VBA to Set Up Your Merge Document Sending Access Objects to Word Sending Data to PowerPoint Pulling Data from Access Summary Chapter 17: Working with SharePoint Overview Access Features on SharePoint Access Web Datasheet Open with Access Importing from SharePoint 537 537 538 540 542 543 543 545 547 549 549 551 552 553 556 559 561 562 563 564 566 572 SharePoint Features in Access 576 Linked . iii 47033ffirs.qxd:WroxProgRef 3/30/07 12:20 AM Page ii Access ™ 2007 VBA Programmer’s Reference 47033ffirs.qxd:WroxProgRef 3/30/07 12:20 AM Page i 47033ffirs.qxd:WroxProgRef. Inc. Access ™ 2007 VBA Programmer’s Reference Teresa Hennig Rob Cooper Geoffrey Griffith Armen Stein 47033ffirs.qxd:WroxProgRef 3/30/07 12:20 AM Page iii Access ™ 2007

Ngày đăng: 22/03/2014, 10:20

TỪ KHÓA LIÊN QUAN