Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Display Record in label

Posted on 2006-07-13
3
Medium Priority
?
168 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

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

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 how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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…
Suggested Courses

610 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