Results 1 to 4 of 4
  1. #1
    Wiretwister is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2023
    Posts
    1

    Concatenating Field Data That Has Been Chopped Up And Spread Out Over Multiple Records


    Hello Everyone...
    I am a new user of Access (in Office 365). I created a Bill of Material query that works just fine, except that text strings over a certain length in "Location01" get split up and placed on extra records. This creates "almost" duplicate records. Here's an example:
    Click image for larger version. 

Name:	desplitter.jpg 
Views:	20 
Size:	43.4 KB 
ID:	50921
    In this example, I want to make the top 5 lines come out to be like the bottom 3 lines, but I don't know where to start. Data Types, like Short Text, Long Text, doesn't matter. It's just a characteristic of the data. Do I modify the query somehow, or do I create a new query? Or is this something to be fixed within a Report? Any ideas on how to approach this task would be greatly appreciated.

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    I have never seen that behaviour (splitting a field into different records) and suspect they are really not the same record because of other fields in your query that make that so. Even if you have the fields there for criteria purposes but have chosen to not display them in your query. If that is not the case, I suspect many of us here would like to see a copy of that db.

    Perhaps what you need is this
    Concatenate related
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    xps35's Avatar
    xps35 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    232
    If all the values (D3, D6 D7, ................) are in one field, that's bad design anyway.
    Groeten,

    Peter

  4. #4
    Join Date
    Apr 2017
    Posts
    1,680
    Quote Originally Posted by xps35 View Post
    If all the values (D3, D6 D7, ................) are in one field, that's bad design anyway.
    Not only this! As OP has field names like Parprt01 and Comprt01 in his/her post, there is a reason to suspect that some info of same type is been split between different fields.

    To OP! More than about what you get wrong, anyone trying to help you must get the info, what were your data, and what you did with it, to get such result. I.e. as minimum, the structure of all source tables, and the query string you used to get your result. And having copy of your database containing copies of source tables (at least with columns used in query present) with enough (dummy) data to get at least a couple of query result rows (at least one of them being the splitted one), would be helpful too (NB! A copy of your database, not some pictures of those tables!).

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

Similar Threads

  1. concatenating data into one text field
    By bethg79 in forum Reports
    Replies: 3
    Last Post: 01-22-2021, 04:27 PM
  2. Replies: 10
    Last Post: 11-18-2014, 04:25 PM
  3. Replies: 1
    Last Post: 04-19-2013, 06:53 PM
  4. Replies: 3
    Last Post: 03-30-2012, 10:50 AM
  5. Contents of Memo field chopped off
    By cphelps48 in forum Reports
    Replies: 3
    Last Post: 09-20-2011, 04:36 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