Results 1 to 5 of 5
  1. #1
    Steve54299 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    1

    I need help making a text box with two fields added together.

    I have made a simple database with just two fields in the table. They are "Field 1" and "Field 2".

    I want to combine these two fields into a text box on forms, queries, and reports with "Field 1" in normal print and "Field 2" in italicized print.

    Example:

    [Field 1] = Dog

    [Field 2] = Cattle

    I am trying to use the following expression.

    [Field 1] + " " + [Field 2] = To give me the answer Dog Cattle

    What am I doing wrong?

    I appreciate any help you can give. Thanks......

    Signed Steve54299

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Maybe something like ...
    Code:
    =[Field 1] & " " & [Field 2]

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I believe you will have difficulty putting the two different fonts in the same control.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by RuralGuy View Post
    I believe you will have difficulty putting the two different fonts in the same control.
    I did not notice that. You could use Rich Text vs. Plain Text in the unbound control's property and then add some HTML tags.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Steve,
    Since this is your first post and not a typical request, can you tell us a little more about the requirement?

    Good luck with you project and welcome to the forum.

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

Similar Threads

  1. Numbering with added text to it
    By stanley721 in forum Reports
    Replies: 3
    Last Post: 03-24-2015, 11:15 AM
  2. Making a Combo Box look like a Text Box
    By EddieN1 in forum Forms
    Replies: 11
    Last Post: 07-19-2013, 12:17 AM
  3. Replies: 1
    Last Post: 10-04-2012, 11:28 PM
  4. added text to entire column in the Query
    By Jerseynjphillypa in forum Queries
    Replies: 3
    Last Post: 06-12-2012, 09:39 AM
  5. Replies: 5
    Last Post: 08-05-2011, 12:33 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