Solved

Show Page Numbers

Posted on 2003-12-04
2
210 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
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 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…

930 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now