currency formatting

F

fishqqq

Can someone suggest how i might get this line of code to read $50.20
instead of 50.2 ? (the field in question is [Sell Rate]

MessageText:="Please note the following invoice is overdue:" &
vbCr & "Invoice #: " & [REF #] & ": for the amount of " & [Sell Rate] &
" " & [Sell Rate Currency], _


Thanks, Steve
 
G

Graham Mandeno

Hi Steve

Use the Format function:

.... & Format( [Sell Rate], "Currency" ) & ...

or
.... & Format( [Sell Rate], "$#,##0.00" ) & ...
 
F

fredg

Can someone suggest how i might get this line of code to read $50.20
instead of 50.2 ? (the field in question is [Sell Rate]

MessageText:="Please note the following invoice is overdue:" &
vbCr & "Invoice #: " & [REF #] & ": for the amount of " & [Sell Rate] &
" " & [Sell Rate Currency], _

Thanks, Steve

amount of " & Format([Sell Rate],"$ #,###.00") & " " etc....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top