Results 1 to 8 of 8
  1. #1
    electromarket is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    4

    Concatenating in Query and Truncating Export

    Hi,



    I am having a problem with a query that I am running and exporting.

    Part of the query concatenates a couple of different parts of some tables that I have created and when I export the query to Excel it truncates this cell to 255 characters. If I export it with formatting and layout it truncates it to 4000 characters. When the query is run, its perfectly fine and you can view all the information to copy/paste into Excel. But as soon as you export it you have problems.

    A bit more information.......

    I am attempting to create product descriptions (all of which we have stored in out Access Database). To create these descriptions, here is what I have done;

    Query 1 (creates all the product descriptions):
    General Description - from a memo field in a Table
    Features (html) - from a memo field in a Table
    Specifications (html) - from a memo field in a Table
    Video (html) - from a memo field in a Table
    Images (html) - from a Query

    Query 2 (creates the package descriptions by looking in a linked table which is exported from our Accounts system to find components and then concatenates the descriptions of the components):
    Kit Description - from a Table
    Component 1 Description - from Query 1
    Component 2 (if necessary) Description - from Query 1
    Component 3 (if necessary) Description - from Query 1
    Component 4 (if necessary) Description - from Query 1
    Component 5 (if necessary) Description - from Query 1

    It is the Descriptions in Query 2 that are being truncated when exported to Excel.

    Does anyone have any suggestions?

    Dan.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    A common problem. See the following links for some suggestions:
    http://social.msdn.microsoft.com/For...field-contents
    http://allenbrowne.com/ser-63.html

  3. #3
    electromarket is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    4
    Everyone sends me to that Allen Browne site! I have read through it but I still cannot solve the problem!

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Did you look at that other link?
    The person in the first reply documented many different methods, and claims certain ones will work.

  5. #5
    electromarket is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    4
    Yeah I had a look at the other link but that is for Access 2000, I am running on Access 2007.

  6. #6
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Yeah I had a look at the other link but that is for Access 2000, I am running on Access 2007.
    Did you try the suggestions provided there?
    Many times, what works on Access 2000 will work on Access 2007.

    Of course, you also have an obvious workaround should none of those work. Export the fields individually and perform your concatenation in Excel.

  7. #7
    electromarket is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    4
    The suggestions in there are go to File > Export. Access 2007 does not have this.

    I attempted to export individually and do the concatenations in Excel but the file was so big that it just kept on lagging and virtually crashing out on me.

  8. #8
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    The suggestions in there are go to File > Export. Access 2007 does not have this.
    I believe the equivalent of that in Access 2007 is to just right-click on the query name and select Export.

    Alternatively, it can be found on the External Data menu, on the Export ribbon.

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

Similar Threads

  1. Concatenating Criteria for a Query - Help!
    By Cavman in forum Programming
    Replies: 4
    Last Post: 01-04-2013, 07:23 AM
  2. Replies: 2
    Last Post: 09-18-2012, 09:46 AM
  3. Query is Truncating Memo Field
    By Huddle in forum Queries
    Replies: 1
    Last Post: 07-24-2012, 02:24 PM
  4. Union query truncating a memo field
    By jpkeller55 in forum Queries
    Replies: 7
    Last Post: 05-27-2011, 02:17 PM
  5. Concatenating from a table or query.
    By stephen c in forum Programming
    Replies: 3
    Last Post: 07-13-2009, 08:14 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