|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (11 bit)
Join Date: Dec 2001
Location: Shakopee MN
Posts: 1,293
|
Access 2007 - Importing numbers as text
I deal with large chunks of data that I have no control over formatting when I obtain it. Several 'numbers' are in fact text, like SSN, zip codes etc. I have been able with previous versions of Acess to define a field as text and import into it say 000000001 and it shows up as just that. Access 2007 imports it as 1. The trouble is I have a large set of data tables that I purge monthly, and re populate with the latest information sets and importing to these emptied tables is no longer working correctly.
Help says I need to include text qualifiers in the form of double quotes to get around this, well I do not have the ability to do this, my data comes out as tabbed txt or csv and no ability to place the double quotes. I tried minimum field sizes in Access and import masks neither worked and in fact help states input masks are ignored when importing txt and csv. Now it gets weird, I thought - well the DB is a Access 2007 DB converted from 2003 which was converted from XP and then from Access 97 - perhaps if I set up a brand new DB in 2007... well of course I had to import a data set into a brand new table. There was nothing in this new DB yet right? The leading zeros come in - Ah Ha! - okay it will be a pain to recreate all the tables again but not that much trouble. I test being able to import into an exisitng table by emptying the table via a delete query and re imported into the now exisiting table and now leading zeros are gone again. Oh - Access has no problems writing SSN's already in Access to other tables with the leading zeros kept, the issue is getting them into an exsitng table. So I 'could' import the tables to a new table, copy the name from the exisitng one- delete it and re name the 'new' table, or use the Access 97 copy still floating around in my machine as the import back end database but this seems so stupid. Anyone got any ideas? I tried MS support forums and they could/would not answer the question going back to bad DB design and why are you using Access anyway? I know the design is horrible, but I am stuck with it (inherited from the person I replaced). SSN is the only good primary key in the three different data sources I am forced to use to create reports.
__________________
Never Argue With An Idiot. They'll Drag You Down To Their Level And Then Beat You With Experience. Last edited by sdkfz; 02-16-2007 at 01:18 PM. |
|
|
|
|
|
#2 |
|
Member (11 bit)
Join Date: Dec 2001
Location: Shakopee MN
Posts: 1,293
|
bump
|
|
|
|
|
|
#3 | |
|
Computing Professor
Staff
Premium Member
Join Date: Jun 2001
Posts: 11,718
|
I hate to say this but
Quote:
__________________
Asus M4A77D, 64 X2 6000+, 4 GB Corsair DDR2 800 ram, Radeon 5770. |
|
|
|
|
|
|
#4 |
|
Member (11 bit)
Join Date: Dec 2001
Location: Shakopee MN
Posts: 1,293
|
Thanks Pam, maybe I'll go back to 2003, I got the Office for free (along w/Vista Ult) for going to the launch - so there is no monetary loss at least.
|
|
|
|
|
|
#5 | |
|
Computing Professor
Staff
Premium Member
Join Date: Jun 2001
Posts: 11,718
|
Quote:
Glad you're not out any cash. Check back with the MS Support forums in a few months and see if anything's happened. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Computer Acronyms | Floppyman | Computer Hardware | 156 | 06-18-2006 06:25 AM |
| Heres some Window Secrets | Citron | Windows Tips, Tricks, and Tweaks | 22 | 01-12-2003 07:07 AM |
| Security Advisory: Alcatel SpeedTouch ADSL Modem is Insecure! | Statica | Networking & Online Security | 0 | 04-10-2001 11:57 PM |
| Access text file import | bob | Web Design / Development | 4 | 04-04-2001 03:45 AM |
| Using IP Numbers To Speed Up Web Site Access | Harry | Internet, Web Applications, & The Cloud | 4 | 01-23-2001 07:15 PM |