The time is =Now() in the starttime
That will be today's date plus the time.
The Now() would equal the time of the morning woker started and the endtime
would be Now() time when worker stopped.
Ummmm... No. It wouldn't. Now() gets the current date and time from
the system clock; it has nothing whatsoever to do with when a worker
started or stopped work, or with any table field.
My problem is converting the 8hours
worked to a fixed number that can be used to calculate the amount of money
paid for the 8 hours. (times a fixed $ Rate)
My calculations does the math but give it gives me a hour figure "8:00" not
a simple fixed number "8".
Please post the query in which you're doing the calculation; indicate
what table fields you have and their contents.
If you have a table field named StartTime, containing a date/time
value for when the worker started; another table field named EndTime
containing the date and time that they ended; and you want the hours
worked accurate to the second to be multiplied by a rate,
[Rate] * DateDiff("s", [StartTime], [EndTime]) / 3600.
will get the value. If StartTime or EndTime don't contain that
information, you will of course get some other answer, or no answer at
all!
John W. Vinson[MVP]