DoCmd.TransferText method is corrupting data.

Posted on 2003-02-25
Medium Priority
Last Modified: 2008-02-01
I have an MS Access 97 database whose tables are being populated from Windows text files through a VB executable.

The VB executable, after opening the database, runs the following command using the MS Access DoCmd method:

oMS.Application.DoCmd.TransferText , , sTable, sLoadFile, True

The tables are populated as expected, but, accented letters (used in Spanish words for example) are replaced with other symbols (such as Greek characters).

If I "manually" import the same text files, Access correctly interprets the accented letters without a problem.

Are there any undocumented parameters for the Access DoCmd.TransferText method which will preserve the accented letters?

Only the 'automation' method appears to have the problem.

Question by:colin4
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 12

Accepted Solution

nexusnation earned 400 total points
ID: 8019700
sorry, but there is no parameter. however, you can run update queries to find each symbol and replace with it's corresponding letter (as different non-recongized letters should have their own corresponding symbol).

getting the idea?

LVL 18

Expert Comment

ID: 8742650
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept question, points to nexusnation
Please leave any comments here within the next seven days.
EE Cleanup Volunteer

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question