Round up a decimal in a query field

B

bigomega73

Hopefully this is an easy question. How do you round up a number in a query
field? Excel has the ROUNDUP function, but I can't find anything similar in
Access. Can anyone help?
 
G

Golfinray

Function:round([tablename!fieldname,2]) I think. It may be
round([tablesname!fieldname],2)
 
B

bigomega73

Thanks Golfinray, but that only rounds to the nearest decimal place. What I
want is the number to be rounded UP. The result that I'm looking for is the
same as the function ROUNDUP in Excel. It basically does the following:

Number Round UP
3.75 4
3.25 4
4.5 5
3 3

Anything with a decimal on it gets automatically rounded up.

Does anyone know how to get this achieved in Access?

Golfinray said:
Function:round([tablename!fieldname,2]) I think. It may be
round([tablesname!fieldname],2)

bigomega73 said:
Hopefully this is an easy question. How do you round up a number in a query
field? Excel has the ROUNDUP function, but I can't find anything similar in
Access. Can anyone help?
 
B

bigomega73

Actually found what I was looking for in another post.

bigomega73 said:
Thanks Golfinray, but that only rounds to the nearest decimal place. What I
want is the number to be rounded UP. The result that I'm looking for is the
same as the function ROUNDUP in Excel. It basically does the following:

Number Round UP
3.75 4
3.25 4
4.5 5
3 3

Anything with a decimal on it gets automatically rounded up.

Does anyone know how to get this achieved in Access?

Golfinray said:
Function:round([tablename!fieldname,2]) I think. It may be
round([tablesname!fieldname],2)

bigomega73 said:
Hopefully this is an easy question. How do you round up a number in a query
field? Excel has the ROUNDUP function, but I can't find anything similar in
Access. Can anyone help?
 
K

KARL DEWEY

Try this --
Expr2: IIf(Int([YourField])<[YourField],Int([YourField])+1,[YourField])
--
KARL DEWEY
Build a little - Test a little


bigomega73 said:
Thanks Golfinray, but that only rounds to the nearest decimal place. What I
want is the number to be rounded UP. The result that I'm looking for is the
same as the function ROUNDUP in Excel. It basically does the following:

Number Round UP
3.75 4
3.25 4
4.5 5
3 3

Anything with a decimal on it gets automatically rounded up.

Does anyone know how to get this achieved in Access?

Golfinray said:
Function:round([tablename!fieldname,2]) I think. It may be
round([tablesname!fieldname],2)

bigomega73 said:
Hopefully this is an easy question. How do you round up a number in a query
field? Excel has the ROUNDUP function, but I can't find anything similar in
Access. Can anyone help?
 
G

Golfinray

Yeah, you can return the Integer.

KARL DEWEY said:
Try this --
Expr2: IIf(Int([YourField])<[YourField],Int([YourField])+1,[YourField])
--
KARL DEWEY
Build a little - Test a little


bigomega73 said:
Thanks Golfinray, but that only rounds to the nearest decimal place. What I
want is the number to be rounded UP. The result that I'm looking for is the
same as the function ROUNDUP in Excel. It basically does the following:

Number Round UP
3.75 4
3.25 4
4.5 5
3 3

Anything with a decimal on it gets automatically rounded up.

Does anyone know how to get this achieved in Access?

Golfinray said:
Function:round([tablename!fieldname,2]) I think. It may be
round([tablesname!fieldname],2)

:

Hopefully this is an easy question. How do you round up a number in a query
field? Excel has the ROUNDUP function, but I can't find anything similar in
Access. Can anyone help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top