A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

CURRENCY Question



 
 
Thread Tools Display Modes
  #1  
Old June 12th, 2009, 03:07 AM posted to microsoft.public.access.tablesdbdesign
kealaz
external usenet poster
 
Posts: 133
Default CURRENCY Question

Hello,

I have a report (purchase order) that shows dollar amounts for product. For
the most part, the prices are two decimal places [$x.xx] but every once in a
while, I buy smaller items that cost less than a penny each and need to enter
an amount of [$x.xxxx].

EXAMPLE right now.... if something cost $ 0.008 cents, then it shows as
unit cost: $ 0.01
qty: 1000
ext. price: $ 8.00

[so, it's doing the math right, but showing the unit cost wrong]

On my P.O. (report) it is in the format of currency with decimal places on
AUTO. If I take it off of auto and make it 4 decimal places, then ALL of the
prices show as 4 decimal places... such as $ 0.9900, which I don't want.

How can I make it so that it is normally two decimal places and only 3 or 4
when I enter it as such? Do I change it on the report? or on the underlying
table?


Thank you very much for your assistance!!!
  #2  
Old June 12th, 2009, 03:23 AM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default CURRENCY Question

Set the Format property to an expression like this:
$#,##0.00##;-$#,##0.00##

The zeros are forced digits, and the hashes are optional (used only when
needed.) The second part is for negative values.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"kealaz" wrote in message
...
Hello,

I have a report (purchase order) that shows dollar amounts for product.
For
the most part, the prices are two decimal places [$x.xx] but every once in
a
while, I buy smaller items that cost less than a penny each and need to
enter
an amount of [$x.xxxx].

EXAMPLE right now.... if something cost $ 0.008 cents, then it shows as
unit cost: $ 0.01
qty: 1000
ext. price: $ 8.00

[so, it's doing the math right, but showing the unit cost wrong]

On my P.O. (report) it is in the format of currency with decimal places on
AUTO. If I take it off of auto and make it 4 decimal places, then ALL of
the
prices show as 4 decimal places... such as $ 0.9900, which I don't want.

How can I make it so that it is normally two decimal places and only 3 or
4
when I enter it as such? Do I change it on the report? or on the
underlying
table?


Thank you very much for your assistance!!!


  #3  
Old June 12th, 2009, 03:46 AM posted to microsoft.public.access.tablesdbdesign
kealaz
external usenet poster
 
Posts: 133
Default CURRENCY Question

PERFECTO! Thanks Allen! I really appreciate it!
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.