Re: Recordset.FindFirst

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx> wrote in
news:OxQoJPz#HHA.700@xxxxxxxxxxxxxxxxxxxx:

FWIW, I've had better results from:
Set rs = Me.RecordsetClone
rather than:
Set rs = Me.Recordset.Clone

I just don't understand why you'd bother to set a recordset variable
for the recordsetclone, instead of just using:

With Me.RecordsetClone
...
End With

It's much more efficient and doesn't require any cleanup. Given that
this recordset exists before you use it, I don't see what benefit
there is to assigning a pre-existing object to a newly created
variable.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
.



Relevant Pages