Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 6th, 2005, 09:23 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default ADO version of FindLast

I have some ADO code that I am trying to convert to ADO and I am getting stumpt on converting this line:

rstTblFill.FindLast "[Equip] ='" & strCurrLine & "'"

I tried using just: rstTblFill.Find but that takes me to only the first occurance. And "MoveLast" takes me to the end of all the records and not just the one that matches the criteria I need.

Then I tried: rstTblFill.Seek "[Equip] ='" & strCurrLine & "'", adSeekLastEQ but that game me an error with a number 0 (whatever that means) and I was using "server side cursurs" when I opened the recordset the following way:
Code:
 Set rstTblFill = New Recordset
    With rstTblFill
         .ActiveConnection = CurrentProject.Connection
         .Source = "zzz_Schedule_ReportFill"
         .CursorLocation = adUseServer
         .CursorType = adOpenDynamic
         .LockType = adLockOptimistic
         .Open Options:=adCmdTable  
    End With


So, I am open for any suggestions. I am using Access 2002 and SQL2000
__________________
Mitch





Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between ADO and ADO.NET rakeshclose2u ADO.NET 2 April 23rd, 2007 03:57 AM
Passwords from version 1 to version 2 Maxxim BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 February 6th, 2007 06:49 PM
ADO AND ADO.NET royalsurej ADO.NET 1 November 8th, 2004 08:28 AM
ADO could ADO counot find the specified provider. Rob Collie Classic ASP Databases 2 June 9th, 2003 04:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.