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 / July 2005

Tip: Looking for answers? Try searching our database.

export - no leading zeros

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Henry - 15 Jul 2005 16:45 GMT
Hi, I am exporting data from a table to a fixed-width text file using an
export spec.

One field I export is a text datatype, but it does only contain numbers. I
used a text datatype because I need to preserve the leading zeros. The end
result is the text file has stripped away the leading zeros...........why??

The export wizard shows them along the way........

I am using Access 2002

Thanks
Henry
Jeff Boyce - 15 Jul 2005 16:51 GMT
Henry

Consider creating a query that collects the information you'll be exporting.
On the text field with numbers, convert the field explicitly to
characters/text using the CStr() function (e.g., one of the query output
fields would look something like:  ThisOutput: CStr([YourField])).  Then
export the query.

Also consider checking the field-type the export specification is using for
this field -- it sounds like this is being exported as a numeric value.

Good luck

Jeff Boyce
<Access MVP>

> Hi, I am exporting data from a table to a fixed-width text file using an
> export spec.
[quoted text clipped - 10 lines]
> Thanks
> Henry
 
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.