Skip to main content

Access 2010 Programmer's Reference

Access 2010 Programmer's Reference

Teresa Hennig, Rob Cooper, Geoffrey L. Griffith, Jerry Dennison

ISBN: 978-0-470-93896-6

Oct 2010

1272 pages

Select type: E-Book

$29.99

Description

A comprehensive guide to programming for Access 2010 and 2007
 

Millions of people use the Access database applications, and hundreds of thousands of developers work with Access daily. Access 2010 brings better integration with SQL Server and enhanced XML support; this Wrox guide shows developers how to take advantage of these and other improvements.

With in-depth coverage of VBA, macros, and other programming methods for building Access applications, this book also provides real-world code examples to demonstrate each topic.

Access 2010 Programmer's Referenceis a comprehensive guide to the best-of-breed techniques for programming Access applications.

Coverage Includes:

  • Introduction to Microsoft Access 2010
  • New Features
  • Upgrading and Converting to Access 2010
  • Macros in Access 2010
  • Using the VBA Editor
  • VBA Basics
  • Using VBA in Access
  • Creating Classes in VBA
  • Extending VBA with APIs
  • Working with the Windows Registry
  • Using DAO to Access Data
  • Using ADO to Access Data
  • Using SQL with VBA
  • Using VBA to Enhance Forms
  • Enhancing Reports with VBA
  • Customizing the Ribbon
  • Customizing the Office Backstage
  • Working with Office 2010
  • Working with SharePoint
  • Working with .NET
  • Building Client-Server Applications with Access
  • The Access 2010 Templates
  • Access Runtime Deployment
  • Database Security
  • Access 2010 Security Features

INTRODUCTION xxxiii

CHAPTER 1: INTRODUCTION TO MICROSOFT ACCESS 2010 1

A Brief History of Access 2

When to Use Access 2

Access Database Basics 5

Access Database Objects 7

Summary 12

CHAPTER 2: NEW FEATURES 13

CHAPTER 3: UPGRADING AND CONVERTING TO ACCESS 2010 33

CHAPTER 4: MACROS IN ACCESS 2010 63

VBA versus Macros in Access 63

Types of Macros 66

Creating Macros in Access 2010 67

Macro Objects and Embedded Macros 78

Data Macros 93

Summary 117

CHAPTER 5: USING THE VBA EDITOR 119

CHAPTER 6: VBA BASICS 141

CHAPTER 7: USING VBA IN ACCESS 173

CHAPTER 8: CREATING CLASSES IN VBA 227

CHAPTER 9: EXTENDING VBA WITH APIS 283

CHAPTER 10: WORKING WITH THE WINDOWS REGISTRY 319

CHAPTER 11: USING DAO TO ACCESS DATA 355

CHAPTER 12: USING ADO TO ACCESS DATA 419

CHAPTER 13: USING SQL WITH VBA 459

CHAPTER 14: USING VBA TO ENHANCE FORMS 489

CHAPTER 15: ENHANCING REPORTS WITH VBA 549
CHAPTER 16: CUSTOMIZING THE RIBBON 581

CHAPTER 17: CUSTOMIZING THE OFFICE BACKSTAGE 631

CHAPTER 18: WORKING WITH OFFICE 2010 671

CHAPTER 19: WORKING WITH SHAREPOINT 707

CHAPTER 20: WORKING WITH .NET 757

CHAPTER 21: BUILDING CLIENT-SERVER APPLICATIONS WITH ACCESS 799

CHAPTER 22: THE ACCESS 2010 TEMPLATES 841

CHAPTER 23: ACCESS RUNTIME DEPLOYMENT 861

CHAPTER 24: DATABASE SECURITY 875

CHAPTER 25: ACCESS 2010 SECURITY FEATURES 919

APPENDIX A: THE ACCESS OBJECT MODEL 945

APPENDIX B: DAO OBJECT METHOD AND PROPERTY DESCRIPTIONS 999

APPENDIX C: ADO OBJECT MODEL REFERENCE 1035

APPENDIX D: 64-BIT ACCESS 1095

APPENDIX E: REFERENCES FOR PROJECTS 1103

APPENDIX F: RESERVED WORDS AND SPECIAL CHARACTERS 1113

APPENDIX G: NAMING CONVENTIONS 1127

APPENDIX H: THE ACCESS SOURCE CODE CONTROL 1137

APPENDIX I: TIPS AND TRICKS 1145

INDEX 1191

Access Programmer's Reference: Complete Code Download
Download
ReadMe File
Download
Chapter 2: New Features
Download
Chapter 4: Macros_samples
Download
Chapter 5: VBA Editor_samples
Download
Chapter 6: VBA Basics_samples
Download
Chapter 7: Using VBA_samples
Download
Chapter 8: Creating Classes_samples
Download
Chapter 9: APIs_samples
Download
Chapter 10: Win32Reg_samples
Download
Chapter 11: DAO_samples
Download
Chapter 12: ADO_samples
Download
Chapter 13: Using SQL_samples
Download
Chapter 14: Form_samples
Download
Chapter 15: Reports_samples
Download
Chapter 16: Ribbon_samples
Download
Chapter 17: Backstage_samples
Download
Chapter 18: OfficeApps_samples
Updated Oct. 2011
Download
Chapter 19: SharePoint_samples
Download
Chapter 20: Net_samples
Download
Chapter 21: Client-Server_samples
Download
Chapter 24: Database Security_samples
Download
Chapter 25: Access Security_samples
Download
Appendix G: Naming Conventions
Download
Appendix I: Tips_samples
Download
Appendix I: appI_Tips_Code.txt
File referenced on page 1178.
Download
ChapterPageDetailsDatePrint Run
124Error in Text
Figure reference should read:
?For example, in figure 5-2 (shown previously), the current ...?
08/23/2010

180Error in Text
Page 180: second line from bottom of the page should reference Figure 7-1, not 8-1.
11/8/2011

675Error in Code
Public Function CreateEmailWithOutlook( _
    MessageTo As String, _
    Subject As String, _
    MessageBody As String)

    ' Define app variable and get Outlook using the "New" keyword
    Dim olApp As New Outlook.Application
    Dim objMail As Object ' An Outlook Mail item
    
    ' Create a new email object
    Set objMail = olApp.CreateItem(olMailItem)
    
    ' Add the To/Subject/Body to the message and display the message
    With objMail
        .To = MessageTo
        .Subject = Subject
        .Body = MessageBody
        .Display    ' To show the email message to the user
    End With

    ' Release all object variables
    Set objMail = Nothing
    Set olApp = Nothing

End Function
10/18/11

676Error in Code
Public Function SendEmailWithOutlook( _
    MessageTo As String, _
    Subject As String, _
    MessageBody As String)

    ' Define app variable and get Outlook using the "New" keyword
    Dim olApp As New Outlook.Application
    Dim objMail As Object  ' An Outlook Mail item
 
    ' Create a new email object
    Set objMail = olApp.CreateItem(olMailItem)

    ' Add the To/Subject/Body to the message and display the message
    With objMail
        .To = MessageTo
        .Subject = Subject
        .Body = MessageBody
        .Send       ' Send the message immediately
    End With

    ' Release all object variables
    Set objMail = Nothing
    Set olApp = Nothing

End Function
10/18/11

20792Typo in Code
Line 20 (in the first block of code), it says:
                using Sytem.Runtime.InteropServices;
But it should say:
                using System.Runtime.InteropServices;
3/14/11