it is not necessary to create global variable for this, just specify connection name as I suggested in my first post and the get access to database by connction name. this method works perfectly.2) add the newconnection to the list of connections and make a global variable to track the currentdatabase.
Bookmarks