Rich Text in textbox

  • Thread starter Thread starter shank
  • Start date Start date
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
 
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.
 
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>")
 
Back
Top