A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Exports and decimals



 
 
Thread Tools Display Modes
  #1  
Old June 4th, 2004, 04:59 AM
Ben Jammin
external usenet poster
 
Posts: n/a
Default Exports and decimals

Anyone know how to export a table to a text file and get
more than 2 decimals?
  #2  
Old June 4th, 2004, 05:28 AM
Ken Snell
external usenet poster
 
Posts: n/a
Default Exports and decimals

Set up an export specification that specifies the decimal format for the
field and then use that export spec in a macro (TransferText) or VBA code
(DoCmd.TransferText).

You set up your spec by starting to do the export manually, and when the
wizard window opens, click on the Advanced button at bottom left -- you then
can set all the export specification parameters and save the spec as
whatever name you want. Then cancel the export and use the spec name in one
of the above methods.

--

Ken Snell
MS ACCESS MVP

"Ben Jammin" wrote in message
...
Anyone know how to export a table to a text file and get
more than 2 decimals?



  #3  
Old June 4th, 2004, 05:54 AM
Ben Jammin
external usenet poster
 
Posts: n/a
Default Exports and decimals

Thanks for the help.

I tried what you said but don't see any way to change the
decimals in the Advanced screen.

-----Original Message-----
Set up an export specification that specifies the decimal

format for the
field and then use that export spec in a macro

(TransferText) or VBA code
(DoCmd.TransferText).

You set up your spec by starting to do the export

manually, and when the
wizard window opens, click on the Advanced button at

bottom left -- you then
can set all the export specification parameters and save

the spec as
whatever name you want. Then cancel the export and use

the spec name in one
of the above methods.

--

Ken Snell
MS ACCESS MVP

"Ben Jammin" wrote

in message
...
Anyone know how to export a table to a text file and get
more than 2 decimals?



.

  #4  
Old June 5th, 2004, 02:58 AM
Ken Snell
external usenet poster
 
Posts: n/a
Default Exports and decimals

My oversight....that's what I get for doing things from memory!

Replace the field in your query with a calculated field that formats the
output the way you want for decimal points. For example, if I want 4 decimal
places:
OutputField: Format([FieldName], "0.0000")

--

Ken Snell
MS ACCESS MVP

"Ben Jammin" wrote in message
...
Thanks for the help.

I tried what you said but don't see any way to change the
decimals in the Advanced screen.

-----Original Message-----
Set up an export specification that specifies the decimal

format for the
field and then use that export spec in a macro

(TransferText) or VBA code
(DoCmd.TransferText).

You set up your spec by starting to do the export

manually, and when the
wizard window opens, click on the Advanced button at

bottom left -- you then
can set all the export specification parameters and save

the spec as
whatever name you want. Then cancel the export and use

the spec name in one
of the above methods.

--

Ken Snell
MS ACCESS MVP

"Ben Jammin" wrote

in message
...
Anyone know how to export a table to a text file and get
more than 2 decimals?



.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.