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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Currency format and decimal places



 
 
Thread Tools Display Modes
  #1  
Old October 8th, 2009, 09:43 PM posted to microsoft.public.access.forms
gmazza via AccessMonster.com
external usenet poster
 
Posts: 177
Default Currency format and decimal places

Hi there,
I put 2 decimals in under decimal places in my table and yet I can enter as
many as I want and it rounds it off. I just want the user to be able to enter
2, thats all. Can I do this?

Also, can I have an Input mask with a currency, like space space comma space
dot
Like a postal code or date?

Thanks for your help!

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200910/1

  #2  
Old October 9th, 2009, 03:54 AM posted to microsoft.public.access.forms
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default Currency format and decimal places

An Input Mask like:

999,999,999.00

will allow only 2 decimal inputs and a maximum amount of:

$999,999,999,99

and a minimum of:

$.00

Is that what you are looking for?

--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"gmazza via AccessMonster.com" u37142@uwe wrote in message
news:9d4d2435700c2@uwe...
Hi there,
I put 2 decimals in under decimal places in my table and yet I can enter
as
many as I want and it rounds it off. I just want the user to be able to
enter
2, thats all. Can I do this?

Also, can I have an Input mask with a currency, like space space comma
space
dot
Like a postal code or date?

Thanks for your help!

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200910/1



  #3  
Old October 9th, 2009, 07:06 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Currency format and decimal places

On Thu, 08 Oct 2009 20:43:53 GMT, "gmazza via AccessMonster.com" u37142@uwe
wrote:

Hi there,
I put 2 decimals in under decimal places in my table and yet I can enter as
many as I want and it rounds it off. I just want the user to be able to enter
2, thats all. Can I do this?


My guess is that the Datatype (not the format or the Decimal Places property,
which merely control the display) is the default Number datatype: Long
Integer. An Integer is by definition a whole number and it will round.

If you use a Currency datatype (rather than any sort of Number; it's one of
the choices like Text, Date/Time, Yes/No etc.) you'll get up to four decimal
places.

Also, can I have an Input mask with a currency, like space space comma space
dot
Like a postal code or date?


Sure. Probably a bad idea, for Currency data a mask will just make more work
for the users entering data. If you insist, you can use a Format property of
"Currency" or "#,##0.00#" and an Input Mask of "999,999.99".
--

John W. Vinson [MVP]
  #4  
Old October 9th, 2009, 03:04 PM posted to microsoft.public.access.forms
gmazza via AccessMonster.com
external usenet poster
 
Posts: 177
Default Currency format and decimal places

Thanks guys, thats exactly what I want, works great!!

Arvin Meyer [MVP] wrote:
An Input Mask like:

999,999,999.00

will allow only 2 decimal inputs and a maximum amount of:

$999,999,999,99

and a minimum of:

$.00

Is that what you are looking for?

Hi there,
I put 2 decimals in under decimal places in my table and yet I can enter

[quoted text clipped - 9 lines]

Thanks for your help!


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200910/1

 




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:49 PM.


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