how to to round in Access?

siamandm
BronzeLounger
Posts: 1210
Joined: 01 May 2016, 09:58

how to to round in Access?

Post by siamandm »

Hello all,
I have a question about rounding numbers in access.

10800 become 10750 and make 8900 becomes 9000
so basically all the number should have a format like
250
500
750
1000
1250
1500
1750
2000
2250
and so on

Regards

User avatar
burrina
4StarLounger
Posts: 550
Joined: 30 Jul 2014, 23:58

Re: how to to round in Access?

Post by burrina »

Here is an example
'Round to Next 1000

Somefield=[sometextbox]-[sometextbox] Mod 1000

Hope that helps.

User avatar
HansV
Administrator
Posts: 78378
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: how to to round in Access?

Post by HansV »

Use

250 * Round([Field] / 250, 0)
Best wishes,
Hans

siamandm
BronzeLounger
Posts: 1210
Joined: 01 May 2016, 09:58

Re: how to to round in Access?

Post by siamandm »

thanks a lot 250 * Round([Field] / 250, 0) this is working

siamandm
BronzeLounger
Posts: 1210
Joined: 01 May 2016, 09:58

Re: how to to round in Access?

Post by siamandm »

burrina wrote:
06 Nov 2020, 10:06
Here is an example
'Round to Next 1000

Somefield=[sometextbox]-[sometextbox] Mod 1000

Hope that helps.
thanks a lot for your help