Solved

Display Record in label

Posted on 2006-07-13
3
165 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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code 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 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…
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…

749 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