Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / February 2007

Tip: Looking for answers? Try searching our database.

Values Dropped When Importing Text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Smartin - 27 Feb 2007 22:37 GMT
Hi All,

Using A2003. I discovered a glitch in my database today that I traced
back to a text file import.

I already have a table in place to receive the text. One of the table
fields "CLM" is a 20 character text field, zero-length OK, not required.
The text file I use to populate the table contains a 10-character
element in the CLM position. The actual values look something like this:
  WC02123456
  WC03987654
  0000979797
  0004321000

What I found today is all the CLM values that look numeric
("0004321000") were dropped and CLM is Null. Moreover, /only/ those
kinds of values were dropped. The alphanumeric values are all there.

Has anyone seen this or have ideas how to prevent it? Note I cannot make
CLM a required field.

I can go back and fill in the missing values in another way, but the
extra step seems unnecessary, and this mysterious omission sort of
breaks my confidence.

Signature

Smartin

dbahooker@hotmail.com - 28 Feb 2007 01:22 GMT
yeah I got fed up with this crap about a decade ago; and I moved to
'Data Transformation Services'

MDB is for lamers and retards.
Move to SQL Server or have countless sleepless nights

-Aaron

> Hi All,
>
[quoted text clipped - 23 lines]
> --
> Smartin
JamesDeckert - 28 Feb 2007 04:06 GMT
Comma delimited or Fixed width?
In your text file are both the text and numbers contained in quotes or
neither or what?
In the import specification it is possible to specify the text qualifier. If
the text is contained in quotes and the number is not, Access may not think
it is a text field???

throwing out some thoughts,
James

> Hi All,
>
[quoted text clipped - 20 lines]
> extra step seems unnecessary, and this mysterious omission sort of
> breaks my confidence.
Smartin - 28 Feb 2007 23:14 GMT
> Comma delimited or Fixed width?
> In your text file are both the text and numbers contained in quotes or
[quoted text clipped - 5 lines]
> throwing out some thoughts,
> James

It's tab-delimited, but after looking more closely at my problem today I
realized I omitted an important step in my original problem description.
The root cause is operator error... The text is loaded in Excel first,
then the Excel data is imported by Access. There are a couple reasons I
was doing this, but I think I shall have to find a better way.

Anyway I think that explains it. Excel makes numeric cells where the txt
data looks numeric. The Access import definition for CLM is text, and it
balks when it encounters numeric data cells.

Sorry to have mislead you. Thanks for your thoughts.

Signature

Smartin

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.