using ado db connection in different workbook
Is it possible to use an ADO connection that has been established in one
workbook
in another workbook?
Simplified the connection has been set like this:
Public ADOConn As ADODB.Connection
Sub CreateADOConnection()
If ADOConn Is Nothing Then
Set ADOConn = New ADODB.Connection
End If
End Sub
And in another Sub:
strConn = "DSN=System 6000;" & _
"UID=" & Username & ";" & _
"PWD=" & Password
ADOConn.Open strConn
Thanks for any advice.
RBS
|