I upgraded to Windows 2000 from Windows 98 recently. Some
software I had written in Visual Basic 6.0 that worked
fine prior to the upgrade now is unable to open my ADO
Connection. I have tried several databases in both SQL
Server and Access, and all fail on the Connection.Open
statement. I had previously used MDAC 2.5 and have
upgraded to MDAC 7.1. Any thoughts on where the error
might be coming from. Here is a code fragment example of
what I am doing....it is pretty straight forward:
' Create Ado objections for DB Communication
Set sAdoDBCon = New ADODB.Connection
Set sAdoDBRec = New ADODB.Recordset
' SQL Select statement
strSQL = "SELECT * FROM master"
' Error handling
On Error GoTo Error_cmdRead_Click
' Connect to the Database via ODBC
sAdoDBCon.ConnectionString = "DSN=CAMDB"
' **************************************************
' *** Fails on this Open statement
' **************************************************
sAdoDBCon.Open
sAdoDBRec.Open strSQL, sAdoDBCon, adOpenKeyset,
adLockOptimistic