S
smeghead
I'm currently using a Query to update a table. The SQL looks like this:
UPDATE [Summary Table] SET [Americas Totals] =
DCount("*","Combined_120804","[Region]='Americas'");
Because I have many, many of these updates to do. (150) Instead of creating
a Query for each one, I'd like to use a module and VBA to do in more
efficiently.
So the multiple SQL updates would look something like:
UPDATE [Summary Table] SET [Americas Totals] =
DCount("*","Combined_120804","[Region]='Americas'");
UPDATE [Summary Table] SET [AP Totals] =
DCount("*","Combined_120804","[Region]='Asia Pacific'");
UPDATE [Summary Table] SET [Europe Totals] =
DCount("*","Combined_120804","[Region]='Europe'");
.....etc.
Can someone help me figure out how to do this in a VBA module?
UPDATE [Summary Table] SET [Americas Totals] =
DCount("*","Combined_120804","[Region]='Americas'");
Because I have many, many of these updates to do. (150) Instead of creating
a Query for each one, I'd like to use a module and VBA to do in more
efficiently.
So the multiple SQL updates would look something like:
UPDATE [Summary Table] SET [Americas Totals] =
DCount("*","Combined_120804","[Region]='Americas'");
UPDATE [Summary Table] SET [AP Totals] =
DCount("*","Combined_120804","[Region]='Asia Pacific'");
UPDATE [Summary Table] SET [Europe Totals] =
DCount("*","Combined_120804","[Region]='Europe'");
.....etc.
Can someone help me figure out how to do this in a VBA module?