Solved

AbsolutePosition question

Posted on 2002-03-15
2
204 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 70

Accepted Solution

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

Author Comment

by:jackjeckyl
ID: 7002366
Sorry for the delay.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

773 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