colmkav
2012-06-07 13:35:27 UTC
What is the best way to approach my problem:
I want to run a series of Access SQL queries (currently 13) eg
qryRule01 and store the results in tables of the similar name eg
tblRule01. I also wish to use a date parameter which will usually be
the previous days date.
How best is it to do this? Currently the queries run fine on
themselves when I hardcode the date to =date() in the SQL queries but
when I try to use VBA and run the queries and return the results to a
new table using “SELECT * INTO…” and use parameters for the dates I
get overflow errors.
What’s the neatest way to solve this?
Colm
I want to run a series of Access SQL queries (currently 13) eg
qryRule01 and store the results in tables of the similar name eg
tblRule01. I also wish to use a date parameter which will usually be
the previous days date.
How best is it to do this? Currently the queries run fine on
themselves when I hardcode the date to =date() in the SQL queries but
when I try to use VBA and run the queries and return the results to a
new table using “SELECT * INTO…” and use parameters for the dates I
get overflow errors.
What’s the neatest way to solve this?
Colm