A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formatting currency within a report text box expression



 
 
Thread Tools Display Modes
  #1  
Old April 17th, 2010, 02:11 PM posted to microsoft.public.access.reports
Parish Pete[_2_]
external usenet poster
 
Posts: 26
Default Formatting currency within a report text box expression

I'm trying to create a mail merge letter from a 2007 ACCB database using a
report (Word can't cope with the filter)

To keep the text flowing to allow for expansion of various field values,
I've put the following in a text box.

="According to my records you " & [Expr2] & " " & [KEYNO] & ", have made a
total payment of " & [PAID] & " comprising a permit fee of " & [PERMIT£] & "
and key deposit of " & [KEY£] & ". Therefore " & [Expr1]

Ignoring Expr1 & 2 which are text statements and [KEYNO] which is a 4 digit
integer The £0.00 values of [PAID], [PERMIT£] and [KEY£] simply won't
display as 2dp currency values even though the text box format is so set and
their query values are indeed currency.

I could break up the expression into a number of boxes so that it does work
but getting the letter layout right is a nightmare.

Any suggestions welcome

Pete

  #2  
Old April 17th, 2010, 02:33 PM posted to microsoft.public.access.reports
Peter Hibbs
external usenet poster
 
Posts: 871
Default Formatting currency within a report text box expression

Pete,

You could try formatting the currency fields like this :-

....payment of " & Format([PAID],"Currency") & " compr....

Peter Hibbs.


On Sat, 17 Apr 2010 06:11:01 -0700, Parish Pete
wrote:

I'm trying to create a mail merge letter from a 2007 ACCB database using a
report (Word can't cope with the filter)

To keep the text flowing to allow for expansion of various field values,
I've put the following in a text box.

="According to my records you " & [Expr2] & " " & [KEYNO] & ", have made a
total payment of " & [PAID] & " comprising a permit fee of " & [PERMIT£] & "
and key deposit of " & [KEY£] & ". Therefore " & [Expr1]

Ignoring Expr1 & 2 which are text statements and [KEYNO] which is a 4 digit
integer The £0.00 values of [PAID], [PERMIT£] and [KEY£] simply won't
display as 2dp currency values even though the text box format is so set and
their query values are indeed currency.

I could break up the expression into a number of boxes so that it does work
but getting the letter layout right is a nightmare.

Any suggestions welcome

Pete

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.