How to Programmatically Update Data Access Pages Links (295315)
The information in this article applies to:
- Microsoft Office Access 2003
- Microsoft Access 2002
This article was previously published under Q295315 Advanced: Requires expert coding, interoperability, and multiuser
skills.
This article applies to a Microsoft Access database (.mdb) and to a
Microsoft Access project (.adp).
SUMMARY If you are familiar with ODBC tables and Microsoft Access
databases, you know that an ODBC table is not literally stored in an Access
database. Instead, the Access database contains a link that points to the
actual location of the back-end ODBC table.
Data access pages in an
Access database are also links. They are not objects, such as forms, reports,
queries, and so on, that reside in the database. Data access pages are HTML
files and they are stored in external files outside of the database. The data
access page object that you see in an Access database is simply a link to the
external HTML file.
If either the database or the HTML files are
moved to a new location, the data access page links in the Database window will
no longer be valid. A developer may encounter this situation when deploying a
database to another computer. The developer or end-user would then have to
relink the data access pages to the appropriate HTML file after the database
has been deployed in order for the data access pages to be
functional.
This article provides sample Visual Basic for
Applications (VBA) code that illustrates how to programmatically update the
data access pages links in a Microsoft Access database. REFERENCESFor more information about
resolving data access page issues, click Microsoft Access Help on the Help menu, type troubleshoot data access pages
in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned. For additional information about
programmatically setting properties in a data access page, click the article
numbers below to view the articles in the Microsoft Knowledge Base: 295282 ACC2002: How to Programmatically Update the ConnectionFile Property Of All Data Access Pages
295313 ACC2002: How to Programmatically Update the ConnectionString Property of All Data Access Pages
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbProgramming kbhowto KB295315 kbAudDeveloper |
---|
|