?
Solved

Remove the dollar sign from value when exporting to csv

Posted on 2009-05-14
3
Medium Priority
?
1,791 Views
Last Modified: 2012-05-07
Hello Experts,

I have a query that I need to export to CSV, now I have accomplished that with the following command: DoCmd.TransferText acExportDelim, "SOJournal Export Spec", "qrySOJournalExport", ExportFileName, however, since one of the fields is in currency format, I need that value to be exported without the $ sign as the file will be imported into peachtree and it does not allow the $ symbol on the import process.
0
Comment
Question by:corubert
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 93

Accepted Solution

by:
Patrick Matthews earned 2000 total points
ID: 24386311
Hello corubert,

In your query, force a type conversion:

SELECT Field1, Field2, CDbl(CurrencyField)
FROM SomeTable

Regards,

Patrick
0
 

Author Comment

by:corubert
ID: 24386703
matthewspatrick,

Thanks for your comment, however, after making the change in the query, when I export to csv file, I still get the $ symbol in front of the value.
0
 
LVL 5

Expert Comment

by:noetymology
ID: 24386727
In your query qrySOJournalExport, use the CDbl function and export the query through the same command
DoCmd.TransferText acExportDelim, "SOJournal Export Spec", "qrySOJournalExport", ExportFileName
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question