GoatieEddie
Technical User
Hi All,
I have set up a worbook that has 5 or 6 querytables in it. I created these using the wizard and not code (dumb in hindsight!)
My question is this: I now want to recreate the exact same workbook but changing one of the criteria in the SQL statement. I know how to do the replacing bit and how to access each querytable but I am stuck on how I pull to out the existing SQL and then send it back having changed the string.
Can someone point me in the right direction please?
Thanks,
GE
I have set up a worbook that has 5 or 6 querytables in it. I created these using the wizard and not code (dumb in hindsight!)
My question is this: I now want to recreate the exact same workbook but changing one of the criteria in the SQL statement. I know how to do the replacing bit and how to access each querytable but I am stuck on how I pull to out the existing SQL and then send it back having changed the string.
Can someone point me in the right direction please?
Thanks,
GE