Progress meter Help

M

Michael

My progress meter shows up a gray for a few seconds then turns green
and goes to 100 percent right away, then it dissappears and I just
see the "proccessing data" for more than 90% of the processing time. I
have tryed the update statemetn before and after the movenext
statement

What am i missing?

rstCount = rst.RecordCount
Application.SysCmd acSysCmdInitMeter, "processing data....", rstCount

Do Until rst.EOF
' code processing data from snipped out

rstCount = rstCount - 1
rstPercent = rstPercent + 1
Application.SysCmd acSysCmdUpdateMeter, rstPercent

rst.Update
rst.MoveNext

Loop
Application.SysCmd acSysCmdRemoveMeter
 
T

Tom van Stiphout

On Wed, 22 Jul 2009 05:48:05 -0700 (PDT), Michael <[email protected]>
wrote:

Perhaps your recordcount is incorrect. You will have to:
rst.MoveLast
rst.MoveFirst
before it will be accurate. That's by design.

-Tom.
Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top