How To Connect An HTML Page To A Microsoft Access Database
How To Connect An HTML Page To A Microsoft Access Database
HowToConnectanHTMLPagetoaMicrosoftAccessDatabase
Sign in
IN THIS TASK
SUMMARY
Requirements
Create the Microsoft Access Database
Method 1: Create the Data Access Page by Using the Wizard
Method 2: Create the Data Access Page by Using an Existing HTML Page
Verification
REFERENCES
SUMMARY
A data access page is an HTML page that has an Office Web Component embedded into it. The
Office Web Component stores connection information about a data source. This article describes
how to use data access pages to connect an HTML page to tables in a database.
back to the top
Requirements
Prior knowledge required:
Database concepts
Familiarity with Microsoft
https://support.microsoft.com/enin/kb/308459
1/6
5/20/2016
HowToConnectanHTMLPagetoaMicrosoftAccessDatabase
the Page, and then click Finish. The data access page is now
2/6
5/20/2016
HowToConnectanHTMLPagetoaMicrosoftAccessDatabase
HTML page. Click Open the Page, and then click Finish. The data access page is now
created and displayed.
5. Use the record navigation bar at the bottom of the data access page to move through the
records and to create two more contacts.
6. On the File menu, click Save. Save the data access page as "Contacts.htm" in the My
Documents folder.
7. Read the message that appears, and then click OK. Close the data access page.
Method 2: Create the Data Access Page by Using an Existing HTML Page
To create the data access page by using an existing HTML page, follow these steps:
1. Start Notepad, and then type the following HTML:
<html>
<head>
<h1>AccessingDatathroughHTMLandAccess</h1>
</head>
<body>
LookingatExcelWebComponentstocreateaDAP
</body>
</hmtl>
3/6
5/20/2016
HowToConnectanHTMLPagetoaMicrosoftAccessDatabase
Verification
To open the data access page, follow these steps:
1. Open Internet Explorer. In the My Documents folder, open the file MyHTML.htm.
2. Test all parts of the page.
3. Click the hyperlink to verify that it links to the Contacts.htm file.
NOTE: Before you publish this data access page to the Web server, verify that all paths are
correct, and change the hyperlinks to URLs.
To change a connection, follow these steps:
1. Start Microsoft Access. In the data access page Design view, open the MyHTML.htm file.
2. If the Field List is not visible, click Field List on the View menu.
3. In the Field List, click the Page connection properties icon that appears under the title bar
https://support.microsoft.com/enin/kb/308459
4/6
5/20/2016
HowToConnectanHTMLPagetoaMicrosoftAccessDatabase
3. In the Field List, click the Page connection properties icon that appears under the title bar
of the Field List pane. The Data Link Properties dialog box appears.
4. Verify that the connection corresponds to the correct path to the database.
5. If you scale the database up to Microsoft SQL Server, verify that the OLEDB Provider is
correct on the Provider tab.
6. Click OK to complete the connection property changes.
To change a URL, follow these steps:
1. Select the friendly text for the hyperlink.
2. On the Insert menu, click Hyperlink. The Edit Hyperlink dialog box appears.
3. Type a URL in the Address box, and then click OK.
REFERENCES
Sample data access pages are available in the Northwind database.
NOTE: The Northwind database is installed with a full installation of Microsoft Office XP
Professional.
back to the top
Properties
Article ID: 308459 Last Review: 07/01/2004 20:47:42 Revision: 3.3
Applies to
https://support.microsoft.com/enin/kb/308459
5/6
5/20/2016
HowToConnectanHTMLPagetoaMicrosoftAccessDatabase
Applies to
Microsoft Internet Explorer 5.5
Microsoft Internet Explorer 5.0
Microsoft Office XP Professional
Microsoft Access 2002 Standard Edition
Microsoft Internet Explorer 6.0
Keywords:
kbhowtomaster KB308459
Support
Security
Contact Us
English India
Terms of use
https://support.microsoft.com/enin/kb/308459
Trademarks
2016 Microsoft
6/6