• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

Format numerics inside text control.

I have a numeric variable inside a text control that I want formated as a standard number.  The text control data source looks like this ...  ="as a minimum and "& [VarNum1] & " as a maximum."  I tried formatting the entire control as Standard, 0 decimal places but to no avail.  When the number get over one thousand I want to see commas.  Is there a format command that works "in-line" like an immediate "if" to solve this problem?
0
jdfuller
Asked:
jdfuller
  • 2
1 Solution
 
stevbeCommented:
="as a minimum and "& Format([VarNum1], "#,###.00") & " as a maximum."
0
 
stevbeCommented:
oops ... 0 decimals
="as a minimum and "& Format([VarNum1], "#,###") & " as a maximum."
0
 
jdfullerAuthor Commented:
I have just tried (Format([VarNum1], "Standard")) and got 1,000 !! Great but don't need decimal.  Format([VarNum1], "#,###") works.  Will this treat millions properly? - YES!!  Thanks Steve.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now