ADO Recordset and FindFirst Problem

E

Eddy

Does the FindFirst method work with an ADODB recordset?
I am using the following code to find a field in tbl1 recordset matching the
variable strRef.

Dim rs As New ADODB.Recordset
strRef = Field1
Set db = CurrentDb()
rs.Open "tbl1", CurrentProject.Connection, adOpenDynamic, adLockOptimistic
rs.FindFirst "Field1 = '" & strRef & "'"

I get an error Method or Data Member not Found.
Is there a similar method for ADO recordsets that does the same thing as
FindFirst?
I am using Access2003
Thanks
 
E

Eddy

Thanks for the quick reply. One other question. How to you test for the
existence of a record? I am having no luck with the rs.NoMatch method
and don't see a similar alternative (Doesn't mean it's not there)
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top