Pol -
By truncate, I assume you mean you want to display only the integer portion
of the results (whole hours only excluding any minutes). If so, use
Int([Worktime]). You can sum the records with Sum(Int([Worktime])), which
will truncate each value first, then sum the results.
This assumes these are number fields with decimal time (e.g. 1.5 = one hour
and 30 minutes), as that is the format in your post.
--
Daryl S
"pol" wrote:
> I have the following data in table
>
> Worktime
> ---------------
> 5.30
> 6.40
> 3.15
> 5.55
>
> How I give trucate function in select statement. ie,
> select sum(trucate(worktime,60)) ....
>
> Please help
>
>
|