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 / Importing / Linking / February 2008

Tip: Looking for answers? Try searching our database.

Import failing on decimals

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike P - 22 Feb 2008 13:31 GMT
I am importing a text, tab delimited file into an access table using a File
Specification via the command. I am using Access 2007

DoCmd.TransferText acImportDelim, "myImport_Specification",  "tblDates",  
gstrImportFile

One of the fields is not importing the data.  It is a numeric field that has
decimal numbers without four digits.  For example, .0487 and .1932  

I have this field set type of the table is set to “number” with the decimal
point set to auto. The numbers are imported with the value of 0.  I also
tried to set the field type to “currency” but the data in the able is still 0
after the import.  

Any idea of what I am doing wrong.  The goal is to have the value of .0487
on the import set to .0487 in the table, not 0.

Thank you in advance for your time!
Klatuu - 22 Feb 2008 14:14 GMT
Have you tried using either Single or Double data types?  Be sure you change
both the field in the destination table and in the import spec.

Signature

Dave Hargis, Microsoft Access MVP

> I am importing a text, tab delimited file into an access table using a File
> Specification via the command. I am using Access 2007
[quoted text clipped - 14 lines]
>
> Thank you in advance for your time!
 
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.