Results 1 to 8 of 8
  1. #1
    romadm is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    5

    Combine one item fields in one field

    Hello, I am going deep to Access databases and have faced serious problem.

    I have a table like:
    Book1 | autohor11
    Book1 | autohor12


    Book1 | autohor13

    How can I get report with authors combined in one field, like:
    Book1 | author11, author12, author13

    Groups will not help me, I need one TEXT within field, authors divided by comma.

    Can you help me?

  2. #2
    kimmer is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    100
    How about a report that's Book Author Author etc, but no commas?

  3. #3
    romadm is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    5
    The problem is that I have another table:

    Book1 | Description | Pages
    Book2 | Description | Pages
    Book3 | Description | Pages

    and I need in result with join:
    Book1 |Description|Pages|Author1, Author2
    Book2 |Description|Pages|Author3, Author4

    but no like
    Book1 |Description|Pages|Author1
    Book1 |Description|Pages|Author2.

    I've managed to make some kind of inside report, but I always have authors in column, not in line:
    Author1
    Author2

    If you tell me how to place them in line like Author1 Author2, I'll be happy=)

  4. #4
    kimmer is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    100
    • Create a query that produces a list of unique book titles (you can use DISTINCT).
    • Make a report from the query. It should group by BookTitle and have a BookTitle footer.
    • Create a subreport of authors, and use multiple columns... as many columns as is the max number of authors any book has. The columns need to be across then down. Remove everything from this report, leaving just a tiny Detail section with the Author textbox.
    • Make the second report be a subreport of the first one... place this subreport in the BookTitle footer, and move the BookTitle textbox down into the BookTitle footer too.
    The report must be viewed in Print Preview. It won't look right in any other view.

  5. #5
    romadm is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    5
    Quote Originally Posted by kimmer View Post
    • Create a query that produces a list of unique book titles (you can use DISTINCT).
    • Make a report from the query. It should group by BookTitle and have a BookTitle footer.
    • Create a subreport of authors, and use multiple columns... as many columns as is the max number of authors any book has. The columns need to be across then down. Remove everything from this report, leaving just a tiny Detail section with the Author textbox.
    • Make the second report be a subreport of the first one... place this subreport in the BookTitle footer, and move the BookTitle textbox down into the BookTitle footer too.
    The report must be viewed in Print Preview. It won't look right in any other view.
    I already have table of unique book titles, that's the table with description.

    One question concerning subreport... I should not take multiple columns, there can be up to 30 authors, more over I must have an ability to export exactly that table with multiple Book Title concerning authors.

    Can I do anything with this exact table?:
    Book1 | autohor11
    Book1 | autohor12
    Book1 | autohor13

  6. #6
    kimmer is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    100
    Quote Originally Posted by romadm View Post

    I should not take multiple columns, there can be up to 30 authors, more over I must have an ability to export exactly that table with multiple Book Title concerning authors.

    Can I do anything with this exact table?:
    Book1 | autohor11
    Book1 | autohor12
    Book1 | autohor13
    I apologize, but i do not understand. Please try again to explain. Have you even tried to make the subreport?

    Perhaps when I said "multiple columns", you think I mean table columns, but I am talking about creating a multiple-column report... Design View of the report, Page Setup tab > Columns button.

    But 30 authors! I don't know how that will look. It sure works well with 3 or 4 though.

  7. #7
    kimmer is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    100
    have a look at rptBooksDistinct in print preview

  8. #8
    romadm is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    5
    Thank you for explanation, and example! Really helps.

    But one problem... I used books as an example. My table consists of 1500 "book title" records, and 5000 "authours".

    This way to get what I need slows down my computer extremely. It takes several minutes for my Core2 to prepare report.

    And I have 3 tables more, that should look like exactly "authors"... My computer will die=)

    Can you advice quicker way? I thought we can do it by means of functions, but not reports...

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

Similar Threads

  1. Item not found
    By thart21 in forum Programming
    Replies: 7
    Last Post: 04-14-2010, 10:41 AM
  2. Combine fields into one
    By cotri in forum Forms
    Replies: 2
    Last Post: 03-04-2010, 02:42 PM
  3. Many Fields into one Field
    By batnose in forum Access
    Replies: 2
    Last Post: 11-11-2009, 09:08 AM
  4. Replies: 3
    Last Post: 08-02-2009, 03:52 PM
  5. form formula to combine two fields
    By InvGrp in forum Forms
    Replies: 1
    Last Post: 10-20-2006, 12:10 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