Table of contents
TOC
Collapse the table of content
Expand the table of content

CodeProject Object (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

The CodeProject object refers to the project for the code database of a Microsoft Access project (.adp) or Access database.

Remarks

The CodeProject object has several collections that contain specificAccessObjectobjects within the code database. The following table lists the name of each collection defined by Access project and the types of objects it contains.

CollectionsObject type
AllFormsAll forms
AllReportsAll reports
AllMacrosAll macros
AllModulesAll modules

Note The collections in the preceding table contain all of the respective objects in the database regardless if they are opened or closed.

For example, an AccessObject object representing a form is a member of the AllForms collection, which is a collection of AccessObject objects within the current database. Within the AllForms collection, individual members of the collection are indexed beginning with zero. You can refer to an individual AccessObject object in the AllForms collection either by referring to the form by name, or by referring to its index within the collection. If you want to refer to a specific object in the AllForms collection, it's better to refer to it by name because a item's collection index may change. If the object name includes a space, the name must be surrounded by brackets ([ ]).

SyntaxExample
AllForms ! formnameAllForms!OrderForm
AllForms ![ form name]AllForms![Order Form]
AllForms (" formname")AllForms("OrderForm")
AllForms ( formname)AllForms(0)

Methods

Name
AddSharedImage
CloseConnection
OpenConnection
UpdateDependencyInfo

Properties

Name
AccessConnection
AllForms
AllMacros
AllModules
AllReports
Application
BaseConnectionString
Connection
FileFormat
FullName
ImportExportSpecifications
IsConnected
IsTrusted
IsWeb
Name
Parent
Path
ProjectType
Properties
RemovePersonalInformation
Resources
WebSite
IsSQLBackend

See also

Other resources

Access Object Model Reference

© 2018 Microsoft