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.
For 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Â
(http://kbalertz.com/Feedback.aspx?kbNumber=295282/EN-US/
)
ACC2002: How to Programmatically Update the ConnectionFile Property Of All Data Access Pages
295313Â
(http://kbalertz.com/Feedback.aspx?kbNumber=295313/EN-US/
)
ACC2002: How to Programmatically Update the ConnectionString Property of All Data Access Pages