Link to home
Start Free TrialLog in
Avatar of Amine400
Amine400

asked on

Microsoft access progress bar

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
ASKER CERTIFIED SOLUTION
Avatar of Dale Fye
Dale Fye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Amine400
Amine400

ASKER

User generated imageUser generated imageUser generated imageUser generated imageUser generated imagei want to replace this dialog box by a progress bar wich contain more precise informations.
You cannot replace it or turn it off.  That is built into Access.

Jim.
And can i add the progress bar to an independent form ?
The second form should appear when push the botton
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks