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

    Concatenate all rows for a report field into a multi-line text box.

    Hi,

    I have a report that has 4 levels of grouping.
    The last group is Branch.
    For each Branch - the report displays detail rows [Name & $ Amount] for customers who meet the criteria set by the query off which the report runs.

    I have a request from the report user to concatenate all the Names and $ Amounts for each Branch wrapped-around into one text box so it would look more like this:

    Branch A
    Name1 $1234.00, Name2 $1234.00, Name3 $1234.00,
    Name4 $1234.00, Name5 $1234.00, Name6 $1234.00, ...
    than what it looks like now:

    Branch A
    Name1 $1234.00
    Name2 $1324.00
    Name3 $1234.00

    . . . you'll have to excuse how I did the above . . . it's not exactly how the report looks but it's as close as I can get.

    If I can get the detail concatenated - the user can display Branches with a lot of customers in a smaller space.



    Q 1. Can I get my report to do this?
    Q 2. If not, can I get the query to do this?
    Q 3. If not . . . I guess I have to code it?

    I'd appreciate any suggestions.

    Thanks!

    Robin

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Have you looked at columns in the report by the way?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Hi Paul,
    I'm not sure I understand what you mean when you ask if I've looked at columns in the report. Could you elaborate for me please?
    Robin

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    In Page Setup is a Column tab. You can have a report that normally goes down like your current data and put it into columns, so

    Name1 $1234.00
    Name2 $1324.00
    Name3 $1234.00

    becomes

    Name1 $1234.00 Name2 $1324.00 Name3 $1234.00
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Sorry Paul.
    I still don't get it.
    I opened up the Page Setup and the Columns Tab - but don't know what to do once I'm in there! Sorry!

    My 'Name' and 'Amount' are two fields on the report.
    I can make them into a single field in the query - but how do I use the 'Columns' tab to get all the name & amount values into one box?

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Using the Columns settings wouldn't put them into one box. You'd set up your report with those 2 fields (or 1 combined field), so that when you viewed it they just ran down the page. When you change the info in columns, Access will take the single column and create columns.
    Last edited by pbaldy; 03-02-2012 at 03:06 PM. Reason: Attachment removed to reduce board clutter
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Querying Multi Line Text Box in MS Access Forms
    By spindlebeakin10 in forum Queries
    Replies: 5
    Last Post: 12-09-2010, 05:50 PM
  2. Concatenate Multiple Rows into One
    By Knarly555 in forum Queries
    Replies: 5
    Last Post: 11-12-2010, 06:51 PM
  3. Replies: 1
    Last Post: 06-01-2009, 01:09 PM
  4. Replies: 3
    Last Post: 03-24-2006, 08:40 AM
  5. Concatenate two fields (text & number) for key field
    By Larry Elfenbein in forum Forms
    Replies: 2
    Last Post: 11-10-2005, 07:45 AM

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