Solved

Remove the dollar sign from value when exporting to csv

Posted on 2009-05-14
3
1,682 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
3 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now