If you have crated a class then make your class public when you declare it. I was going to suggest making a module that inluded public functions that returned the data that you need for the connections. Or make the connection you are using Public.