I'm writing a predictive modeling program with Access 2k wherein the data for each year is dependent on the data calculated for the year before it. So right now I have one query for each year that I'm predicting information, and the criteria limits the input data to the year before it. (i.e. the 2006 calculation query grabs data only from Year 2005 in my INPUT table, has a couple of calculated fields, and an append query appends the 2006 calculated data to the INPUT table and then I run the 2007 query, and so on). Eventually I end up with one table containing every year's calculated information. Essentially, I perform an iterated loop.
Rather than writing one calculation query for each year, referencing data from the previous year's query results, I was thinking this might be easier if I could just get my recordset into memory and do all the calculations in a VBA loop.
Does that explanation make sense? Has anyone tried this before, and is that a good idea? I'm not too good with ADO recordsets yet, but I can learn.
Rather than writing one calculation query for each year, referencing data from the previous year's query results, I was thinking this might be easier if I could just get my recordset into memory and do all the calculations in a VBA loop.
Does that explanation make sense? Has anyone tried this before, and is that a good idea? I'm not too good with ADO recordsets yet, but I can learn.
Last edited: