Solved

AbsolutePosition question

Posted on 2002-03-15
2
183 Views
Last Modified: 2010-05-02
I am writing some code to go through a recordset and I want something that will stop at the last record and disable the next button.  When I use: If .eof then disable, it makes the user hit it twice.  I am wanting to try to use something on the lines that if the .AbsolutePosition equals the .RecordCount then disable it.  However, AbsolutePosition is not returning values it should.  It is always -1 or -3, as opposed to which record its on.  I am using ADO to a SQL 7.0 server.  How can I do it?  Code example please.
0
Comment
Question by:jackjeckyl
2 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 50 total points
Comment Utility
set your CursorLocation to adUseClient and your CursorType to adOpenStatic
0
 

Author Comment

by:jackjeckyl
Comment Utility
Sorry for the delay.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

744 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

13 Experts available now in Live!

Get 1:1 Help Now