Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Acc97-IMPORT SSN from Excel or TXT

Posted on 1998-10-02
3
Medium Priority
?
463 Views
Last Modified: 2008-02-07
I have an Excel-97 file and a TXT file I need to import into Access and merge on SSN. Cell is formatted as text in both files.  Access says it has a conversion error and does not load any records where SSN starts with a 0(zero)!!! There must be a way to do this. I can't believe a million other people don't need to do this! Yet the ZIP code formatted exactly the same way comes in great. The only difference I can see is 9-digits vs. 5-digits.????
0
Comment
Question by:ronallard
[X]
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
3 Comments
 

Expert Comment

by:JCreson
ID: 1964348
You may have to create an Import spec for your text file.  When you set up your import, look at the Advanced button in the lower left corner of the Import Wizard.  With that, you can set up a spec to get the data into the types you need.
Hope that helps...
0
 
LVL 3

Accepted Solution

by:
kaldrich earned 200 total points
ID: 1964349
Ah, yes, this brings back fond memories.  What you need to do is concatenate information in the Excel file, copy and paste it specially, and delete the original row.  To do this:

1. Copy your file.

2. In the copied file, create a row next to your SS# row.

3. Set the first value in it as = '"' & (Cell your SS# is in) & '"'.  This should create a field that looks like this: "999999999".  Copy the formula down to the bottom.

4. Highlight the column and copy it.

5. Go into Edit, Paste Special, and select "Values".

6. Delete your original column of SS#s.

7. Do your import.

Hope this helps.  Thanks.

Kevin
0
 

Author Comment

by:ronallard
ID: 1964350
Thanks - works great!
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

721 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