Results 1 to 4 of 4
  1. #1
    tikrit is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    2

    Changing Font to Bold

    Hello,
    I have the following expression in a calculated Field in Access 2010.
    >
    ="We certify that Mr." & " " & [Name] & " " & "Has Graduated"
    >


    And it works really fine. It takes the name from the [Name] field.
    I want to know how make the name with bold font alone? Is there any method or any code to write in the Expression Builder?
    Thanks in advance

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Google: Access rich text format

    Start with http://office.microsoft.com/en-us/ac...010014097.aspx

    I just tested setting an unbound textbox to RTF in the TextFormat property and this allowed me to use the RTF tools on the ribbon Home tab. So I guess can be done with VBA code using the HTML code tags. However, if you want this for a report, that does complicate things.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    tikrit is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    2
    Quote Originally Posted by June7 View Post
    Google: Access rich text format

    Start with http://office.microsoft.com/en-us/ac...010014097.aspx

    I just tested setting an unbound textbox to RTF in the TextFormat property and this allowed me to use the RTF tools on the ribbon Home tab. So I guess can be done with VBA code using the HTML code tags. However, if you want this for a report, that does complicate things.
    Thank you so much for your replay.
    If you know how to do it I can send you the file to your email. I will pay money for you if finish the file.
    Can you do it ?
    Thank you so much

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I have never used RTF and don't want to build your db. I will try to help you achieve your goal but the task is yours.

    As this thread points out, prior to Access2007, VBA was only way to save RTF data into record. I don't what that code would be. http://www.techrepublic.com/blog/mso...-and-2010/4795

    This thread discusses old RTF coding http://stackoverflow.com/questions/5...ld-in-a-report

    Access 2007 introduced RTF tool. Enter the text in control bound to memo field and use the tool to set the format.

    I did some more testing. You will have to put the entire statement you want on report into the memo field. Concatenation of the RTF memo field shows only the normal text. The RTF field data did not show.

    Here is a very long thread discussing the RTF issue. http://bytes.com/topic/access/answer...t-deficiencies
    It suggests that the memo field can be populated programmatically. Will have to learn HTML code tags to do that. I just did a quick test to insert new record with RTF text and it works:
    Currentdb.Execute "INSERT INTO Umpires(UMPID, TEST) VALUES('mine','This is a <b>test</b> of RTF.')
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Bold field
    By devcon in forum Reports
    Replies: 1
    Last Post: 09-23-2011, 10:32 AM
  2. changing the default font
    By wthoffman in forum Access
    Replies: 3
    Last Post: 01-11-2011, 11:15 AM
  3. Changing font color based on criteria
    By Pattie Weaver in forum Reports
    Replies: 5
    Last Post: 11-02-2010, 03:38 PM
  4. Bold Cells
    By jcsports31 in forum Access
    Replies: 12
    Last Post: 09-10-2010, 12:15 PM

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