Report progress of macros

S

Sheryl

I have a "Build All Tables" macro, which calls 8 macros,
each of which calls several queries. I would like to be
able to have a way to display the progress of all this.

The status bar displays little bar graphs "Run Query",
so 'Echo' doesn't work. I have tried using a Form based
on a table SYS_STATUS, which contains one record
describing the current operation. The table is being
updated ok, but the entry on the form does not
automatically update itself to changed values.
 
N

Nikos Yannacopoulos

Sheryl,

If I understand correctly, you're saying that although the
form is getting new data, it is not displaying it?
If that's the case: this happens because code execution
(action queries, recordset operations etc.) takes higher
priority than changes to forms. There is a workaround,
though... just add this line of code:
Forms("My_Form_Name").Repaint
right after every line of code that updates your form, to
force Access to refresh it.

Nikos
 

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