montypython1
Technical User
Greetings and Happy New Year,
What is the best way to import currency data containing "$" and commas?
In the past, I would just build a cursor and then append the records into the cursor without any problem. This time, the data contains "$" and commas, which means that I have to import the data as "character", rather than "numeric" (which means that I must then strip out the unnecessary characters). There has to be a more elegant solution. I tried setting the appropriate fields as "currency" before importing the data, but it truncated everything smaller than 1000 (ex: $29,999.99 became 29.0000).
Any suggestions?
Thanks,
Dave Higgins
What is the best way to import currency data containing "$" and commas?
In the past, I would just build a cursor and then append the records into the cursor without any problem. This time, the data contains "$" and commas, which means that I have to import the data as "character", rather than "numeric" (which means that I must then strip out the unnecessary characters). There has to be a more elegant solution. I tried setting the appropriate fields as "currency" before importing the data, but it truncated everything smaller than 1000 (ex: $29,999.99 became 29.0000).
Any suggestions?
Thanks,
Dave Higgins