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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Precision lost when exporting

Status
Not open for further replies.

stnkyminky

Programmer
Oct 15, 2001
476
US
Access shows the value of a column as .02658. When I export the table into a csv file, the value is truncated to .02.

Is there anyway to fix this problem?


Thanks

Scott
Programmer Analyst
<{{><
 
Using VBA code
instead of the wizard
' open your table here
Open &quot;YourFile.CSV&quot; for output as #1
for a = 1 to rs1.recordcount
'out put the fields here
Mydata = rs1.Field1 & &quot;, &quot; & rs1.Field2 & &quot;, &quot; & rs1.Field3
Print #1, Mydata
rs1.movenext

Close #1

DougP, MCP, A+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top