About HTML template files

About HTML template files

You can use one or more HTML template files to enhance the appearance, consistency, and navigation of your static HTML and server-generated HTML files. For example, you might want to include a company logo in the header section, a company-approved background image in the body section, and your own navigation buttons in the footer section of a static HTML report.

An HTML template is a text file that includes HTML tags and tokens that are unique to Microsoft Access. These tokens indicate where to insert output and other information in the static HTML or server-generated HTML files. See an example of an HTML template file.

When you output a table, query, form, or report, and you specify an HTML template file in the associated Output Options dialog box, Microsoft Access merges the HTML template file with the .html, .asp, and .htx output files by replacing the tokens with the following.

HTML template token Replacement
     
<!--AccessTemplate_Title--> The name of the table, query, form, or report placed in the title bar of the Web browser
<!--AcessTemplate_Body--> The output of the table, query, form, or report
<!--AccessTemplate_FirstPage--> An HTML anchor tag that links to the first page of a report
<!--AccessTemplate_PreviousPage--> An HTML anchor tag that links to the page previous to the current report page
<!--AccessTemplate_NextPage--> An HTML anchor tag that links to the next page after the current report page
<!--AccessTemplate_LastPage--> An HTML anchor tag that links to the last page of a report
<!--AccessTemplate_PageNumber--> The current page number