Hi,
Up to now I have to say this forum is The Best!
Found só many solutions here, all in bits and pieces of code!
Thanks you all, for posting here.
Now, I have a small, little problem.
I want to update columns in a table, 1 by 1 (12 months in a row).
This is the code I use:
I do this for all 12 months, calling query by query in a macro. And I want to transform it into a module, so I can get rid of all the queries. How should I do this?
Thanks in advance,
Timo
Up to now I have to say this forum is The Best!
Found só many solutions here, all in bits and pieces of code!
Thanks you all, for posting here.
Now, I have a small, little problem.
I want to update columns in a table, 1 by 1 (12 months in a row).
This is the code I use:
Code:
UPDATE tbl_Retail_CM_2012 INNER JOIN CalcLastYear ON tbl_Retail_CM_2012.[Dealer] = CalcLastYear.[Cust No] SET CalcLastYear.[1] = [tbl_Retail_CM_2012]![Total Retails]
WHERE (((tbl_Retail_CM_2012.Month)=1));
I do this for all 12 months, calling query by query in a macro. And I want to transform it into a module, so I can get rid of all the queries. How should I do this?
Thanks in advance,
Timo