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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing a number to 0 decimal places

Status
Not open for further replies.

pmo

Technical User
Jan 15, 2001
76
AU
I am able to change the formatting property of a field by choosing fixed then 0 in the property box.

The problem arises when I have a label that refers to a field.
eg

[Number]&" % of people are in attendance"

How do I force the [Number] to 0 decimal places?

Wayne
wayne.chris@bigpond.com
 
Open the form in design mode
right click on the field(Number)
goto Properties
Decimal Places = 0

Hope this helps
 
Try

Format([number],"#") & "Your Text"

HTH

Chris
 
Thanks for the advice. Chris with yours will the fact that you have "#" will that restrict to one digit.

I am hoping that e.g. 33.33333 may appear as 33

Wayne
 
No, it should simply display as a whole number to zero dp

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top