grahamjlaws
New member
- Local time
- Today, 00:54
- Joined
- Dec 18, 2006
- Messages
- 8
I really don't know how to describe this, so bear with me!
i have a table of sales data 'tSales' that holds 3 years of transactions.
Fields are
Acc
Cust
Market
Prod
Qty
Value
Cost
Material
Labour
I have another table 'tLabRate' that holds our labour rates
e.g. in 2004 £20ph, 2005 £25ph etc
in the Form:
RateID
LabRate 20.00 25.00
LabFactor 0.6666 0.8333
LrFrmDate 01/01/2004 01/01/2005
LrToDate 31/12/2004 31/12/2005 etc
What i am trying to do is display the correct factor for the point in time, e.g.
LabFactor where sDate > than LrFrmDate AND < LrToDate
How do i do this in a query?? i can't join i don't think becasue there isn't a common field....?
Thanks
Graham
i have a table of sales data 'tSales' that holds 3 years of transactions.
Fields are
Acc
Cust
Market
Prod
Qty
Value
Cost
Material
Labour
I have another table 'tLabRate' that holds our labour rates
e.g. in 2004 £20ph, 2005 £25ph etc
in the Form:
RateID
LabRate 20.00 25.00
LabFactor 0.6666 0.8333
LrFrmDate 01/01/2004 01/01/2005
LrToDate 31/12/2004 31/12/2005 etc
What i am trying to do is display the correct factor for the point in time, e.g.
LabFactor where sDate > than LrFrmDate AND < LrToDate
How do i do this in a query?? i can't join i don't think becasue there isn't a common field....?
Thanks
Graham