Bold & Italic

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Using Access 2002 is it possible to set the text in a text box to either
Bold or italic using vba. If possible an example of code would be
appreciated.

TIA
Tom
 
This code sets a text box to bold and italic:
Forms!Form1!Textbox1.FontBold = 600
Forms!Form1!Textbox1.FontItalic = True

The text box in Access cannot format part of the text different from the
rest in the same text box.
 
Use VBA code to set the .FontBold and .FontItalic properties of the control.
True turns the property "on", and False turns the property "off".
 
Thanks Allen & Ken for your help.

Allen's comments set me thinking along the lines of: if

Textbox1 is set to bold & Textbox2 is set to italic is it possible to
copy and paste both textboxes, with these font settings into Stephen Lebans
RTF2 control, on the same form, and still retain the settings?

TIA
Tom
 
Back
Top