Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Progress Bar: <To Kamall>

Posted on 1998-06-02
2
Medium Priority
?
205 Views
Last Modified: 2010-05-03
Hi Kamall,
   Need your advice on progress bar again. The codes that you have provided works perfectly fine. But If i were to apply it into a do while loop. What would be the codes I need to modify in order to capture the processing accurately that means when my loop ends, my progress bar should end too. (Worst still is that I can only get the maximum value when my do while loop end.)Thus I was thinking how I could assign a value to progressbar1.max=value at the begining which we have been doing in a for loop.

Below are my codes:

Do while not EOF(1)
ProgressBar1.visible=true
ProgressBar1.Max=int_progress
......

record=record+1    //this is the place which my counter increase
........          //and only loop end then would I be able to
........         //know the no of records being processed.


ProgressBar1.Value=int_progress
int_progress=int_progress+1

Loop
ProgressBar1.visble=False

Problem: My ProgressBar will always reach the end before my Do loop ends. Could you Please advise?
0
Comment
Question by:heng
2 Comments
 

Accepted Solution

by:
eyaltil earned 200 total points
ID: 1462361
hi,
i had the same problem a week ago.

solution:
open the file twice.
the first one, for calculating the records number (so u would now the progressbar1.max.
the second one, for doing what u want.

it is not an elegant way but it works
0
 

Author Comment

by:heng
ID: 1462362
I should have thought of that! Thanks
0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

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…
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 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…

886 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