G
Guest
Hi all!
I'm using Access 97.
I'm trying to do a Query, to convert a decimal number to a integer one.
If the Decimal part of the number is less than 50 ( 2 decimal places ), then
the result would be the integer part of it.
If the Decimal part of the number is more than 50 ( 2 decimal places ), then
the result would be the integer part of it, plus 1.
I've tryed with FLOOR function, but it gives me an error: "Undefined
function Floor in expression".
I've also tried this:
select Floor ( 100.98 ) from ........
and it gives me the same error.
Can't I use Floor function inside a SQL query?
Or, can I do it a better - and simpler - way?
Thanks a lot in advance.
Best regards,
Joaquim.
I'm using Access 97.
I'm trying to do a Query, to convert a decimal number to a integer one.
If the Decimal part of the number is less than 50 ( 2 decimal places ), then
the result would be the integer part of it.
If the Decimal part of the number is more than 50 ( 2 decimal places ), then
the result would be the integer part of it, plus 1.
I've tryed with FLOOR function, but it gives me an error: "Undefined
function Floor in expression".
I've also tried this:
select Floor ( 100.98 ) from ........
and it gives me the same error.
Can't I use Floor function inside a SQL query?
Or, can I do it a better - and simpler - way?
Thanks a lot in advance.
Best regards,
Joaquim.