Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8820907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:43:27+00:00 2026-06-14T05:43:27+00:00

I have a VBA routine which exports data to CSV for import into another

  • 0

I have a VBA routine which exports data to CSV for import into another app. Two of the fields I am working on have quite long XML strings as the contents.

Both of these fields are being corrupted on export. The values look fine in the query results, but by the time I export the data to CSV its a mess. An example is:

<ItemSpecifics>
<NameValueList>
    <Name><![CDATA[Material]]></Name>
    <Value><![CDATA[Solid Wood]]></Value>
    <Value><![CDATA[Pine]]></Value>
    <Source>ItemSpecific</Source>
</NameValueList>
<NameValueList>
    <Name><![CDATA[Room]]></Name>
    <Value><![CDATA[Bedroom]]></Value>
    <???t?t?9\????t?t?t???t?t???t???9???9?????????????9?9???0

Any ideas why this might be happening?

–EDIT–
Ok, this can’t be coincidence – the corruption happens at character 256…. the access limit on a text field. Seems odd thyough because the result looks fine in the query results… any way around this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:43:28+00:00Added an answer on June 14, 2026 at 5:43 am

    I don’t have a definitive answer for you, but since I do a lot of importing & exporting among various databases and apps, I thought I would do a little googling of the problem.

    What I have found is that Access has a limit of 255 on an export if you ask it to process the data, i.e. aggregating, de-duplicating, formatting, and so on.

    I know this doesn’t describe your situation completely, but I thought it was close that this work around might help.
    Someone said that the limitation is only when you export from a query, but not a table. His solution was to do an append query to a temp table, ten export that table.

    Good luck

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a VBA macro that copies rows from one worksheet into another based
I have a VBA function within a spreadsheet which operates on another spreadsheet that
I have a VBA script that inserts long strings into Excel cells. In some
I have a VBA script that imports a layout into an exsting drawing, its
I have some VBA code in an Excel workbook. I have a cell which
I have a VBA publishing macro in Excel which generates a published workbook based
I have VBA code that takes my data on the master worksheet and puts
I have an EXCEL VBA function which should return the address of the first
I have working VBA code, but I can't convert it to C#. I have
Using Excel 2002 and have a VBA app that has some UserForms. The main

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.