formatting a number field in a concatinated text string

G

Guest

Access 2002 Report text bo

In the text sting below I want the number to be displayed in currency format with 2 decimal places. Where "cash Damt" is a calculated field set to currency format (which displays properly), when I call for thet field to be displayed in this line it shows up with no formatting, i.e., it drops the trailing zero.

=Trim("You may deduct $ " & [cash damt] & " if payment is postmarked by " & ([invoice date]+10) & "."

I have tried these ariations

=("You may deduct $ " & [cash damt] & " if payment is postmarked by " & ([invoice date]+10) & ".") $4.095 = 4.

=("You may deduct $ " & Round([cash damt],2) & " if payment is postmarked by " & ([invoice date]+10) & ".")$4.095 = 4.

=("You may deduct $ " & Round([cash damt],3) & " if payment is postmarked by " & ([invoice date]+10) & ".")$4.095 = 4.09

=("You may deduct $ " & CStr([cash damt]) & " if payment is postmarked by " & ([invoice date]+10) & "."

=("You may deduct $ " & Ccur([cash damt]) & " if payment is postmarked by " & ([invoice date]+10) & ".")
 
R

Roger Carlson

Try:
=Trim("You may deduct $ " & format([cash damt],"currency") & " if payment is
postmarked by " & ([invoice date]+10) & ".")

--
--Roger Carlson
www.rogersaccesslibrary.com
Reply to: Roger dot Carlson at Spectrum-Health dot Org


SamB said:
Access 2002 Report text box

In the text sting below I want the number to be displayed in currency
format with 2 decimal places. Where "cash Damt" is a calculated field set
to currency format (which displays properly), when I call for thet field to
be displayed in this line it shows up with no formatting, i.e., it drops the
trailing zero.
=Trim("You may deduct $ " & [cash damt] & " if payment is postmarked by " & ([invoice date]+10) & ".")

I have tried these ariations:

=("You may deduct $ " & [cash damt] & " if payment is postmarked by " &
([invoice date]+10) & ".") $4.095 = 4.1
=("You may deduct $ " & Round([cash damt],2) & " if payment is postmarked
by " & ([invoice date]+10) & ".")$4.095 = 4.1
=("You may deduct $ " & Round([cash damt],3) & " if payment is postmarked
by " & ([invoice date]+10) & ".")$4.095 = 4.095
=("You may deduct $ " & CStr([cash damt]) & " if payment is postmarked by " & ([invoice date]+10) & ".")

=("You may deduct $ " & Ccur([cash damt]) & " if payment is postmarked by
" & ([invoice date]+10) & ".")
 
M

Marshall Barton

SamB said:
Access 2002 Report text box

In the text sting below I want the number to be displayed in currency format with 2 decimal places. Where "cash Damt" is a calculated field set to currency format (which displays properly), when I call for thet field to be displayed in this line it shows up with no formatting, i.e., it drops the trailing zero.

=Trim("You may deduct $ " & [cash damt] & " if payment is postmarked by " & ([invoice date]+10) & ".")

=Trim("You may deduct $ " & Format([cash damt], "Currency")
& " if payment is postmarked by " & ([invoice date]+10) &
".")
 

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