Re: Form - with Progress Bar

Tech-Archive recommends: Fix windows errors by optimizing your registry



The problem here is not writing some code that can display, and increment of
progress bar step by step as you propose. what you have to work fine, and
will produce a progress bar on the screen (actually, you'll likely need a
doevents command in the loop also update the display).

to probably going to have is you can run is looping code to increment the
progress bar when you launch the report you can go


a)

code to loop -> increment progess bar
launch rerpot (docmd.Openreprot)

or

b)

launch rerpot (docmd.Openreprot)
code to loop-> increment progess bar

bowl for the above approaches are useless to you, in the case of a), you'll
simply see the progress bar increment and complete, and **then** you you
will star waiting for the report.

In the case of b, you'll simply be waiting until the report loads and
finishes, and *then* you'll see your progress bar start.

perhaps I misunderstood your original question, and if you're doing some
kind of record set or data processing looped to build and create the data
for the report, then you can most certainly display that progress bar.
However, you don't have any ability to make the progress bar run while the
report is rendering.

So if you have like say a fifteen to 20 second delay (or more) before the
report loads where you have to process a bunch of data, and THEN launch the
reprot..then, yes, using a progress bar is a great idea....


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@xxxxxxx


.



Relevant Pages

  • Common Control - Progress Bar Problem
    ... I am having problems getting a progress bar on a dialog window to increment ... BOOL CALLBACK ProgressDialogProc(HWND hwnd, UINT message, WPARAM wParam, ... LPARAM lParam) ...
    (microsoft.public.win32.programmer.ui)
  • Re: Progrssbar Value for SP time taken
    ... Are you calling the SP asynchronously? ... increment your progress bar based on this timeframe. ... Others just increment the bar until it fills and reset it ... William Vaughn ...
    (microsoft.public.vb.database)
  • Re: Drawing custom progress bar and threading
    ... messageboard posts at EggHeadCafe.com. ... > Everything seems to work fine, except that when the progress bar control ... > every increment, will this cause it to be resource hungry? ...
    (microsoft.public.dotnet.framework.drawing)
  • RE: fetching data asynchronously using ado.net dataset
    ... DataReader Object and increment your progress bar one step with each record ... before hand so what you need to do it to create two queries for each query ... is the actual query you want to execute, then get its result in a reader ...
    (microsoft.public.dotnet.languages.csharp)
  • Vista Progressbar
    ... Has anyone noticed that if you have a progress bar, and you increment it at rapid intervals, it will only display at roughly 90% when its set to 100% full? ...
    (microsoft.public.dotnet.languages.vb.controls)