Solved

Rowset does not support scrolling backward.

Posted on 2008-09-29
2
206 Views
Last Modified: 2013-11-28
I have Access front end and a SQL backend.
I have DAO code that I'm trying to change to ADO code.  
I have the attached code snippet and I'm betting the error...
     Rowset does not support scrolling backward.
Is that because my syntax is still wrong?
Thanks

Set rs1 = New ADODB.Recordset

    cn.Open "Provider=SQLNCLI;Server=10.0.0.10\SQLExpress;Database=FDThomasQC;Trusted_Connection=yes;"

    rs1.Open "SELECT WorkReleaseID FROM tblWorkRelease WHERE WorkReleaseID = " & cboReleaseNo, cn

    rs1.MoveFirst

    rs1.Find "[WorkReleaseId] = " & cboReleaseNo.Value  'GET ERROR HERE

Open in new window

0
Comment
Question by:BobRosas
2 Comments
 
LVL 32

Accepted Solution

by:
Daniel Wilson earned 125 total points
ID: 22605035
http://www.w3schools.com/ADO/met_rs_open.asp
rs1.Open "SELECT WorkReleaseID FROM tblWorkRelease WHERE WorkReleaseID = " & cboReleaseNo, cn, adOpenKeyset
   
0
 

Author Closing Comment

by:BobRosas
ID: 31501577
That worked.  Thanks!
Also thanks for the link.  Lots of useful info.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now