We help IT Professionals succeed at work.

Importing or Linking Excel worksheet to Access as a table coming back with errors

GPSPOW
GPSPOW asked
on
100 Views
Last Modified: 2016-02-11
I have a comma delimited txt and csv versions of a data set I am trying to either import or link in a MS-Access 2010 database.  The data set has over 100,000 lines.  This database was created in a pre-2003 version of Access but I have saved it to a 2010 version.

When I try to import the external data to the database, the 3rd field, FundCenter, does not copy over and I get NULL's at row 8550.  I have tried both the txt and csv versions of the data set and get the same result.  I have gone into the csv version and set the column to text without any success.  

I am trying to set up a macro to import the data automatically but if I cannot get it to work manually the macro is a mute point.

I have attached the txt file.  Can someone take a look and see what I need to do?

Thanks

Glen
FI-Data-Extract-Actuals-2015-GlenPCopy.t
Comment
Watch Question

CERTIFIED EXPERT
Distinguished Expert 2017
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Distinguished Expert 2017

Commented:
I figured out your problem too.  And you do NOT want to import the integers as double.  You want to import them as text.  They may look like numbers but they are text strings and importing them as double drops the leading zeros.

Author

Commented:
Figured out the problem before I got a response.
CERTIFIED EXPERT
Distinguished Expert 2017

Commented:
I answered your question 14 minutes after you posted it :)  That wasn't the point though.  I just wanted to make sure that you specify that the long numbers are text because if you specify they are numbers, leading zeros (if any) will be dropped.  Numeric fields do not support leading zeros.  Only text fields support leading zeros.  In the US, we use 5 digit "numeric" zip codes but here in New England we understand that zip code can not be defined as numeric or our zip codes become 4 digits instead of 5.  If you don't use a field for arithmetic, don't give it a numeric data type even if it only contains numbers.

Author

Commented:
Ok.

Got it.

Thanks

Glen
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.