Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding labor hours to a date time field

Status
Not open for further replies.

Darryl Johnson

Technical User
Jan 7, 2022
3
0
0
US
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})
 
Labor hours is in a different table,
I tried this and still doesn't work

UPDATE HIST_ILLUM_LOG
SET END_TIME = DateAdd("n", {@labor hours}, END_TIME)
 
DateAdd() is an Access function (I guess you are doing this in Access, right?).
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
 
No, I'm Using crystal reports, Database is for Dessault Systems IQMS
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.
 
So you have a table HIST_ILLUM_LOG with a field END_TIME
>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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top