Results 1 to 9 of 9
  1. #1
    botilismus is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Dec 2017
    Posts
    11

    make the text in the field bold

    hi. I change text colour in a query field by using ![Red] for example. So how can I make a text in a field bold in a query?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    Don't think can. Use forms and reports and set formatting of controls.

    Exactly where and how do you use ![Red]? Doesn't work for me in Format property.
    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
    botilismus is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Dec 2017
    Posts
    11
    When you open design view in query, you can click on field which you want change colour then from Properties Window on right, write ![Red] on "Format" part. Then Save query and open it again.

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,991
    Well I never knew that you could add colour to query fields ....
    Also works for Blue, White (!!!), Green, Cyan and Yellow in text fields using ![Colour] notation

    EDIT:
    For number fields, use e.g. #[Red] or [Blue]# instead
    Date fields change colour but get 'converted' to long integer value;

    Click image for larger version. 

Name:	ColourfulQuery.PNG 
Views:	10 
Size:	29.9 KB 
ID:	31833

    Sorry but no idea whether some method exists for Bold as well.
    However, of course dead easy to do in a form

  5. #5
    botilismus is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Dec 2017
    Posts
    11
    I mean make text fields bold. I have a query. I want to sent it excel with a button. While I sent it excel, I want that some text fields will be bold.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    Right, I tried on date and number fields when I posted my response. Confirmed this formatting works only on text field. Also works in table.

    However, cannot do any other special effects on fields in table/query.

    Tested export of table with color formatting. The formatting does not export.
    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.

  7. #7
    botilismus is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Dec 2017
    Posts
    11
    So how can I do that? With a vba code?

  8. #8
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,991
    @June
    Strange that this is possible - I'd never heard of it before.
    Not sure how useful it is but its there for anyone who needs it!
    I also tried lots of other effects - bold/ italic / underline - all unsuccessfully

    @botilismus
    Thanks for teaching me something new!
    You need to do the formatting in Excel after exporting

  9. #9
    botilismus is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Dec 2017
    Posts
    11
    You are welcome

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

Similar Threads

  1. Replies: 4
    Last Post: 09-08-2017, 03:19 AM
  2. How to bold text within concatenate ?
    By adnancanada in forum Queries
    Replies: 12
    Last Post: 02-10-2016, 03:04 AM
  3. Word Automation VBA: Make few words in range bold
    By besuchanko in forum Programming
    Replies: 1
    Last Post: 04-01-2013, 10:12 PM
  4. How do I Bold the first Text in ListBox
    By uronmapu in forum Access
    Replies: 8
    Last Post: 06-17-2012, 09:32 AM
  5. Bold portion of text in memo field.
    By kenton.l.sparks@gmail.com in forum Access
    Replies: 1
    Last Post: 05-01-2012, 03:32 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