发表于:2009-6-1 8:10:00
P22第14行之后,少了如下部分:
Projects in Access
Access uses the term project in two very different ways. If you choose a project selection when creating a new database, you create an ADP file that contains Access interface objects connected to data stored in a SQL Server database. Chapter 19, "Creating Access Projects," gives more details about this topic.
The other type of project is a Microsoft Visual Basic for Applications (VBA) project. Every Access database (MDB file) has its own VBA project, which can be viewed in the Project Explorer pane of the Visual Basic Editor (VBE) window. An Access VBA project contains the code attached to forms and reports (in the Microsoft Access Class Objects folder), any standard modules in the database (in the Modules folder), and possibly other objects. The database's project has the same name as the database, as shown in Figure 2-1.
<图略>
Figure 2-1. An Access database’s project has the same name as the database itself.
If you have Microsoft Office Developer (MOD), you can also create new VBA projects and compile them into COM add-ins, as described in Chapter 21, "Creating Your Own Add-Ins."
意思是:
Access 中的项目
Access 使用术语project有两种非常不同的含义。 如果您创建一个新的数据库时选择一个项目(project),您可以创建一个 ADP 文件包含连接到存储在 SQL Server 数据库中的数据的访问接口对象。 第十九章"创建 Access 项目",提供更多有关本主题的详情。
project的另一个类型是一个 Microsoft Visual Basic for Applications (VBA) 工程(project)。 在项目资源管理器窗格中的 Visual Basic 编辑器 (VBE) 窗口可以查看自己 VBA 项目的每个 Access 数据库 (MDB 文件)。 一个 Access VBA 工程包含附加到窗体和 报表的代码(在 Microsoft Access 类对象文件夹),数据库的任何标准模块(在模块文件夹中),和可能的其他数据库对象 。数据库的工程和该的数据库具有相同名称,在图 2-1 所示。
<图略>
图 2-1。 Access 数据库的工程具有数据库本身相同的名称。
如果您有 Microsoft Office 开发人员 (MOD), 您还可以创建新的 VBA 项目并将它们编译成 COM 加载项,如第21章所述“创建您自己的加载项”。
(说明:project:存在“一词二译”现象。在或VBA编程开发集成环境中,指模块的集合,一般翻译为“工程”。在其他领域,一般翻译为“项目”,如“Access projec”译为“Access 项目”——是一种 Access 数据文件(.adp文件),它能通过 OLE DB 组件访问 Microsoft SQL Server 数据库。)