> Nice find. I still can't figure out how you'd actually alter the
> structure of the output table though. And I don't have the Access 97
> example templates available.

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
> > Nice find. I still can't figure out how you'd actually alter the
> > structure of the output table though. And I don't have the Access 97
[quoted text clipped - 4 lines]
>
> <g>
OK. I managed to find a copy of A97. There is one of the templates
attached to the NorthWind db. That looks like this...
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<TITLE><!--ACCESSTEMPLATE_TITLE--></TITLE>
<META NAME="DocumentEn" CONTENT="windows-1252">
</HEAD>
<BODY LINK="#0000ff" VLINK="#800080">
<IMG SRC="NWlogo.GIF"> <FONT SIZE=4 FACE="Book Antiqua">Northwind
Traders</FONT>
<HR>
<!--ACCESSTEMPLATE_BODY--> <BR>
<A HREF="<!--AccessTemplate_FirstPage-->">First</A>
<A HREF="<!--AccessTemplate_PreviousPage-->">Previous</A>
<A HREF="<!--AccessTemplate_NextPage-->">Next</A>
<A HREF="<!--AccessTemplate_LastPage-->">Last</A>
</BODY>
</HTML>
...so you can include a size tag in there - but only at the global level.
The way that the sample uses it, they actually base the output on a report
instead of a query. So acOutputReport instead of acOutputQuery. The html
output then picks up the format from the report - so ....
...although you can include the font size, it only gets applied to the title
text. You can also a font tag to the template
<font size=24>
<A HREF="<!--AccessTemplate_FirstPage-->">First</A>
<A HREF="<!--AccessTemplate_PreviousPage-->">Previous</A>
<A HREF="<!--AccessTemplate_NextPage-->">Next</A>
<A HREF="<!--AccessTemplate_LastPage-->">Last</A>
</font>
...and that will be applied to those links.
Borders... there doesn't seem to be any way of applying those. Think you'd
have to fall back on editing the text file.
So, to summarise, it seems that you can use the template to format header
and footer information, but the actual body is determined by formatting
applied in Access, which is why you'd normally use a report instead of a
query.
There are some other sample template documents but they just seem to be
doing things like setting background graphics.... e.g.....
<HTML>
<TITLE><!--ACCESSTEMPLATE_TITLE--></TITLE>
<BODY background = sky.jpg>
<!--ACCESSTEMPLATE_BODY-->
</BODY>
<BR><BR>
<IMG SRC = "msaccess.jpg">
</HTML>
If anyone wants to see those, let me have a mail address and I'll forward
them.
Dirk Goldgar - 29 Mar 2005 16:26 GMT
> OK. I managed to find a copy of A97. There is one of the templates
> attached to the NorthWind db. That looks like this...
[quoted text clipped - 62 lines]
> If anyone wants to see those, let me have a mail address and I'll
> forward them.
Thanks for posting the results of your research, Rob. I'll tuck this
away in case I ever have a use for it.

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
wykpisz - 30 Mar 2005 06:13 GMT
This is controlled by the query being run, not by the template. To
change the output font:
1. Run your query.
2. When you have the query results in a table in your screen, from the
Format menu, choose font.
3. Set the font options you want. Click OK.
4. Click the Save button.
Now, when you run the OutputTo command, it will use the font settings
saved in the query.
> > OK. I managed to find a copy of A97. There is one of the templates
> > attached to the NorthWind db. That looks like this...
[quoted text clipped - 65 lines]
> Thanks for posting the results of your research, Rob. I'll tuck this
> away in case I ever have a use for it.