Here's what I use in my code to generate static HTML pages each time a user quits the application after making data changes:
'Define filename variable (drive and path to server are optional)
Dim strQryAll as String
strQryAll = "Query All Areas_1.html"
'Publish updated data to the server using a query called "Query All Areas"
DoCmd.OutputTo acOutputQuery, "Query All Areas", acFormatHTML, strQryAll
You can also format your query to include a suitable title. This method requires no HTML coding at all on your part.