Formatting A Calculation in an Unbound Control

Learn2010

Registered User.
Local time
Today, 13:34
Joined
Sep 15, 2010
Messages
415
I have an unbound text box with the following control source:

="The scores below are based on the number of total evaluations (" & Sum([TitleIDCt]) & ")."

I set the formatting of the control to Standard. It reads:

The scores below are based on the number of total evaluations (1718).

I need the comma to show up so it reads like this:

The scores below are based on the number of total evaluations (1,718).

Can this be done?

Thank you.
 
Try Format function..
Code:
? [URL="http://www.techonthenet.com/access/functions/string/format.php"]Format[/URL](52123,"##,###")
52,123
 
How would I work that into my entire statement? I tried and couldn't get it to work.
 
What do you have after adding the Format? What does not work? Please be a bit elaborate.
 
This does not work.

="The scores below are based on the number of total evaluations (" & Format (Sum([TitleIDCt]), "#,###"& ")."
 
Count the number of left and right brackets. You'll find one of the latter missing.
 
As Cronk has made it clear, the problem is concatenating the wrong bracket. Try.
Code:
= "The scores below are based on the number of total evaluations (" & Format(Sum([TitleIDCt]), "#,###"[COLOR=Red][B]) & ")." [/B][/COLOR]
 

Users who are viewing this thread

Back
Top Bottom