Solved

Acc97-IMPORT SSN from Excel or TXT

Posted on 1998-10-02
3
418 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
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 50 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

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

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

785 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