I am trying to create an ADO recordset from a table that exists within the current database, when I execute the code I get:
Run-time error '3709':
The connection cannot be used to perform this operation. It is either closed or invalid in this context.
the code is:
Dim rstData As ADODB.Recordset
Dim strSQL As String
Set rstData = New ADODB.Recordset
strSQL = "Select * From tblClassroomReservations"
rstData.Open strSQL, , adOpenDynamic, adLockOptimistic, adCmdText
any help is appreciated.
Thanks,
Tamra
Run-time error '3709':
The connection cannot be used to perform this operation. It is either closed or invalid in this context.
the code is:
Dim rstData As ADODB.Recordset
Dim strSQL As String
Set rstData = New ADODB.Recordset
strSQL = "Select * From tblClassroomReservations"
rstData.Open strSQL, , adOpenDynamic, adLockOptimistic, adCmdText
any help is appreciated.
Thanks,
Tamra