Solved

Show Page Numbers

Posted on 2003-12-04
2
233 Views
Last Modified: 2010-05-03
I have several labels in my project and I want to know how I can "number" them (i.e. 5 of 25) so the user knows which page they are on.  Can this easily be done?

Thanks
0
Comment
Question by:johnqtr
[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
  • 2
2 Comments
 
LVL 4

Accepted Solution

by:
PBuck earned 75 total points
ID: 9875001
I think I know what you are asking.  You have a label for each page and want to display the current page to the user using the label?  If this is the case, then index the labels and on form load fill the captions.

Start the index with 1 for ease of use:
lblPageCount(1),lblPageCount(2)

For idx = 1  to lblPageCount.Count
   lblPageCount(idx).Caption = idx & " of " & lblPageCount.Count
Next

Hope this helps.
0
 
LVL 4

Expert Comment

by:PBuck
ID: 9875490
Thank you for the grade.  Hope everything works well for you.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

733 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