?
Solved

Display Record in label

Posted on 2006-07-13
3
Medium Priority
?
167 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 1000 total points
ID: 17105720
use the recordsets's absolutposition  property, which starts at 0
0
 
LVL 35

Accepted Solution

by:
Raynard7 earned 1000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…
Suggested Courses

762 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