Percent completed

This is a discussion on Percent completed within the ADO DAO RDO RDS forums in Framework and Interface Programming category; I have code which runs various queries in a specific order. Due to the length of time it takes for the queries to run, I would like to have some sort of progress indicator. The queries are being called using, of course, DoCmd. How can I produce a progress indicator, either a procress bar or just a % complete box, to show progress as each DoCmd is completed? I would not want to click OK at any point of the progress indicator, I want it to just flow as the code run the various DoCmd's. Any help is greatly appreciated. ...

Go Back   Application Development Forum > Framework and Interface Programming > ADO DAO RDO RDS

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-09-2008, 07:33 PM
SJW_OST
Guest
 
Default Percent completed

I have code which runs various queries in a specific order. Due to the length
of time it takes for the queries to run, I would like to have some sort of
progress indicator. The queries are being called using, of course, DoCmd. How
can I produce a progress indicator, either a procress bar or just a %
complete box, to show progress as each DoCmd is completed? I would not want
to click OK at any point of the progress indicator, I want it to just flow as
the code run the various DoCmd's.

Any help is greatly appreciated.
Stephen.
Reply With Quote
  #2  
Old 11-09-2008, 09:19 PM
Fred Boer
Guest
 
Default Re: Percent completed

Dear Stephen:

The following link provides lots of information on progress bars:

http://www.accessmvp.com/JConrad/acc...gressbars.html


HTH
--
Fred Boer - Amateur Access Enthusiast
Interests: Library software / Z39.50 / Web Services
Freeware Small Library Application available here:
http://www3.sympatico.ca/lornarourke/


"SJW_OST" <SJWOST@discussions.microsoft.com> wrote in message
news:8AED2100-3867-42CE-A6BF-EEBEF5E1CF6A@microsoft.com...
>I have code which runs various queries in a specific order. Due to the
>length
> of time it takes for the queries to run, I would like to have some sort of
> progress indicator. The queries are being called using, of course, DoCmd.
> How
> can I produce a progress indicator, either a procress bar or just a %
> complete box, to show progress as each DoCmd is completed? I would not
> want
> to click OK at any point of the progress indicator, I want it to just flow
> as
> the code run the various DoCmd's.
>
> Any help is greatly appreciated.
> Stephen.



Reply With Quote
  #3  
Old 11-09-2008, 09:26 PM
pietlinden@hotmail.com
Guest
 
Default Re: Percent completed

On Nov 9, 6:33*pm, SJW_OST <SJW...@discussions.microsoft.com> wrote:
> I have code which runs various queries in a specific order. Due to the length
> of time it takes for the queries to run, I would like to have some sort of
> progress indicator. The queries are being called using, of course, DoCmd.How
> can I produce a progress indicator, either a procress bar or just a %
> complete box, to show progress as each DoCmd is completed? I would not want
> to click OK at any point of the progress indicator, I want it to just flow as
> the code run the various DoCmd's.
>
> Any help is greatly appreciated.
> Stephen.


you can use a progress bar on your form and do something like this:


'--update the progress bar on your form
DoCmd.OpenQuery "Query1"
Me.ProgressBar0.Value = Me.ProgressBar0.Value + cPERCENT
Me.ProgressBar0.Requery

If you put the queries in an array, you could loop through the array
and increment the progressbar by 100\ubound(array)+1 each time you go
through the processing loop.




Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:20 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.