Adding labor hours to a date time field
Adding labor hours to a date time field
(OP)
Can you tell me how to add a labor hours field to a datetime field?
Works: DateAdd("n", 30, {HIST_ILLUM_LOG.END_TIME})
Doesn't work: DateAdd("n", {@labor hours}, {HIST_ILLUM_LOG.END_TIME})
Works: DateAdd("n", 30, {HIST_ILLUM_LOG.END_TIME})
Doesn't work: DateAdd("n", {@labor hours}, {HIST_ILLUM_LOG.END_TIME})
RE: Adding labor hours to a date time field
with the Syntax of
DATE_ADD(date, INTERVAL value addunit)
RE: Adding labor hours to a date time field
I tried this and still doesn't work
UPDATE HIST_ILLUM_LOG
SET END_TIME = DateAdd("n", {@labor hours}, END_TIME)
RE: Adding labor hours to a date time field
Date_Add() is a MySQL function.
Some more information would be nice to have in order to help you.
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson
RE: Adding labor hours to a date time field
It has a date time field for when a job ends on a machine "{HIST_ILLUM_LOG.END_TIME}".
It does not have a date time field for when the setup ends/machine starts running so I am trying to add the amount of setup time (in hrs) to show the date time that the machine started running.
RE: Adding labor hours to a date time field
>Labor hours is in a different table
What's the name of that table, field name with the Labor hours, and what is the relation between the two tables?
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson