G
Gaetanm via AccessMonster.com
I have two queries built into one. From my [clock_table] the other from my
[time table].
This data base I have inherited. The [clock_table] which I created dervies
work time from
date diff. Unfortunately the [Time table] does not do the time calculation
but the hours
are physically put in. Eventualy the [Clock_table] will superseed the [time
table] for calculating time.
In the mean time we have manufacturing projects that are going to be active
from one to two years.
The new jobs use the [clock_table] but in the mean time I still have to deal
with the legacy of the [time table].
Im trying to get total hours worked per [jobID] for a report. I did not get
to the point of doing the math yet because of the cartesian problem.
Here is my SQL:
SELECT Clock_Table.JobID, Clock_Table.EmployeeID, Clock_Table.StartDate,
Clock_Table.StopDate, DateDiff("n",[Startdate],[Stopdate])\60 & Format
(DateDiff("n",[Startdate],[Stopdate]) Mod 60,"\:00") AS ToTalTime, DateDiff
("n",[Startdate],[Stopdate]) AS TotalHoursMinutes, Round([TotalHoursMinutes]
/60,2) AS HundredTime, Clock_Table.Chg_Amt, ([Hundredtime]*[Chg_Amt]) AS
Charge_total, [Time Table].Time
FROM Clock_Table INNER JOIN [Time Table] ON Clock_Table.JobID = [Time Table].
[Job ID];
Gaetanm
[time table].
This data base I have inherited. The [clock_table] which I created dervies
work time from
date diff. Unfortunately the [Time table] does not do the time calculation
but the hours
are physically put in. Eventualy the [Clock_table] will superseed the [time
table] for calculating time.
In the mean time we have manufacturing projects that are going to be active
from one to two years.
The new jobs use the [clock_table] but in the mean time I still have to deal
with the legacy of the [time table].
Im trying to get total hours worked per [jobID] for a report. I did not get
to the point of doing the math yet because of the cartesian problem.
Here is my SQL:
SELECT Clock_Table.JobID, Clock_Table.EmployeeID, Clock_Table.StartDate,
Clock_Table.StopDate, DateDiff("n",[Startdate],[Stopdate])\60 & Format
(DateDiff("n",[Startdate],[Stopdate]) Mod 60,"\:00") AS ToTalTime, DateDiff
("n",[Startdate],[Stopdate]) AS TotalHoursMinutes, Round([TotalHoursMinutes]
/60,2) AS HundredTime, Clock_Table.Chg_Amt, ([Hundredtime]*[Chg_Amt]) AS
Charge_total, [Time Table].Time
FROM Clock_Table INNER JOIN [Time Table] ON Clock_Table.JobID = [Time Table].
[Job ID];
Gaetanm