R
R Fourt
I'm trying to determine if a the result of a calcuation is either a whole
number or a "half". In other words 1, 2, 24 are okay as are 1.5, 3.5, 7.5.
I was trying to use the modulus operator as such "Hours = iHours mod .5"
then if "int(iHours) = iHours" all is okay...however when I enter ".5" in my
code, Access puts a leading zero in front of it and then errors out with
"division by zero".
I've modified the code to evaluate the numbers as strings and it works, but
I was wondering...is this a quirk (read bug) of Access 2003?
number or a "half". In other words 1, 2, 24 are okay as are 1.5, 3.5, 7.5.
I was trying to use the modulus operator as such "Hours = iHours mod .5"
then if "int(iHours) = iHours" all is okay...however when I enter ".5" in my
code, Access puts a leading zero in front of it and then errors out with
"division by zero".
I've modified the code to evaluate the numbers as strings and it works, but
I was wondering...is this a quirk (read bug) of Access 2003?