Creating Data Access Pages
You can create data access pages in one of the following four ways:
- Using AutoPage
- Using a wizard
- From an existing Web page
- From scratch
Creating a Data Access Page Using the AutoPage Feature
To create a data access page using AutoPage, follow these steps:
Figure 26.9. The New Data Access Page dialog box allows you to select the method you want to use to create a data access page.

Figure 26.10. A data access page based on the Employees table using the AutoPage feature.

Creating a Data Access Page Using a Wizard
To create a data access page using a wizard, follow these steps:
Figure 26.11. Selecting the table or query and the fields that you want to include in the data access page.

Figure 26.12. Adding grouping levels to the data access page.

Figure 26.13. Selecting a sort order for the records on the page.

Figure 26.14. The Theme dialog box allows you to apply a theme to the page.

Figure 26.15. A completed data access page in Design view.

Figure 26.16. A completed data access page in Page view.

Access does not store data access pages in your database file or project. Instead, Access saves data access pages as HTML files. To save a data access page, follow these steps:
Figure 26.17. The Save As Data Access Page dialog box allows you to select a name and location for the saved HTML document.

Although Access saves the data access page as a separate document, it appears in the Database window (see Figure 26.18). Notice in the figure that a ToolTip appears, indicating the name and location of the saved HTML document. When you open the data access page from within Microsoft Access, it appears as a window within the Access environment. To view the page as it will appear in a browser, right-click the page in the Database window and select Web Page Preview.
Figure 26.18. A completed data access page appears as an object in the Database window.

Creating a Data Access Page from an Existing Web Page
You might already have an HTML document that you have created. Fortunately, Access 2002 and Access 2003 allow you to base a new data access page on an existing HTML document. To create a data access page from an existing Web page, follow these steps:
Figure 26.19. The Locate Web Page dialog box allows you to open an existing HTML document for editing within the Access environment.

Creating a Data Access Page from Scratch
Although the Data Access Page Wizard is very powerful, there are times when you will want to build a data access page from scratch. You would do this, for example, when the page you were creating was either very simple, or in no way resembled the output from the Page wizard. To create a page from scratch, follow these steps:
Figure 26.20. A warning appears indicating that you will not be able to work with the design of the page in previous versions of Access.

Figure 26.21. When the Create Data Access Page in Design View option is used, a blank data access page appears.

You might wonder how to associate a table from your database with a data access page that you build from scratch. The process differs somewhat from the process of associating a form with data. The process is as follows:
Figure 26.22. The Field List window allows you to easily add table and query fields to your data access pages.

Figure 26.23. The expanded Field List window shows you all the tables and queries within the current database.

Figure 26.24. A data access page containing selected fields from the Employees table.

NOTEBecause data access pages are stored as separate HTML documents, Access will not be able to locate the data access pages associated with a database if the pages are deployed to a different directory structure than the structure that existed when they were first created. You must write code to "fix" the links to the pages. The Northwind.MDB database that ships with Access 2003 contains sample code that you can use in your applications to fix these broken associations.