I have to connect to 14 differnt databases depending on which once the user needs. I currently use a drop down menu to select what db they need and then in the newConnection method under datastream i do a simple case statement if "abc" then set newconnection = new abc_connection which is stored in a library file. this all works but i dont want to have to add this code to every datastream for each report. is there a way to pass my case statement into the datastream via a text file that i can update as we add new databases?? i tried creating a blank template datastream library function but when i add SQL it overwrites the blank template.