G
Guest
I am working on a query to combine query results from 5 .mdb into one table
in Excel.
Results will have dates in col 1, and data in each of next 5 columns,
ordered by dates in col 1. (dates will be generated using dateadd monthly
from start to end date, so some columns may have nulls.)
I am versed in simple SQL but am stuck on 2 complexities:
1) I'm returning the same field name for 5 col (different query parameters)
2) I'm drawing from 5 databases
additionally there could end up being 10-15 columns in the future, and teh
whole thing is dynamic so needs to be in VBA code
I know how to structure each query, but what is the best way to combine them?
Is there a simple way to do this or do I need to construct a new table and
update from the others...so far I have only come up with very complicated
answers that I'd rather not code...
Thanks
in Excel.
Results will have dates in col 1, and data in each of next 5 columns,
ordered by dates in col 1. (dates will be generated using dateadd monthly
from start to end date, so some columns may have nulls.)
I am versed in simple SQL but am stuck on 2 complexities:
1) I'm returning the same field name for 5 col (different query parameters)
2) I'm drawing from 5 databases
additionally there could end up being 10-15 columns in the future, and teh
whole thing is dynamic so needs to be in VBA code
I know how to structure each query, but what is the best way to combine them?
Is there a simple way to do this or do I need to construct a new table and
update from the others...so far I have only come up with very complicated
answers that I'd rather not code...
Thanks