sjw-ga,
Setting the font in the table tag does not affect the contents of the
table. You need to get your font tags around the text you actually
mean to affect.
<html>
<body>
<TABLE BORDER=1 BGCOLOR=#ffffff CELLSPACING=0>
<CAPTION><B><FONT FACE="Arial" size="24"
COLOR=#000000>Messages</FONT></B></CAPTION>
</TABLE>
</body>
</html>
If you want to use CSS instead of the older style Font tags, you can
use the nice example provided below by willcodeforfood-ga. Note that
the style information is in the CAPTION tag, which is the tag
affecting the "Messages" text, rather than in the TABLE tag.
Additional Information
-----------------------
The source code for the link below demonstrates setting a number of
diffrent font properties using CSS inside a table.
Daniel Greene?s CSS Font Properties Test
http://www.danielgreene.com/fontprop.html
- Hammer |
Request for Answer Clarification by
sjw-ga
on
24 Mar 2005 12:39 PST
I need a template format for the export of my query from access and
what you have provided does not solve my problem. I'm using
DoCmd.OutputTo acOutputQuery, "Messages", acFormatHTML,
"C:\MessagesForAssociates2.html", 0, "C:\template.html"
in access to export a query but no matter what how I make the template
it does not change the font of the output of my query. Disregard the
caption and bold tags tag, I need to know what html code needs in the
template to change the font of the query's output.
|
Clarification of Answer by
hammer-ga
on
24 Mar 2005 13:46 PST
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.
This worked fine, and my template file is simply as follows:
<html>
<body>
<!--AccessTemplate_Body-->
</body>
</html>
- Hammer
|
Request for Answer Clarification by
sjw-ga
on
24 Mar 2005 14:32 PST
The help inside access states that you can use a template, if this is
true, I would not have to manually changfe the font, correct? I don't
understand why it says you are able to use templates but I need this
to be an automated from a button without me having to manually change
the format.
|
Clarification of Answer by
hammer-ga
on
24 Mar 2005 14:38 PST
You can use a template to place the query output inside of other
standard content, such as navigation links, copyright notices and page
backgrounds. The format of the query output itself is controlled by
the settings on the query.
You only have to save the query font settings once. After that, your
button will always use the saved settings.
- Hammer
|