Thanks for that but it didn't work - I just get a login failure.
I'm still confused as to what is happening because surely if it returns success when connecting, I don't understand why it tries to connect again when you actually try to access a table by running a query.
What I really want to...