Hello,
I'm using a Data Environment Connection to connect a Database, but the properties is populated dinamically.
On Windows XP, the code works.
But in Windows 7 SP1, it's losing properties when I close connection and I receive 'login failed', here is the code:
I lose properties on line "DataBaseConnection.Close", then on "DataBaseConnection.Open", i got 'login failed' only for Windows 7.
Anyone could help me?
Thanks.
I'm using a Data Environment Connection to connect a Database, but the properties is populated dinamically.
On Windows XP, the code works.
But in Windows 7 SP1, it's losing properties when I close connection and I receive 'login failed', here is the code:
Code:
Private Property Get DataBaseConnection() As ADODB.Connection
If DataEnvironment1.CnCIC.Properties("WorkStation ID") <> UsuarioDB$ Then
Set DataBaseConnection = DataEnvironment1.CnCIC
DataBaseConnection.Close
DataBaseConnection.Properties("WorkStation ID") = UsuarioDB$
DataBaseConnection.Open
Else
Set DataBaseConnection = DataEnvironment1.CnCIC
End If
End Property
I lose properties on line "DataBaseConnection.Close", then on "DataBaseConnection.Open", i got 'login failed' only for Windows 7.
Anyone could help me?
Thanks.