Results 1 to 4 of 4
  1. #1
    giblets is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    21

    Format only part of a concatenated Control Source field

    How can I italicize only sciName within this concatenated Control Source field?



    =[sciName] & " " & "(" & [comName] & ")"

    Thanks!

    Edit:

    Alternatively, is there a way to have two separate text fields/boxes that automatically resize for each entry based on how long the record item is? That way I can individually format them. For example:

    Click image for larger version. 

Name:	example.png 
Views:	33 
Size:	5.0 KB 
ID:	11185
    Last edited by giblets; 02-14-2013 at 09:36 AM. Reason: added other option

  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,625
    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
    giblets is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    21
    My solution was as such:

    • Insert a single text box
    • Change the field Text Format from "Plain Text" to "Rich Text"
    • Insert following code in the Control Source field


    Code:
    ="<i>" & [sciName] & "</i>" & " " & "(" & [comName] & ")"

  4. #4
    tstoneami is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    71
    Wanted to make not here that when you switch a field to RTF, its formatted entirely with limited html, including <br>'s instead of CRLF;s.

    Thanks,

    Troy

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

Similar Threads

  1. My field is not found in Control Source List
    By eemiller1997 in forum Access
    Replies: 6
    Last Post: 10-25-2012, 01:49 PM
  2. Textbox Control Source As Field Input
    By Jester0001 in forum Forms
    Replies: 4
    Last Post: 03-02-2012, 10:50 AM
  3. Format part of field
    By tylerg11 in forum Forms
    Replies: 2
    Last Post: 01-21-2012, 01:48 PM
  4. Replies: 2
    Last Post: 08-18-2011, 11:40 AM
  5. Replies: 1
    Last Post: 04-29-2010, 05: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