elvenmaiden
Programmer
This error occurs in the second with statement.
Went out to Microsoft Knowledge base to retrieve information on creating Group Data Reports dynamically, as far as I can tell I have the right format. But I am getting a object variable or with block variable not set. I am certain there is information in the Access database that will show up in the recordset. Can anyone help? I really grasping at straws. Thanks!
Dim rsUserStats As ADODB.Recordset
Dim cmd As New ADODB.Command
With cmd
.ActiveConnection = conHelpPlus
.CommandType = adCmdText
.CommandText = " SHAPE {SELECT Name, Subject, Questions, Solutions FROM `qryStats`} as Command1 BY 'Name'"
.Execute
End With
With rsUserStats
.ActiveConnection = conHelpPlus
.CursorLocation = adUseClient
.Open cmd
End With
Went out to Microsoft Knowledge base to retrieve information on creating Group Data Reports dynamically, as far as I can tell I have the right format. But I am getting a object variable or with block variable not set. I am certain there is information in the Access database that will show up in the recordset. Can anyone help? I really grasping at straws. Thanks!
Dim rsUserStats As ADODB.Recordset
Dim cmd As New ADODB.Command
With cmd
.ActiveConnection = conHelpPlus
.CommandType = adCmdText
.CommandText = " SHAPE {SELECT Name, Subject, Questions, Solutions FROM `qryStats`} as Command1 BY 'Name'"
.Execute
End With
With rsUserStats
.ActiveConnection = conHelpPlus
.CursorLocation = adUseClient
.Open cmd
End With