S
Stephen Lynch
Instead of adding 15 docmd.runsql statements that use the same query except
one field is changed for each query, I was thinking that I could loop though
the query and add a variable for the field name instead.
I am not sure how to do a loop through the array or write any code for it as
this is the first time I have encountered a need for an array, so I thought
I would try.
For Each
F1 = Array("Deferral","Match","Roth","SafeMatch","PS","MPP","SafePS")
INSERT INTO tblContributions ( Deferral )
SELECT F1 FROM tblContributionsPostAll;
Next
Back to the books for me.Thanks in advance
one field is changed for each query, I was thinking that I could loop though
the query and add a variable for the field name instead.
I am not sure how to do a loop through the array or write any code for it as
this is the first time I have encountered a need for an array, so I thought
I would try.
For Each
F1 = Array("Deferral","Match","Roth","SafeMatch","PS","MPP","SafePS")
INSERT INTO tblContributions ( Deferral )
SELECT F1 FROM tblContributionsPostAll;
Next
Back to the books for me.Thanks in advance