Wiley
Wiley.com
Print this page Share

Access 2010 Programmer's Reference

ISBN: 978-0-470-59166-6
1272 pages
August 2010
Access 2010 Programmer

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
See More

Table of Contents

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

See More

Author Information

Teresa Hennig is a Microsoft Access MVP, and is President of the Seattle Access Group and the Pacific Northwest Access Developer Group. Her company, Data Dynamics NW, has been creating Access solutions since 1997.

Rob Cooper is a senior test lead at Microsoft. During the Access 2010 release, he led the team that worked on exciting new features such as the Macro Designer, Navigation Control, and Web Browser Control.

Geoffrey Griffith has more than 13 years experience with Access. He began his Access life working in Access 2.0 and eventually worked on the Microsoft Access Team for the Access 2007 release.

Jerry Dennison is a Microsoft Access MVP and has been developing custom and commercial Access applications since 1991. He is the owner of TradeIt! Software Support Services, an Access-based barter management solution.

See More

Downloads

Download TitleSizeDownload
Access Programmer's Reference: Complete Code Download 18.14 MB Click to Download
ReadMe File 79.00 KB Click to Download
Chapter 2: New Features 468.02 KB Click to Download
Chapter 4: Macros_samples 430.65 KB Click to Download
Chapter 5: VBA Editor_samples 1.33 KB Click to Download
Chapter 6: VBA Basics_samples 3.07 KB Click to Download
Chapter 7: Using VBA_samples 2.79 KB Click to Download
Chapter 8: Creating Classes_samples 115.93 KB Click to Download
Chapter 9: APIs_samples 55.82 KB Click to Download
Chapter 10: Win32Reg_samples 56.45 KB Click to Download
Chapter 11: DAO_samples 1.23 MB Click to Download
Chapter 12: ADO_samples 74.14 KB Click to Download
Chapter 13: Using SQL_samples 3.44 KB Click to Download
Chapter 14: Form_samples 3.71 MB Click to Download
Chapter 15: Reports_samples 194.37 KB Click to Download
Chapter 16: Ribbon_samples 7.50 MB Click to Download
Chapter 17: Backstage_samples 68.44 KB Click to Download
Chapter 18: OfficeApps_samples
Updated Oct. 2011
125.50 KB Click to Download
Chapter 19: SharePoint_samples 20.80 KB Click to Download
Chapter 20: Net_samples 589.63 KB Click to Download
Chapter 21: Client-Server_samples 363.17 KB Click to Download
Chapter 24: Database Security_samples 1.94 MB Click to Download
Chapter 25: Access Security_samples 1.01 KB Click to Download
Appendix G: Naming Conventions 434.88 KB Click to Download
Appendix I: Tips_samples 828.90 KB Click to Download
Appendix I: appI_Tips_Code.txt
File referenced on page 1178.
5.25 KB Click to Download
See More

Errata

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
124 Error in Text
Figure reference should read:
?For example, in figure 5-2 (shown previously), the current ...?
08/23/2010
180 Error in Text
Page 180: second line from bottom of the page should reference Figure 7-1, not 8-1.
11/8/2011
675 Error 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
676 Error 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
20 792 Typo 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
See More

Press Release

July 13, 2010
Access 2010 Programmer's Reference

Wrox author Teresa Hennig shares her favorite new features in Access 2010 and explains why Access is now even more accessible.

See More

Buy Both and Save 25%!

+

Access 2010 Programmer's Reference (US $44.99)

-and- Beginning Microsoft SQL Server 2012 Programming (US $39.99)

Total List Price: US $84.98
Discounted Price: US $63.73 (Save: US $21.25)

Buy Both
Cannot be combined with any other offers. Learn more.

Related Titles

Back to Top