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 / September 2004

Tip: Looking for answers? Try searching our database.

Exporting to text format

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yui - 03 Sep 2004 00:57 GMT
I am exporting database file to text(tab delimited)
format, and it cuts off at two decimal degrees.  I need
all four decimal places.  How do I fix that?    For
exmaple, it shows, 2.32...I want 2.32456.
Joe Fallon - 04 Sep 2004 03:28 GMT
If your field is character based and needs to be right justified try:
Field: MyRightText: Right$(Space(10) & MyField,10)

If your field is numeric and needs leading zeroes use a similar technique to
return leading zeroes.
Field: MyRightText: Right$("0000000000" & MyField,10)

For decimal problems:
Create a query with the fields that you want to export and use the Format()
function to specify the number of decimal places in the number field. For
example, if your field has 4 decimal places, the column in the query grid
would look as follows:

Field: Format([MyField],"##0.0000")

Signature

Joe Fallon
Access MVP

>I am exporting database file to text(tab delimited)
> format, and it cuts off at two decimal degrees.  I need
> all four decimal places.  How do I fix that?    For
> exmaple, it shows, 2.32...I want 2.32456.
 
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.