UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Spell out a number    
 
   
barga43
post Jan 20 2006, 11:02 AM
Post #1

UtterAccess Enthusiast
Posts: 76



I currently have a number field in a form that is called amount due. I would like to link a field to this amount that will spell out the number. For example the amount field has a value of 35 in it. I would like the linked field to say "thirty five". I can't seem to get anything to work. I can either do this in a query or I can do it in the form. Thanks in advance for all the help.

Thanks,

Mike
Go to the top of the page
 
+
freakazeud
post Jan 20 2006, 11:05 AM
Post #2

UtterAccess VIP
Posts: 31,413
From: NC, USA



Hi,
check: MSKB - how to convert currency/numbs into english words!
HTH
Good luck
Go to the top of the page
 
+
barga43
post Jan 20 2006, 11:26 AM
Post #3

UtterAccess Enthusiast
Posts: 76



Thanks, this works perfectly. Secondly, is there a way in a query to return the value of a number after the decimal places. For example 35.23 and return just 23 or 1281.96 and return 96.

Thanks again,

Mike
Go to the top of the page
 
+
freakazeud
post Jan 20 2006, 11:31 AM
Post #4

UtterAccess VIP
Posts: 31,413
From: NC, USA



Hi,
try a combination of the mid and instr function or the right function since the dot would always be on the third position from the right:

=Mid([YourField],1,InStr([YourField],".")+1)

=Right([YourField],2)

HTH
Good luck
Go to the top of the page
 
+
barga43
post Jan 20 2006, 11:32 AM
Post #5

UtterAccess Enthusiast
Posts: 76



Thanks again,
Go to the top of the page
 
+
freakazeud
post Jan 20 2006, 11:34 AM
Post #6

UtterAccess VIP
Posts: 31,413
From: NC, USA



You're welcome!
Glad I could assist.
Good luck on future projects!
Go to the top of the page
 
+
iandouglas
post Jan 20 2006, 12:26 PM
Post #7

UtterAccess Ruler
Posts: 1,047
From: Manchester UK



or

([YourField]-Int([YourField]))*100

would work too providing the intial number always has 2 digits after the dp.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 19th May 2013 - 06:09 AM

Tag cloud: