Hi everyone,
I'm writing a small function that will be used to calculate some revenue numbers based on a few conditions. One of the conditions is a delay period, in weeks.
It's stored in a table, but let's say it will be 4. I want my function to take a number from the current record, Number A and multiply it with Number B from an associated record 4 weeks behind it. Is there a simple function I can use in VBA to accomplish this, like an 'offset' perhaps? Someone mentioned that recordsets could work, but I'm not familiar with using that method.
Here's a daigram of what I want to happen:

Hopefully the above is descriptive enough, tell me if more info is needed.
Thanks!
I'm writing a small function that will be used to calculate some revenue numbers based on a few conditions. One of the conditions is a delay period, in weeks.
It's stored in a table, but let's say it will be 4. I want my function to take a number from the current record, Number A and multiply it with Number B from an associated record 4 weeks behind it. Is there a simple function I can use in VBA to accomplish this, like an 'offset' perhaps? Someone mentioned that recordsets could work, but I'm not familiar with using that method.
Here's a daigram of what I want to happen:

Hopefully the above is descriptive enough, tell me if more info is needed.
Thanks!