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!

Formatting Numbers 1

Status
Not open for further replies.

mtepfer

IS-IT--Management
Apr 21, 2003
55
US
This should be simple but I can't figure it out quickly. We are exporting data from a database into access, doing our query's and exporting that to excel for the end user. The whole process is automated and no interaction from the end user until they get there excel spreadsheet.

From the text file from the database for balances we have a number like 225700, this is equivalent to $2257.00, however every formatting option i use to try and show currencty keeps returning $225,700.00. Currently I have the field formatted just as a number on import, have tried currency also both giving me the same reults.
 
You should always describe what you mean by "giving me the same reults". It looks like at some point you need to divide the number by 100. I generally never format a value until it finds its final resting spot.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
By same results I mean no matter how I import the data (data type) and set the formatting options (currency, 2 decimal spots, etc) on the table design i get the same result, the text field of 225700, which should be $2257.00 returns as $225,700.00
 
Those are the results that I would expect. As stated previously, you need to divide your values by 100.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top