Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with text box field containing numbers

Status
Not open for further replies.

lakefun

Programmer
Jan 11, 2001
16
US
I'm in the process of designing a report and I need a text box that will concatenate a number field from my source table with text (ex. "Over 14,456 people dined at Chili's last week"). The problem is that I need the number to print with the comma and all I can get is 14456. Any ideas?

Thanks!
 
Run a format command combine with the concatenation like this:

=Format([MyNumberField],"#,###") & " people dined at Chili's last week"

HTH Joe Miller
joe.miller@flotech.net
 
When I added the code to the Control Source field and opened the report, I get a prompt asking me for "Format". What did I do wrong?
 
It sounds like you've got some bad references. Go into a code window (ALT+F11) and click Tools-->References. Look for MISSING: and replace the file that is missing.

Joe Miller
joe.miller@flotech.net
 
I checked and nothing was missing but I do remember that I hadn't been able to use the "Trim" function today.
 
I ran the compact and repair utilities and now everything seems to be working correctly. Thank you!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top