J
Jen via AccessMonster.com
I ams truggling with a query and was hoping someone could point me in the
right direction.
SELECT tblTimeCard.EmployeeID, tblTimeCard.TimeCardID,
tblTimeCardHours.WorkCodeID, tblTimeCardHours.Hours,
tblTimeCard.DateWorked, tblPayRates.DateFrom, tblPayRates.Dateto,
tblPayRates.PayRateChange, [tblTimeCardHours].[Hours]*[tblPayRates].
[PayRateChange] AS Cost
FROM (tblTimeCard INNER JOIN tblPayRates ON tblTimeCard.EmployeeID =
tblPayRates.EmployeeID) INNER JOIN tblTimeCardHours ON
tblTimeCard.TimeCardID = tblTimeCardHours.TimeCardID
WHERE (((tblTimeCard.DateWorked) Between [tblPayRates].[DateFrom] And
[tblPayRates].[DateTo]));
I need to be able to also introduce a parameter query on the field
tbl.TimeCard.DateWorked. Each Time I do it loses the criteria I already
have in it which is required to gain the PayRateChange from the table
tbl.PayRate.
Any advice would be greatly appreciated. Thanks
right direction.
SELECT tblTimeCard.EmployeeID, tblTimeCard.TimeCardID,
tblTimeCardHours.WorkCodeID, tblTimeCardHours.Hours,
tblTimeCard.DateWorked, tblPayRates.DateFrom, tblPayRates.Dateto,
tblPayRates.PayRateChange, [tblTimeCardHours].[Hours]*[tblPayRates].
[PayRateChange] AS Cost
FROM (tblTimeCard INNER JOIN tblPayRates ON tblTimeCard.EmployeeID =
tblPayRates.EmployeeID) INNER JOIN tblTimeCardHours ON
tblTimeCard.TimeCardID = tblTimeCardHours.TimeCardID
WHERE (((tblTimeCard.DateWorked) Between [tblPayRates].[DateFrom] And
[tblPayRates].[DateTo]));
I need to be able to also introduce a parameter query on the field
tbl.TimeCard.DateWorked. Each Time I do it loses the criteria I already
have in it which is required to gain the PayRateChange from the table
tbl.PayRate.
Any advice would be greatly appreciated. Thanks