Solved

Display Record in label

Posted on 2006-07-13
3
166 Views
Last Modified: 2010-04-30
If I am moving through a recordset by movenext with a sql statement of limiting by 2 how can I display what record I am on in a label.
0
Comment
Question by:thenone
[X]
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
3 Comments
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 250 total points
ID: 17105720
use the recordsets's absolutposition  property, which starts at 0
0
 
LVL 35

Accepted Solution

by:
Raynard7 earned 250 total points
ID: 17105722
If you want the number of the record to display then you can use a counter to determine it.
If you want an id - then you can refer to that id.

I am guessing that you are doing this through a module;

So you can address the forms through

forms("formname").Controls("lableName").caption = Count_Value
or
forms("formname").Controls("lableName").caption = rs!ID_Field

and then

forms("formname").Refresh
forms("formname").Repaint
0
 
LVL 8

Author Comment

by:thenone
ID: 17109570
Thanks Angel I get the picture.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

688 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