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

Rounding a value up to a whole number

Using Functions in Queries

Rounding a value up to a whole number

by  PaulBricker  Posted    (Edited  )
I have seen this question asked a number of times. To do this in a query you would use this expression.

MyRoundedNumber:-1 * Int(-1 * [NumberField])

To do this in a Report or Form textbox you would put the expression in the Control Source for the texbox

=-1 * Int(-1 * [NumberField])

This expression works for both positive and negative numbers.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top