Totally new to using loop through's but I have a feeling it's what I need.
I have two tables
tbl1 has a user ID and a change date, a date they updated their information
tbl2 has the user ID and an amount they asked to be reimbursed on a specifice date.
tbl1 change date is in one column. I want to get the sum of reiembursement from tbl2 but only between the correct date ranges from the column in tbl1.
It's somewhat easy to do in excel but i want this to be effecient and access should be able to compare row data in one column, i just don't know how.
tbl1 looks like this...
userID name Change Date Change Code Change Description
user1 5/27/2009 code1 changed name
user1 1/29/2010 code1 changed name
user2 3/30/2009 code1 changed name
etc..
in tbl2 there is
userID ChargeAmount Charge Date
user1 $100 5/31/2009
user1 $200 6/20/2009
user1 $2000 2/20/2010
So between 5/27/09 and 1/28/10, I need to know the charges, then from 1/29/10 up to the next change date the charges etc.... all for usr 1, then the same for user 2 etc.
So far i have a query that is giving me the attached...line s 9, 10, and 11 are the issue, and there can be more than 2 change dates, so this trend will just continue the charges for months 1/31/10, 02/28/10, and 3/31/10 should only show for the change date 1/21/10, and not anything before.
I have two tables
tbl1 has a user ID and a change date, a date they updated their information
tbl2 has the user ID and an amount they asked to be reimbursed on a specifice date.
tbl1 change date is in one column. I want to get the sum of reiembursement from tbl2 but only between the correct date ranges from the column in tbl1.
It's somewhat easy to do in excel but i want this to be effecient and access should be able to compare row data in one column, i just don't know how.
tbl1 looks like this...
userID name Change Date Change Code Change Description
user1 5/27/2009 code1 changed name
user1 1/29/2010 code1 changed name
user2 3/30/2009 code1 changed name
etc..
in tbl2 there is
userID ChargeAmount Charge Date
user1 $100 5/31/2009
user1 $200 6/20/2009
user1 $2000 2/20/2010
So between 5/27/09 and 1/28/10, I need to know the charges, then from 1/29/10 up to the next change date the charges etc.... all for usr 1, then the same for user 2 etc.
So far i have a query that is giving me the attached...line s 9, 10, and 11 are the issue, and there can be more than 2 change dates, so this trend will just continue the charges for months 1/31/10, 02/28/10, and 3/31/10 should only show for the change date 1/21/10, and not anything before.
Comment