Thanks for looking, however...
I'm getting an ODBC Error at this line of your script:
I have also tried this below: But I get an SQL Syntax Error.
The SQL Script works in the microsoft query wizard so not sure how to correct either error. I will verify the SQL script but i'm sure it works.
Also noticed something when I use the recorder and it brings over all kinds of extra stuff for example the CHR(13) & CHR(10) and seems to add "," to each line of code. This wasn't a problem till the script got larger.
Bookmarks