Underline partial textbox contents

T

tracey

is it possible to underline part of the contents of a text
box? I have created a report with textboxes that have
text "hard coded"and concantinated another value. Example
of textbox.value: ="This agreement, made this " & Format
([text8],"dd") & " day of " & Format([text8],"mmmm") & "
A.D. " & Format([text8],"yyyy") & " by and ...

I want the returned variables to be underlined.

Thanks!
 
J

John Spencer (MVP)

Not in a standard textbox. You need to use a rich text control to do that or
some other method

Check out the following URL for a free rtf control.
http://www.lebans.com/richtext.htm

Also take a look at:
http://www.lebans.com/mixbold-plain.htm

You might be able to adapt this to use underline vice bold text. If you do
modify it and it doesn't work - do not blame Mr. Lebans. His code works and you
need to figure out what you changed that broke it.

Hope this gives you some ideas.
 

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