Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

best way to output to HTML

Status
Not open for further replies.

Zorro1265

Technical User
Nov 14, 2000
181
0
0
US
What would be the best option to output access reports to static HTML pages? I want to keep all the formatting if possible.
 
Wow no one has ever needed to do this before? How do you all post data to a web page then? Zorro
 
I do this from time to time.
It is very simple: you just create a file (???.HTM) with OPEN (see online help) and write the HTML-code you need. Insert your data where and how you want.
It is very fast, reliable and only the initial programming of the HTML pages takes some time.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top