To create a data access page (data access page: A Web page, published from Access, that has a connection to a database. In a data access page, you can view, add to, edit, and manipulate the data stored in the database. A page can also include data from other sources, such as Excel.), or to open a page in Design view (Design view: A view that shows the design of these database objects: tables, queries, forms, reports, and macros. In Design view, you can create new database objects and modify the design of existing objects.), Page view (Page view: An Access window in which you can browse the contents of a data access page. Pages have the same functionality in Page view as in Microsoft Internet Explorer 5.0 or later.), or in Microsoft Internet Explorer, you must install Microsoft Internet Explorer 5.01 with Service Pack 2 (SP2) or later.
If you create a data access page when a database is open, Microsoft Access creates a shortcut to the page and displays the shortcut in the Database window (Database window: In Access 2003 and earlier, the window that appears when a database or project is opened. It displays shortcuts for creating new database objects and opening existing objects. In later versions, it is replaced by the Navigation Pane.). If you create a page without opening a database, Access will create a stand-alone page.
Create a data access page in the current database
Create a data access page that contains all fields from a single record source (AutoPage)
Use the AutoPage command to create a data access page that contains all records and fields (except fields that store pictures) in the underlying table, query, or view.
- Under Objects in the Database window, click Pages
.
- On the Database window toolbar, click New.
- In the New Data Access Page dialog box, click AutoPage: Columnar.
- Click the table, query, or view that contains the data on which you want to base your page.
- Click OK.
In the finished data access page, each field will appear on a separate line with a label to its left. If the resulting page doesn't look the way you want, you can modify the page in Design view.
Note If you have set a default theme (theme: A collection of formats that determines the appearance of the controls, sections, body, and text on a data access page.), Microsoft Access applies it to the page.
Create a data access page that contains fields from multiple tables and queries (Page Wizard)
The wizard asks you detailed questions about the record sources (record source: The underlying source of data for a form, report, or data access page. In an Access database, it could be a table, query, or SQL statement. In an Access project, it could be a table, view, SQL statement, or stored procedure.), fields, layout, and format you want, and then creates a page based on your answers.
If the wizard doesn't start
This could be due to the fact that Access is running in sandbox mode but Microsoft Jet 4.0 SP8 or later is not installed on your computer. Jet 4.0 SP8 or later is required for Access to be fully functional when sandbox mode is enabled.
For more information about installing the Jet upgrade, see the Office Online article About Microsoft Jet 4.0 SP8 or later.
For more information about sandbox mode, see the Office Online article About Microsoft Jet Expression Service sandbox mode.
- Under Objects in the Database window, click Pages
.
- On the Database window toolbar, click New.
- In the New Data Access Page dialog box, click Page Wizard.
- Click the name of the table, query, or view that includes the data on which you want to base your data access page.
Note You don't need to do this step now — you can specify the record sources for the page in the wizard.
- Click OK.
- Follow the directions in the wizard dialog box.
If the resulting page doesn't look the way you want, you can modify the page in Design view (Design view: A view that shows the design of these database objects: tables, queries, forms, reports, and macros. In Design view, you can create new database objects and modify the design of existing objects.).
Notes
Create a data access page in Design view
- Under Objects in the Database window, click Pages
.
- On the Database window toolbar, click New.
- In the New Data Access Page dialog box, click Design View.
- Click the name of the table, query, or view that includes the data on which you want to base your data access page.
Note If you want to create a blank page, don't select a record source in this dialog box.
- Click OK.
Microsoft Access displays the data access page in Design view, where you can modify the page. To add data to the page, drag fields from the field list to the page.
Make an existing Web page into a data access page
- In the Database window (Database window: In Access 2003 and earlier, the window that appears when a database or project is opened. It displays shortcuts for creating new database objects and opening existing objects. In later versions, it is replaced by the Navigation Pane.), click Pages
under Objects.
- Click the New button on the Database window toolbar.
- In the New Data Access Page dialog box, click Existing Web page.
- Click OK.
- In the Locate Web Page dialog box, find the Web page or HTML file that you want to open.
Note You can find a Web page by clicking Search the Web
in the Locate Web Page dialog box. Save a copy of the page by using the Save As command on the File menu in Microsoft Internet Explorer, and then start this procedure again to open the page in Design view (Design view: A view that shows the design of these database objects: tables, queries, forms, reports, and macros. In Design view, you can create new database objects and modify the design of existing objects.).
- Click Open.
Microsoft Access creates a shortcut to the HTML file in the Database window and displays the page in Design view, where you can modify the page.
Note If you have specified a default connection file for the database in the Pages tab of the Options dialog box, Access will automatically set the ConnectionFile and ConnectionString properties for all new pages.
Create a stand-alone data access page
- If a database is open in Microsoft Access, close it.
- On the File menu, click New.
- In the New File dialog box, click Blank Data Access Page.
- In the Select Data Source dialog box, do one of the following:
Connect the page to a Microsoft Access database
Use the following procedure if you want to create a page and bind it to an Access database, without creating a shortcut in the database.
- In the Files of Type list, select Access databases.
- Double-click the database file that you want to bind the page to. If you don't see the database that you want to use, navigate to the folder that has the file, and then double-click the file name.
- Click OK twice.
Access will create a blank page and open it in Design view. The page's ConnectionString property will be set to connect the page to the database you selected. To add data to the page, drag fields from the field list to the page.
Connect the page to a SQL Server database or an OLE DB data source by creating a connection file
- Click New Source.
- In the Data Connection Wizard dialog box, select the data source that you want to connect to.
- Follow the directions in the wizard dialog box.
- In the Select Data Source dialog box, click the connection file that you created in the previous step.
- Do one of the following:
- To use the connection information without creating a link between the page and the connection file, click Open.
Access will create a blank page and open it in Design view. The page's ConnectionString property will be set based on the contents of the connection file you created. To add data to the page, drag fields from the field list to the page.
- To create a link between the page and the connection file, click the arrow on the Open button, and then click Use Connection File.
Access will create a blank page and open it in Design view. The page's ConnectionString property will be set based on the contents of the connection file, and the ConnectionFile property will be set to the connection file that you created. To add data to the page, drag fields from the field list to the page.
Connect the page to a data source using an existing connection file
- In the Files of Type list, select Office Database Connections.
- Click the connection file that has the connection information that you want to use for the page. If you don't see the connection file that you want to use, navigate to the folder that has the file, and then click the file name.
- Do one of the following:
- To use the connection information without creating a link between the page and the connection file, click Open.
Access will create a blank page and open it in Design view. The page's ConnectionString property will be set based on the contents of the connection file you selected. To add data to the page, drag fields from the field list to the page.
- To create a link between the page and the connection file, click Use Connection File.
Access will create a blank page and open it in Design view. The page's ConnectionString property will be set based on the contents of the connection file, and the ConnectionFile property will be set to the connection file that you selected. To add data to the page, drag fields from the field list to the page.