Results 1 to 5 of 5
  1. #1
    jj1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    128

    Concatenate 2 field with brackets

    I want to concatenate 2 fields which is Course and Hours and I want hours to be in brackets.



    I am using this formula
    CourseHours: [TrainingCourseList2].[2criteria] & " " & [TrainingCourseList2].[Hours]
    I don't know how to add brackets to hours .

    I want it to look like this....

    Leadership (4) which would mean Leadership course is of 4 hours.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,537
    Try:
    Code:
    CourseHours: [TrainingCourseList2].[2criteria] & " (" & [TrainingCourseList2].[Hours] & ")"
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    jj1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    128
    Thanks Bob. It worked.

  4. #4
    jj1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    128
    I have one more question. How do I join two crosstab queries so that I have 2 column rows.
    So for example, I want all people name in row heading of crosstab query and courses they need to learn in column heading and another column heading which is type of course.
    Course A Course B Course C
    Type A Type B Type C
    Joe
    John
    Jessica

  5. #5
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    last question also posted in new thread

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

Similar Threads

  1. Replies: 17
    Last Post: 03-16-2014, 10:52 PM
  2. Replies: 1
    Last Post: 07-12-2013, 01:15 PM
  3. Concatenate a field to appear on a form
    By snowboarder234 in forum Forms
    Replies: 9
    Last Post: 06-05-2013, 02:01 PM
  4. Reset autonumber in a concatenate field
    By Fish218 in forum Forms
    Replies: 6
    Last Post: 03-13-2012, 11:58 AM
  5. Search for brackets
    By stocktsi in forum Access
    Replies: 3
    Last Post: 11-14-2011, 06:18 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