Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Values cutoff when export in .CSV format

Status
Not open for further replies.

Bullsandbears123

Technical User
Feb 12, 2003
291
US
When I use the

DoCmd.TransferSpreadsheet acExport, , "myquery", strpath, True, ""

The numbers get cutoff.
The table will show....
[Field1]
12.1299
12.1546
10.1558

but the exported file in .CSV format only exports...

12.12
12.15
10.15

What could cause such a weird thing and HOW can I fix it to contain all the digits. When I export as an excel file it works fine, but the problem is I need the fie in .CSV

THANK YOU!
 
In myquery, try to use Format(Field1, "0.0000")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top