Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

AbsolutePosition question

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

829 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