Hello All,
This is my first posting in this forum. So look forward to benefit from your knowledge.
What I am trying to do is:
I have two tables, 1. tblDates and 2. tblRetes
Now tblDates fields as below,
ID Dates
1 01/01/2015
2 02/01/2015
3 03/01/2015 .... all the dates in the world.
and tblRates fields as below,
ID EmpCode EffictiveDate PayRate
1 001 02/01/2015 $25.00
2 001 05/01/2015 $30.00
3 001 09/01/2015 $35.00 ..... etc
Now I am trying to create a query that will give me results like below
ID EmpCode Dates PayRate
1 001 02/01/2015 $25.00
2 001 03/01/2015 $25.00
3 001 04/01/2015 $25.00
4 001 05/01/2015 $30.00
5 001 06/01/2015 $30.00
6 001 07/01/2015 $30.00
7 001 08/01/2015 $30.00
8 001 09/01/2015 $35.00
9 001 10/01/2015 $35.00
Now I can create a Cartesian product to give me all the combination but not sure how to restrict these to get what I want.
My ultimate goal is to create a query where I can get the daily hours from a table and multiply with rate for that day to determine a daily cost for a particular employee to get the total cost for any given period.
I am open to any suggestions to get to what I what and does not have to be this way. Please note I have worked with Excel VBA but near zero knowledge in access VBA.
Thanks in Advance
MH