A
Alistair F
I'm new to ADO and an trying to converting DAO programs to ADO. I get an
error, 80004005, when using the following code to try to open a recordset.
Set rstTable = New ADODB.Recordset
With rstTable
.Source = strSQL
.ActiveConnection = dbCurrent
.CursorType = adOpenStatic
.Open
End With
The same code has worked at earlier stages in the program but fails at this
stage. The SQL query does return records from the Access database when I use
the strSQL text as the basis for the query.
Is the problem likely to be with the query or somewhere else?
Thanks in anticipation
error, 80004005, when using the following code to try to open a recordset.
Set rstTable = New ADODB.Recordset
With rstTable
.Source = strSQL
.ActiveConnection = dbCurrent
.CursorType = adOpenStatic
.Open
End With
The same code has worked at earlier stages in the program but fails at this
stage. The SQL query does return records from the Access database when I use
the strSQL text as the basis for the query.
Is the problem likely to be with the query or somewhere else?
Thanks in anticipation