O'Reilly logo

Access™ 2007 VBA Programmer's Reference by Armen Stein, Geoffrey Griffith, Rob Cooper, Teresa Hennig

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

K.1. What Are the Sources of Reserved Words?

In addition to the lists of reserved words that are directly associated with Access, ACE, and Visual Basic, there are also words that have special meaning to ActiveX Data Objects (ADO), OLE DB, Open Database Connectivity (ODBC), and any DLL (dynamic-link library) referenced in your application. These, too, should be treated as reserved words for your application. Just by setting a reference to a type library, an object library, or an ActiveX control, all the reserved words for the referenced items become reserved words for the Access application. And the list keeps growing because built-in function names and user-defined names also become reserved words. As you create interfaces to work with other programs and development languages, such as SharePoint, Excel, and .NET, you will want to be cautious about their reserved words as well.

It can get even hairier. The reserved words for a given application vary depending on what mode the ACE is running in. This is determined by whether ACE is called from Microsoft Access, the Microsoft OLE DB Provider for ACE, a Data Access Object, or the Microsoft Access ODBC driver. Whether ACE is running in ANSI mode or non-ANSI (traditional) mode also has an effect on the list, such that a query that works under one scenario may fail when the database application is opened in a different mode.

You can find lists of reserved words by using the online help feature in Access, by searching for reserved words ...

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