Microsoft access progress bar

Amine400
Amine400 used Ask the Experts™
on
In microsoft access, i have 7 reports with a total number of pages about 1200 pages.
i made a form with a botton wich allow me to extract these reports to 7 different pdf files.
I wanna replace the ordinary print dialogbox by a costum dialogbox wich contains a progress bar, the number of extracted reports, the number of printed pages and the elapsed time .
Note: the number of pages can change .
Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Owner, Dev-Soln LLC
Most Valuable Expert 2014
Top Expert 2010
Commented:
Take a look at my article located here.
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
Top Expert 2007

Commented:
+1

Author

Commented:
Here is my reportsThis is the bottonThis is the code of the bottonThis is the resultThis is the dialog box that i geti want to replace this dialog box by a progress bar wich contain more precise informations.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Jim Dettman (EE MVE)President / Owner
Most Valuable Expert 2017
Most Valuable Expert 2012

Commented:
You cannot replace it or turn it off.  That is built into Access.

Jim.

Author

Commented:
And can i add the progress bar to an independent form ?
The second form should appear when push the botton
Jim Dettman (EE MVE)President / Owner
Most Valuable Expert 2017
Most Valuable Expert 2012
Commented:
I take that back partially, I just remembered that you can hide it with some Windows API's:

http://access.mvps.org/access/api/api0037.htm

  However I do not know if that code will work for later versions of Access.

Jim.

Author

Commented:
What about the progress bar ?
I wanna see :
-the number of printed reports / total number of reports
-the number of printed pages
-the elapsed time
Jim Dettman (EE MVE)President / Owner
Most Valuable Expert 2017
Most Valuable Expert 2012

Commented:
I do not know the answer.   You should be able to run an independent form and have the report push data into the form, but it will all need to be driven from the report.

 It is an interesting question that I would like to see if there is an answer for, but at the moment I do not have any time.   Maybe Joe or Dale will take a crack at it.

 First would be to make sure the current dialog could be hidden.   The code from MVPs.org will probably need to be modified slightly as most of the class names in Access changed with 2007.   The basic technique though of finding a pop-up dialog and hiding it is still the same in Windows.

Then you will need a test progress form.  I would start just with "Current Page" and try to update that from the reports OnFormat event of the page header, or from the OnPage event and see if that works.   If it does, then you can build from there.

 There is one other alternative to hiding anything by the way, and that is to turn off repainting of the desktop window entirely while your processing.   But since you want to display your own data, that is not an option.

Jim.
Dale FyeOwner, Dev-Soln LLC
Most Valuable Expert 2014
Top Expert 2010
Commented:
Take a look at the article I mentioned in my first post.  That article discusses progress bar options and contains a database with a form and sample code for calling that progress bar.  It has options to allow you to actually display two different bars so you can track overall progress (call this the outer loop) and progress for an inner loop, which would show progress of the steps involved in an inner loop.

Dale
Top Expert 2009
Commented:
Take a look at my article on progress bars -- it covers both the built-in kind and a custom progress bar, which is more visible.

Here is a screen shot of the custom progress bar:

Custom progress baraccarch181.zip

Author

Commented:
Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial