Jan 12 2022 02:30 PM
Experts, how would I format the [txtSection] as italics and blue?
=[Short Description] & " [" & [txtSection] & "]"
Jan 12 2022 03:00 PM
You'll need to convert to a Rich Text data type to support having two different formats applied.
Or, you could place two Plain Text textboxes side by side for the two different formats, with the appropriate color and font applied to each.
Jan 12 2022 06:39 PM
Jan 12 2022 08:56 PM
Jan 12 2022 08:56 PM
Jan 13 2022 02:27 AM - edited Jan 13 2022 02:28 AM
Hi,
A 20 years ago Stephen Lebans demonstrated how to do this in reports using the Print method. You can still download e.g. Luiz Claudio's derived example at http://www.lebans.com/mixbold-plain.htm which by accident even colors sth in blue. However, you have to know VBA a bit to understand and adjust it to your needs.
Servus
Karl
************
Access News
Access DevCon
Jan 13 2022 05:02 AM
George, I have made the change of both fields to Rich Text. The output seems unchanged. I do remember that sometimes you could get extranneous characters (# sign or some < > or others). I do not see any of those characters in the conversion.
Arnel, thank you.
Should I populate the above with my font and not sure if I need to populate em with something?
The output looks like this (no change in text color and I see the codes.
Jan 13 2022 05:48 AM
@Tony2021 You should have a Ribbon Tab enabled for the Rich Text controls which offers the options of font and color, etc. No need to enter the markup manually.
Jan 13 2022 07:56 AM
Jan 13 2022 08:01 AM
Jan 13 2022 08:08 AM
Here's an even wilder idea. Make at least one of the source fields Long Text in Rich Text format. Apply the required formatting in that field. When it is concatenated into this display field, maybe that will bring along that formatting....
Jan 13 2022 08:16 AM
@George Hepworth Yes, that ought to work if you can manage it. Maybe a third, hidden, field with the appropriate formatting applied so that the visible field looks normal, but the formatted field is the one concatenated into this unbound display control.
Jan 13 2022 09:15 AM
George, yes I am open to anything. I placed a separate field with the formatting (I assuem I just simply go to Home then formatting section and select the color I want and I do not go into the field properties bwo the properties sheet. I do not see the formatting in the display field still. I also redragged the fields into the report to make sure the RTF came with it. I do see that you managed to do it per the pic above. If it matters the field I want to format is at the end of the display field. I see yours is at the beginning it appears.
here is my text box code:
=[Short Description] & " [" & [txtSection] & "]"
txtSection is the one I need the formatting on.
Jan 13 2022 09:19 AM
Jan 13 2022 09:56 AM
SolutionJan 13 2022 02:56 PM
Hi George, I see how its setup and I think I am replicating on my side. I dont see how you set the color of the text box Project Status? I think you are doing it some special way because I can not change the color of that box.
Jan 13 2022 03:11 PM
Jan 13 2022 03:40 PM
George,
Sorry but I dont follow.
If I go to Home / Text Formatting and choose the font color, it doesnt change from Red.
here below I changed it to yellow.
Its still RED when the form opens:
Let me know what I am doing wrong.
Jan 13 2022 04:08 PM
Jan 13 2022 09:56 AM
Solution