Results 1 to 5 of 5
  1. #1
    nik9 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    4

    Is it possible to Merge columns in a Report

    Hello All,


    I am a newbie in Access creating reports and queries. I am seeking help with an existing excel report, I have created a database for in Access. Now, I am at the createing a report stage and would like to build my report in the same presentation as my existing excel report. Currently, my excel reports presents the expense spend by vice president and their respective departments in three merge column titles: YTD (year to date), MTD (month to date), and FY(full year). Is it possible to merge columns in Access?

    In each respective merge column for example: on line 5, I have 6 columns D-I within the YTD merged column (line 4), J column is blank, K-N is 4 columns MTD merged (line 4), and 6 columns T-Y columns for FY merged columns (line 4).

    I'm not quite sure how to copy an example here, but I am hoping I have given enough detail to get help. Please let me know if I need to elaborate further.
    Thanks

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    You CAN 'merge' columns in an Access query.
    In your Query Design -> construct a field like this:
    MergedFieldNameYouWant: FieldName1 + " " + FieldName2 + " " FieldName3 . . .

    I might do something like that if I was concatenating a LastName, MiddleInitial & FirstName . . . or different Address Lines into one field in the report.
    If you're just concatenating text values then I don't suppose there'd be a problem . . . you didn't specify what kind of data was in each of your merged columns.

    Let me know if I answered your question.

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    MergedFieldNameYouWant: FieldName1 + " " + FieldName2 + " " FieldName3
    Robeen, It looks like you missed an operator at the last fieldname...
    Code:
    MergedFieldNameYouWant: FieldName1 + " " + FieldName2 + " " + FieldName3


    And, while that will probably word, for concatenating, the preferred (from my readings) operator is the ampersand:
    Code:
    MergedFieldNameYouWant: FieldName1 & " " & FieldName2 & " " & FieldName3

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596

    lol . . . my bad on both counts.

    . . .about the '+' instead of the '&' . . .
    I'm working in an enviroment where '+' is the concatenating operator!
    Thanks Steve!!

  5. #5
    nik9 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    4
    no problem, I'll re-try

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

Similar Threads

  1. Setting up a mail merge or report letter
    By AndrewsPanda in forum Access
    Replies: 8
    Last Post: 09-29-2011, 05:59 PM
  2. 2 columns on report
    By banny04 in forum Reports
    Replies: 2
    Last Post: 09-07-2011, 05:08 AM
  3. report has several columns
    By Fretless in forum Reports
    Replies: 0
    Last Post: 03-04-2011, 03:31 PM
  4. Word Merge Report
    By Wayne311 in forum Reports
    Replies: 13
    Last Post: 02-21-2011, 12:03 AM
  5. help with columns in report
    By bjsbrown in forum Reports
    Replies: 8
    Last Post: 06-14-2010, 09:17 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