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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I convert the enclosed code from DAO to ADO

Status
Not open for further replies.

jazzz

Technical User
Feb 17, 2000
433
US
Hello, I am trying to get an understanding on ADO. I have code I created in DAO and would like to see it converted to ADO so I can view what the differences would be and why? Here is the code in DAO

Dim rsClone As DAO.Recordset
Dim lngRecipeID As Long

Set rsClone = Me.RecordsetClone()

'* locate the current record number and store it for future use.
varRecipeID = Me("recipeID")

lngRecipeID = varRecipeID

'* turn paining off to eliminate screen flash.
Me.Painting = 0

'* now requery the recordset and get our current location and
'* place the record where it belongs.
With rsClone
.Requery
.FindFirst "RecipeID = " & lngRecipeID

If Not .NoMatch Then
Me.Bookmark = .Bookmark
End If
End With

Me.Refresh Life's a journey enjoy the ride...

jazzz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top