G
Guest
I keep getting an invalid error message when running this code:
(I added two stars to highlight the part that gives the invalid error message)
Set rstclass = New ADODB.Recordset
rstclass.CursorLocation = adUseClient
**rstclass.Open "select * from " & recsource & "where id = '" &
Me.Form.ID.Value & "', CurrentProject.Connection, adOpenKeyset,
adLockOptimistic"**
Set cSpace.DataSource = rstclass
cSpace.hasmultiplecharts = False
cSpace.setdata c.chdimvalues, c.chdatabound, Array("id", "wpm")
I'm trying to link a chart--cSpace--on my form to show updated info from the
current recordset. I'm not trying to open a new window displaying a chart.
Thanks for any ideas....
(I added two stars to highlight the part that gives the invalid error message)
Set rstclass = New ADODB.Recordset
rstclass.CursorLocation = adUseClient
**rstclass.Open "select * from " & recsource & "where id = '" &
Me.Form.ID.Value & "', CurrentProject.Connection, adOpenKeyset,
adLockOptimistic"**
Set cSpace.DataSource = rstclass
cSpace.hasmultiplecharts = False
cSpace.setdata c.chdimvalues, c.chdatabound, Array("id", "wpm")
I'm trying to link a chart--cSpace--on my form to show updated info from the
current recordset. I'm not trying to open a new window displaying a chart.
Thanks for any ideas....