VBA Text

kitty77

Registered User.
Local time
Today, 17:33
Joined
May 27, 2019
Messages
715
Is it possible to change the font, bold, etc... in vba?

[Field1] = "Apple" & vbCrLf & "Blue" & vbCrLf & "Red"

How can I make "Blue" bold or Italic only?

Thanks...
 
Hi. Where is the text going to be displayed?
 
On a report
 
Where do I set it to rich? Can you give me an example?
 
Where do I set it to rich? Can you give me an example?

In the design view of the report, select the textbox and then look in the properties panel for the text format property.
 
When I change the settings to rich, I get an error.

The setting you entered isn't valid for the property.
 
When I change the settings to rich, I get an error.

The setting you entered isn't valid for the property.
Hi. Can you post a screenshot of what you're changing? Thanks.


PS. It should look something like this:


attachment.php
 

Attachments

  • rtf.png
    rtf.png
    17.3 KB · Views: 206
Yes, it is the same as yours. Same error on a report or form.
Also, tried it on different text fields. I get the same error?
 
Looks like it only works on unbound fields?
Okay, if it's for a bound field, you'll have to go to the table design first and change the text format for the field to Rich Text as well.
 
I don't see anything in the table design where you change text format?
 

Users who are viewing this thread

Back
Top Bottom