J
Jeremy Gollehon
How can I get a copy of a forms RecordSet that isn't affected when the form
is requeried?
I thought the following (using ByVal) was my best hope but it didn't work.
---------------------------------------------------------------------
Private mRecordsetB4Requery As DAO.Recordset
Public Property Get RecordsetB4Requery() As DAO.Recordset
Set RecordsetB4Requery = mRecordsetB4Requery
End Property
Public Property Set RecordsetB4Requery(ByVal rsRecordsetB4Requery As
DAO.Recordset)
Set mRecordsetB4Requery = rsRecordsetB4Requery
End Property
Private Sub Form_Open(Cancel As Integer)
Set Me.RecordsetB4Requery = Me.RecordsetClone
End Sub
---------------------------------------------------------------------
References to Me.RecordsetB4Requery work exactly like a reference to
Me.RecordSetClone until the form is requeried then I get Error 91: Object
variable or With block variable not set.
Thanks for any ideas,
Jeremy
is requeried?
I thought the following (using ByVal) was my best hope but it didn't work.
---------------------------------------------------------------------
Private mRecordsetB4Requery As DAO.Recordset
Public Property Get RecordsetB4Requery() As DAO.Recordset
Set RecordsetB4Requery = mRecordsetB4Requery
End Property
Public Property Set RecordsetB4Requery(ByVal rsRecordsetB4Requery As
DAO.Recordset)
Set mRecordsetB4Requery = rsRecordsetB4Requery
End Property
Private Sub Form_Open(Cancel As Integer)
Set Me.RecordsetB4Requery = Me.RecordsetClone
End Sub
---------------------------------------------------------------------
References to Me.RecordsetB4Requery work exactly like a reference to
Me.RecordSetClone until the form is requeried then I get Error 91: Object
variable or With block variable not set.
Thanks for any ideas,
Jeremy