Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO equivalent of recordsetclone and bookmark? 1

Status
Not open for further replies.

nickjar2

Programmer
Jun 20, 2001
778
US
I have this bit of ocde:

Set rst = Me.RecordsetClone

rst.Find "site_id = " & txtLoggerFind

but get a data type mismatch on the set line. Also, is there an equivalent of the DAO bookmark property? Nick (Everton Rool OK!)
 
You must be in an Access 2000 mdb not an adp.

The recordset(rs) default on a Form for a mdb is DAO and in an adp it is ADO. If you explicitly define the recordset object as DAO you can treat the rs as you have in the past.

The bookmark is comparable in ADO.

In the above case, you cannot set a Form recordset (DAO) to an ADO recordset, but the reverse will work. You can set a Form's recordset to an ADO recordset.

Dim yy As Access.Form
Set yy.Recordset = rs '- an ADO recordset

In your case, the simpliest is to go with the DAO recordset.
 
Cheers!
I thought that Microsoft were trying to make DAO obsolete, so i assumed that the above could be done using ADO, rather than having to use both. Nick (Everton Rool OK!)
 
On an Access Project (adp) the Form's recordset is ADO, so you can use Me.RecordsetClone on an ADO recordset. It is kind of confusing. The Form's recordset is still DAO on an mdb file.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top