Hi.
I have 10 standard SQL Queries to run for 10 regions and I would like to pass the regional variable to the SQL string to do this.
What is the best way to run 10 SQL Queries, one after another, in code?
I've been using...
Set conDatabase = CurrentProject.Connection
strSQL = " [ SQL Query ] "
conDatabase.Execute strSQL
Is this the best way to run 10 queries, with the above repeated 10 times with a different SQL string for each??..
..or is there a better way?
A star for any post that improves what I am doing.
Thanks for anything.
Russie.
I have 10 standard SQL Queries to run for 10 regions and I would like to pass the regional variable to the SQL string to do this.
What is the best way to run 10 SQL Queries, one after another, in code?
I've been using...
Set conDatabase = CurrentProject.Connection
strSQL = " [ SQL Query ] "
conDatabase.Execute strSQL
Is this the best way to run 10 queries, with the above repeated 10 times with a different SQL string for each??..
..or is there a better way?
A star for any post that improves what I am doing.
Thanks for anything.
Russie.