Rich Text in textbox

S

shank

I have a textbox with Rich Text enabled. The <b> bold tag works fine. The
<span> tag with style disables the price field. How do I specify a separate
color for that field?

=IIf([Price]>0,"<b>Price: <span style='color:#BA1419'" &
FormatCurrency([Price]) & "</span></b>")

thanks
 
A

Allen Browne

The 'rich text' supported in A2007 is only a small subset of the HTML 4
tags.

Try the font tag.

If that doesn't work, perhaps you could use the toolbar to insert some text
into a rich text Memo field in a table, and then examine the field's
contents programmatically to see what it does use.
 
S

shank

small subset <<
Is there a list of tags that can used somewhere?
Or syntax?
thanks

Allen Browne said:
The 'rich text' supported in A2007 is only a small subset of the HTML 4
tags.

Try the font tag.

If that doesn't work, perhaps you could use the toolbar to insert some
text into a rich text Memo field in a table, and then examine the field's
contents programmatically to see what it does use.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

shank said:
I have a textbox with Rich Text enabled. The <b> bold tag works fine. The
<span> tag with style disables the price field. How do I specify a
separate color for that field?

=IIf([Price]>0,"<b>Price: <span style='color:#BA1419'" &
FormatCurrency([Price]) & "</span></b>")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top