J
Jeff Polack
I'm trying to store data associated with an object that is created as a
result of a class module I've built. I thought I read somewhere that you
could do so in a table with a field that has it's data type set to OLE. Is
such a thing possible or did I just dream about such a thing?
Here's the code that fails when it gets to line that attempts to add the
clsClient data (Runtime error 438 - Object doesn't support this property or
method):
Public Sub LoadClient(strClientID As String, strPeriodBegin As String,
strPeriodEnd As String)
Dim rs As DAO.Recordset
Dim clsData As New ClientMktShare
Set rs = CurrentDb.OpenRecordset("SELECT * FROM tblTest;", dbOpenDynaset)
clsData.ClientID = strClientID
clsData.Period = strPeriodBegin
clsData.PeriodEnd = strPeriodEnd
With rs
.AddNew
!ID = strClientID
!Data = clsData <--------------- Runtime error occurs here
.Update
End With
Set rs = Nothing
End Sub
TIA
result of a class module I've built. I thought I read somewhere that you
could do so in a table with a field that has it's data type set to OLE. Is
such a thing possible or did I just dream about such a thing?
Here's the code that fails when it gets to line that attempts to add the
clsClient data (Runtime error 438 - Object doesn't support this property or
method):
Public Sub LoadClient(strClientID As String, strPeriodBegin As String,
strPeriodEnd As String)
Dim rs As DAO.Recordset
Dim clsData As New ClientMktShare
Set rs = CurrentDb.OpenRecordset("SELECT * FROM tblTest;", dbOpenDynaset)
clsData.ClientID = strClientID
clsData.Period = strPeriodBegin
clsData.PeriodEnd = strPeriodEnd
With rs
.AddNew
!ID = strClientID
!Data = clsData <--------------- Runtime error occurs here
.Update
End With
Set rs = Nothing
End Sub
TIA