Text Box Font

  • Thread starter Thread starter Antonio
  • Start date Start date
A

Antonio

I have a form that displays 5 different data fields in 5
seperate text boxes. I figured out how to combine them
into a single text box, but I was wondering if there was
a way to change the text font and color of certain fields
in the combined text box.
Example
frmMessages contains the following fields:
txtTo, txtFrom, txtTime, txtMessageDate, txtMessage.
I set the visible property to "no" for each of the text
boxes above, and then created a 6th text box
called "txtMsgComb" with the following expression in the
text box control source:
="TO:"& "" &[txtTo]& "" &"FROM:"& "" &[txtFrom]& "" &
[Time]& "" &[txtMessageDate]& "" &[txtMessage]
I would like the "TO:" and "FROM:" to be in italics and
the font color to be red while the text fields remain
standard black. Is this a possibility?
TIA
 
Mr Browne, thank you for the quick repsonse. Always
grateful for any direction I can get.

cheers!
-----Original Message-----
No.

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

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

Antonio said:
I have a form that displays 5 different data fields in 5
seperate text boxes. I figured out how to combine them
into a single text box, but I was wondering if there was
a way to change the text font and color of certain fields
in the combined text box.
Example
frmMessages contains the following fields:
txtTo, txtFrom, txtTime, txtMessageDate, txtMessage.
I set the visible property to "no" for each of the text
boxes above, and then created a 6th text box
called "txtMsgComb" with the following expression in the
text box control source:
="TO:"& "" &[txtTo]& "" &"FROM:"& "" &[txtFrom]& "" &
[Time]& "" &[txtMessageDate]& "" &[txtMessage]
I would like the "TO:" and "FROM:" to be in italics and
the font color to be red while the text fields remain
standard black. Is this a possibility?
TIA


.
 
I'm not sure How much this ActiveX can do. Please try
http://www.lebans.com/richtext.htm

Albert

Antonio said:
Mr Browne, thank you for the quick repsonse. Always
grateful for any direction I can get.

cheers!
-----Original Message-----
No.

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

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

Antonio said:
I have a form that displays 5 different data fields in 5
seperate text boxes. I figured out how to combine them
into a single text box, but I was wondering if there was
a way to change the text font and color of certain fields
in the combined text box.
Example
frmMessages contains the following fields:
txtTo, txtFrom, txtTime, txtMessageDate, txtMessage.
I set the visible property to "no" for each of the text
boxes above, and then created a 6th text box
called "txtMsgComb" with the following expression in the
text box control source:
="TO:"& "" &[txtTo]& "" &"FROM:"& "" &[txtFrom]& "" &
[Time]& "" &[txtMessageDate]& "" &[txtMessage]
I would like the "TO:" and "FROM:" to be in italics and
the font color to be red while the text fields remain
standard black. Is this a possibility?
TIA


.
 
Stephen's control is excellent where you are prepared to store RTF in a memo
field, but probably not suitable for that Antonio asked, unless he is
willing to construct rich-text-format on the fly and programmatically try
passing it to the control?

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

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

Albert said:
I'm not sure How much this ActiveX can do. Please try
http://www.lebans.com/richtext.htm

Albert

Antonio said:
Mr Browne, thank you for the quick repsonse. Always
grateful for any direction I can get.

cheers!
-----Original Message-----
No.

I have a form that displays 5 different data fields in 5
seperate text boxes. I figured out how to combine them
into a single text box, but I was wondering if there was
a way to change the text font and color of certain fields
in the combined text box.
Example
frmMessages contains the following fields:
txtTo, txtFrom, txtTime, txtMessageDate, txtMessage.
I set the visible property to "no" for each of the text
boxes above, and then created a 6th text box
called "txtMsgComb" with the following expression in the
text box control source:
="TO:"& "" &[txtTo]& "" &"FROM:"& "" &[txtFrom]& "" &
[Time]& "" &[txtMessageDate]& "" &[txtMessage]
I would like the "TO:" and "FROM:" to be in italics and
the font color to be red while the text fields remain
standard black. Is this a possibility?
TIA
 
Back
Top