Finally reached the end. In the new module, I created a partial class for the table adapter in which I needed to change the connection string, one error that I made initially did not indicate the correct namespace.
The following is a partial class that allowed me to dynamically change the connection string of one of my table adapters for a table called tblOptions:
Namespace ds1TableAdapters Partial Public Class tblOptionsTableAdapter Sub ChangeConnString(ByVal newConn As String) Me._connection.ConnectionString = newConn End Sub End Class End Namespace
Thanks for the help Will, he made me move in the right direction.
Sausagefingers
source share