Question Formating Currency to plain numbers? (1 Viewer)

travel4u

New member
Local time
Today, 03:17
Joined
Nov 12, 2017
Messages
15
Hello PRO's,

How to format to get results I want from Currency field?
I need with leading zeros and without cent separator total of 8 digits:
[CurrencyField] -> What I want to see on separate (unbound) text box:
15,29 € -> 00001529
1458,80 € -> 00145880
etc.?
I have tried Format([CurrencyField];"00000000")

Thanks in advance.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 08:17
Joined
May 7, 2009
Messages
19,246
use comma (,) on your expression instead of semicolon (;)


format(replace([currencyField] & ""; ",";""),"00000000")
 
Last edited:

travel4u

New member
Local time
Today, 03:17
Joined
Nov 12, 2017
Messages
15
Sorry no.... In European version of Access we use ; instead of comma :/
 

Gasman

Enthusiastic Amateur
Local time
Today, 01:17
Joined
Sep 21, 2011
Messages
14,417
Can't you just multiply the value by 100 and format the control to 00000000 ?
 

Users who are viewing this thread

Top Bottom