Just thought I would update this, never managed to get it to work using ODBC dbo connections, tried aliasing, closing connections etc, always resulted in the same error.
Just rewrote it using ADODB which actually worked a lot better, got rid of my errors and where able to enclose it all in a...