G
Guest
I've been unsucessful in being able to set up a query that can filter by a
range. Let me describe the problem by eample:
Set up tblWageRate as follows:
ID_1 Company Trade from_date to_date ST_Wage OT_Wage
(Note: ST = Straight Time, OT = Overtime)
Set up tblLabor as follows:
ID_2 Company Person Trade Date_Worked ST_Hours
I want to create a query from the above tables that has the following results:
Company Person Trade Date ST_Hours ST_Wage
Now I have managed to get
tblLabor.Company = tblWageRate.Company,
tbLabor.Trade = tblWageRate.Trade
by joints in the query statement.
But getting a value for query.ST_Wage from tblWageRate.ST_Wage when
((tblWageRate.from_date <= tblLabor.Date_Worked) and (tblLabor.Date_Worked
<= tblWageRate.to_date))
has remained elusive.
I'm sure I'm close somehow, but I could use some suggestions.
Thanks,
Ray Pixley
range. Let me describe the problem by eample:
Set up tblWageRate as follows:
ID_1 Company Trade from_date to_date ST_Wage OT_Wage
(Note: ST = Straight Time, OT = Overtime)
Set up tblLabor as follows:
ID_2 Company Person Trade Date_Worked ST_Hours
I want to create a query from the above tables that has the following results:
Company Person Trade Date ST_Hours ST_Wage
Now I have managed to get
tblLabor.Company = tblWageRate.Company,
tbLabor.Trade = tblWageRate.Trade
by joints in the query statement.
But getting a value for query.ST_Wage from tblWageRate.ST_Wage when
((tblWageRate.from_date <= tblLabor.Date_Worked) and (tblLabor.Date_Worked
<= tblWageRate.to_date))
has remained elusive.
I'm sure I'm close somehow, but I could use some suggestions.
Thanks,
Ray Pixley