Results 1 to 5 of 5
  1. #1
    BatmanMR287 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2014
    Posts
    69

    Inserting text box between two labels

    I need to have a line on a report says the word "For" before a name and "Only" after the name on the same line. The problem is spacing, the names will have different numbers of characters so how do I make it look like there is only one space between each word?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Concatenate literal text and fields with expression in query or textbox ControlSource.
    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
    BatmanMR287 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2014
    Posts
    69
    Can I get an example of the expression? And where do I put it in the query?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    In a query, put expression on Field row. This is constructing a field in query with expression.

    "For " & [some field here] & " Only"
    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.

  5. #5
    BatmanMR287 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2014
    Posts
    69
    That works! I used the expression builder because the field is used in two other places on the report. I had to put it in like this. =[some field here] & " Comments Only". It looks like I could have just typed that into the textbox in design mode as well. Thanks June7.

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

Similar Threads

  1. Replies: 3
    Last Post: 07-28-2014, 03:02 PM
  2. inserting "dashes" into text field
    By desimoreno in forum Access
    Replies: 2
    Last Post: 05-23-2013, 11:44 AM
  3. Replies: 12
    Last Post: 10-22-2012, 06:11 AM
  4. Inserting Data into fixed text
    By Earthmover in forum Access
    Replies: 6
    Last Post: 02-09-2012, 11:12 PM
  5. Inserting text from a function
    By Mclaren in forum Programming
    Replies: 3
    Last Post: 03-08-2011, 01:29 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