Well, it all depends on a LOT of different things how you'd go about putting this into place.
Say for example you have some stuff at the top of the page and the bottom that remains constant, and it's only the numbers you change, well, depending on your server setup, you could use Server Side Includes to have a page call 3 different pages - the top, the bottom, and the middle.
You could export a report as HTML
You could create HTML by writing the actual HTML to a text file
Basically - there's heaps of ways to do it.
However, if you have 32 records in your query, and therefore want to create 32 different files, each with just one row of data, I'd suggest opening the query as a recordset and creating the HTML like I mentioned in the 3rd seggestion.
I'm not going to write the code here for you, just a bit of crappy pseudocode to give you an idea of what I'm on about
Initialise counter to 1
While not recordset.EOF
Open "ExportFile" & Counter & ".html"
Write Header HTML tags
Write Ending HTML tags
Counter = Counter+1
However, as I mentioned - exactly how you implement it will be based on heaps of things - such as - Server setup, your VBA skills, how you want it saved, whether or not you can save it directly to the Web Server.
But - if you just want the first record of the query - you could always just have the query being
SELECT TOP 1 * FROM TABLE1;
and export that query as HTML
Hope this points you in a more specific direction
There are 10 kinds of people in the world - those who understand binary - and those with friends