Re: rounding a number in a query
From: Sam D (sam)
Date: 04/30/04
- Next message: John Spencer (MVP): "Re: help with delete query"
- Previous message: fredg: "Re: DoCmd.RunSQL error Help"
- In reply to: Saskatoon: "rounding a number in a query"
- Next in thread: Saskatoon: "Re: rounding a number in a query"
- Reply: Saskatoon: "Re: rounding a number in a query"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Apr 2004 10:20:43 +1000
I think something like....
INT(curRent * sngRentalIncrease /5 +0.5) * 5
(Assuming sngRentalIncrease holds say 1.04 for a 4% increase)
HTH
Sam
"Saskatoon" <nojunkreturns@hotmail.com> wrote in message
news:627a01c42e36$711db320$a601280a@phx.gbl...
> I need to round a rent increase up or down to the nearest
> $5. I want to do this with a calculation in a query.
> I have curRent field (formatted as Currency) and
> sngRentalIncrease field (formatted as Percent). When I
> multiply these 2 together they have to round up or down to
> the nearest $5.
> Thanks in Advance.
- Next message: John Spencer (MVP): "Re: help with delete query"
- Previous message: fredg: "Re: DoCmd.RunSQL error Help"
- In reply to: Saskatoon: "rounding a number in a query"
- Next in thread: Saskatoon: "Re: rounding a number in a query"
- Reply: Saskatoon: "Re: rounding a number in a query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|