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, 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, fields, layout, and format you want, and then creates a page based on your answers.
-
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.
Notes
-
If you want to include fields from multiple tables and queries in your page, don't click Next or Finish after selecting the fields from the first table or query in the Page Wizard. Repeat the steps to select a table or query, and then choose fields that you want to include in the page, until you have selected all the required fields.
-
If you include fields from multiple tables or queries but don't create group levels, fields from one of the underlying tables can support updates in Page view or in Microsoft Internet Explorer. The wizard will list the record sources of the page and prompt you to specify the updatable record source.
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, 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.
-
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.
-
-