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!

Rounding decimal places off

Status
Not open for further replies.

lamaar

Technical User
Jun 29, 2000
392
GB
I am displaying a percentage on a report.&nbsp;&nbsp;However, the outcome shows up as 33.333337 etc.&nbsp;&nbsp;How do I round off the result to just show 33!&nbsp;&nbsp;I have tried formatting the cell properties to 0 decimal places from within the query and report but it is still showing up the same.&nbsp;&nbsp;Help, again!<br><br>
 
Leave the query alone...<br>In the report did you try to Format the result in the Control source.<br>Shut off all other properties that you changed so they are the default.<br>Put this in the control source:<br>=Format(YourPercent,&quot;###.&quot;)<br><br>also the &quot;Int&quot; function (Convert to an Integer) will truncate any decimals but it won't round up or down.<br><br>=Int(YourPercent)<br> <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
 
I did, the result was that I got the error message #Name!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top