Results 1 to 2 of 2
  1. #1
    NateHaze is offline Novice
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    6

    Bold only certain words in textbox?

    I have a large text box that will show a variety of different fields and text and I would like to bold just certain words. For example:



    =[First] & " " & [Last] & " got a " & [Score] & "on the math test. " & "Good Job!"

    I would like to bold the score and "good job" so the line reads:

    Bob Johnson got a 97 on the math test. Good job!

    Any ideas? I have to do it all in one text box.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    to Bold is the rich text feature, and I don't think that can be programmatically & dynamically manipulated. If it can, it will be complicated.

    to attempt to do any sort of conditional formatting that varies within one string is also not particularly feasible, ...imo....

    your best bet is to split in into separate textboxes:

    / Bob Johnson got a / 97 / on the math test. / Good job! /

    and then use traditional conditional format features which you can read about in any Access textbook...... probably will look a little more choppy and you'll need to fine tune the layout of the fields to be as normally close looking as possible. But this is doable with this approach.

    hope it helps.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. numbers to words
    By chavez_sea in forum Access
    Replies: 14
    Last Post: 01-16-2013, 07:25 PM
  2. Bold Field by Cursor Position
    By Rawb in forum Forms
    Replies: 4
    Last Post: 02-08-2011, 08:03 AM
  3. Bold Cells
    By jcsports31 in forum Access
    Replies: 12
    Last Post: 09-10-2010, 12:15 PM
  4. Textbox, remove certain words.
    By dgrzalja in forum Forms
    Replies: 0
    Last Post: 11-03-2009, 09:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums