Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Summing and formating a control in the report designer.
Message
De
17/03/2001 22:10:20
F. Bennett Swenson
Sundance Aerial Photography
Hurst, Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Summing and formating a control in the report designer.
Divers
Thread ID:
00486259
Message ID:
00486259
Vues:
45
Folks,I've tried every combination of the TRANSFORM(cExpression,[cFormatCodes]) command in the
report designer's expression window that I can think of and nothing works.

The table for the report is a general journal of expenses with the following fields.

dDate, cRefnumber, cDescription, nAmount, cAccountnumber

The table is indexed (sorted) by cAccountnumber +DTOC(dDate).
The detail band prints all fields.
The account total band prints the total expenses for each account number.
This all works.

My problem is getting the account total band formated for American currency.

If I use only the "currency check box" in the report expression window to format the account total,
and check the "sum check box" for the calcuations, I get the following results.

for this is printed
12.76 $12.67000000000 ( I'm not sure about the # of zeros, but it's way too many)
2.49 $2.490000000000
333.09 $333.0900000000

I've checked the Windows95 regional settings for currency. It looks correct.
I've tried TRANSFORM(SUM(nAmounT),"$99,999.99") AND Lord knows how many other
variations with no success. I tried NTOM(). Sorry, Don't want 4 decimals.

Is there a better, more user friendly third party report writer out there?
What do you recommend?

Suggestions, Please.

TIA

F.Bennett Swenson
DON'T let the GOOD things of life ROB you of the BEST things of life.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform