Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Rounding up (2000)

    I want to create an update query that will increase a salary by 5 percent. However, I need to round up the resultant salary to the nearest ten pounds. What expression do I need to achieve this?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Rounding up (2000)

    Something like -Int(-[Salary] * 1.05 / 10) * 10 where Salary is the name of the field to be updated. Multiplying by 1.05 is the same as increasing by 5 percent. The Int function rounds negative numbers down (towards minus infinity), so taking -Int(-[Salary] ...) rounds up.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •