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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Format Currency field into zero filled text field
I have a field that can be blank or contain a currency amount. No matter
what the value is I want it to be a zero filled field. So for $9.99 I want 0000999 for a blank field i want 0000000 if it is $990.00 I want 0099000. It seems I can get parts to work. Format(Salary, "0000000") returns the amount rounded so I lose cents if I use Format(Salary, "00000.00") i get it to work but have to manually remove space. The other problem I am having is having it zero fill when no value Thanks, Marcie |
#2
|
|||
|
|||
Format Currency field into zero filled text field
Try:
Format(Salary * 100, "0000000") -- Duane Hookom Microsoft Access MVP "Marcie" wrote: I have a field that can be blank or contain a currency amount. No matter what the value is I want it to be a zero filled field. So for $9.99 I want 0000999 for a blank field i want 0000000 if it is $990.00 I want 0099000. It seems I can get parts to work. Format(Salary, "0000000") returns the amount rounded so I lose cents if I use Format(Salary, "00000.00") i get it to work but have to manually remove space. The other problem I am having is having it zero fill when no value Thanks, Marcie |
Thread Tools | |
Display Modes | |
|
|