Share via

Access 2010 Import Issue: Comma problem

Anonymous
2012-05-25T23:06:02+00:00

In Access 2010, I'm trying to import a tab delimited file (either csv or txt format) and when one of the fields is numeric with a comma (e.g. 1,234 not 1234) that value will not import, it gets nulled out.  This problem occurs with minimal rows and columns, and a field formatted as long integer or double.  I cannot alter the import file to remove the comma.  Any suggestions to load the file as is?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2012-09-21T15:24:47+00:00

    Yup, I can confirm this bug. This only shows up for me when importing into an existing table that was created in Access 2010 (2003 tables are not affected). 

    Instead of writing custom code to work around it, I found a much easier way.  Import the data into a new table, setting the proper data types in the import process.  Formatted numbers will be imported correctly.  Then make an append query to add to the table you wanted the data actually imported into in the first place.

    Our shop uses access extensively to reformat and combine data into many reports.  This is the fastest way we have found to work around the regression.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2013-05-20T20:11:53+00:00

    In Access 2010, I'm trying to import a tab delimited file (either csv or txt format) and when one of the fields is numeric with a comma (e.g. 1,234 not 1234) that value will not import, it gets nulled out.  This problem occurs with minimal rows and columns, and a field formatted as long integer or double.  I cannot alter the import file to remove the comma.  Any suggestions to load the file as is?

    Import the field as text.  Then use the CLNG function in an access query to convert it to an integer.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2013-05-09T18:31:38+00:00

    I had the same problem. I installed "access developer extensions 2010". If I desinstall it I can now import files with numeric numbers.

    I don't know if there is something to correct this issue.

    Have a nice day.

    Was this answer helpful?

    0 comments No comments
  4. HansV 462.6K Reputation points
    2012-05-26T09:52:19+00:00

    You could write VBA code to read the text file line by line, parse each line into fields and add them to a table.

    Was this answer helpful?

    0 comments No comments