Forum Discussion
Format text box as italics and blue
- Jan 13, 2022
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.
- George_HepworthJan 16, 2022Silver ContributorAfter evaluating the use of the <div></div> markup illustrated in Colin's sample, I stand corrected. It is possible, but you have to get the syntax right!
- George_HepworthJan 16, 2022Silver ContributorI'll look at that, but the requirement is to take values from two different fields and concatenate them into a calculated value in the control, which means they have to come into the expression already formatted. However see that you have included the mark up with <div></div> that might be incorporated into the expression successfully.
- isladogsJan 15, 2022MVP
Apologies but I've only just noticed this thread.
In case it is any use to you at this late stage, please see the example app attached:Here is a screenshot:
Good luck
- George_HepworthJan 14, 2022Silver Contributor
Tony2021 SOmetimes it takes a bit of digging to master new things. Continued success.
- Tony2021Jan 14, 2022Iron ContributorI see now. I can replicate in the form and I made a report in your db and it works. I cant get it to work on my report but I imagine i need to be a little more careful and see where I am wrong. thank you!
- George_HepworthJan 14, 2022Silver Contributor
Yes, I think that's it. It appears that you have to apply custom formatting while the form is open in single or continuous view. I believe in design view that only controls the default, plain vanilla format.
Also, make sure you select the text to be formatted first as well. Otherwise it's just the default.
- George_HepworthJan 14, 2022Silver ContributorI can't see anything really, except that your screenshot appears to be in design view. I made the format changes in normal, single view.
- Tony2021Jan 13, 2022Iron Contributor
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.
- George_HepworthJan 13, 2022Silver Contributor
- Tony2021Jan 13, 2022Iron Contributor
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.