M
mybrainhurts
I have a number field in my table that I just can't seem to get it to
accept a number with a decimal in it. When I type in 2.5 it
automatically truncates it to 2. I have tried changing it to Fixed, and
everything else, but even in fixed and with decimal places showing, if
I type 2.5 it automatically sets it to 2.00. The reason this is
burning my ass so much is that I have two other time/date fields (time
start and time finish). I want to be able to have this number field
(total hours) populate itself automatically once I have typed in the
time_finish value.
I tried an after_update on the time_finish field
Me.total_hours = (("[time_start]"+"[time_finish]"))
but it keeps coming back saying that the value I entered is right for
the field, and debug brings me back to the code.
I don't know if the code is bad or if it isn't working because it
should be returning a half value (such as 2.5) and it doesn't match
with the addition of the two fields.
Any help would be greatly appreciated.
cheers
chanchito
accept a number with a decimal in it. When I type in 2.5 it
automatically truncates it to 2. I have tried changing it to Fixed, and
everything else, but even in fixed and with decimal places showing, if
I type 2.5 it automatically sets it to 2.00. The reason this is
burning my ass so much is that I have two other time/date fields (time
start and time finish). I want to be able to have this number field
(total hours) populate itself automatically once I have typed in the
time_finish value.
I tried an after_update on the time_finish field
Me.total_hours = (("[time_start]"+"[time_finish]"))
but it keeps coming back saying that the value I entered is right for
the field, and debug brings me back to the code.
I don't know if the code is bad or if it isn't working because it
should be returning a half value (such as 2.5) and it doesn't match
with the addition of the two fields.
Any help would be greatly appreciated.
cheers
chanchito