How to Create an HTML Template for MS Access

by Deborah Lee Soltesz

Microsoft Access can be used for managing all kinds of data, such as staff lists, sports statistics, store inventories and music catalogs. You can use Access to turn your tables, reports, queries and forms into web pages by exporting your data as HTML. Create your own HTML templates for Access to dress up your exported web pages, add your logo, include text and pictures, and include your site navigation. Elements from your Access database are added using special HTML comment tags called "tokens."

Step 1

Open your text editor and create a new file. Save the empty file with an .html file extension, for example, mytemplate.html.

Step 2

Add the start and end HTML tags and .

Step 3

Create a page header area by adding the start and end head tags between the HTML tags:

Step 4

Set the title for your web page using the title tags and the Access title token by adding <!--AccessTemplate_Title--> between the head tags.

Step 5

Add the content area of the document using the start and end body tags after the end head tag: .

Step 6

Create navigation for the exported reports in the content area using the Access navigation tokens for the first, next, previous and last pages as the link references. For example: ">First | ">Previous | ">Next | ">Last You can use images instead of text as navigation buttons, use a table or list to organize the links, and use CSS to add style.

Step 7

Add the Access body token, , below the page navigation where you'd like the content (table, report, etc.) to be inserted.

Step 8

Use the Access page number token to display the current page number on the page. For example:

Current Page:

Continue editing the HTML to add your logo, site navigation, information, links, decorative elements, external CSS, and other elements to your page.


  • Because Access HTML template tokens look like HTML comments, most graphical web page editors, such as Dreamweaver, will preserve the comments. If you use a graphical web page editor, try using it to finish editing and styling your Access template. Test your editor first by working on a copy of your template, and checking the saved HTML code to ensure the Access template tokens were not changed.


About the Author

Deborah Lee Soltesz is a web developer who has been creating websites, promotional materials and information products since 1992. Soltesz has a Bachelor of Science in computer science and engineering. She worked in earth and space science research writing for scientific and general audiences for more than a decade.

More Articles