Best way to show an update

D

Duncs

I've got several macros, that run quite a few queries / sections of
VBA code. What I'm looking for is a way to display, unobtrusively,
the name of teh query / piece of code that is currently being run. I
also want to display it and have it change with no interaction from
the user.

So, if Macro1 has the following queries:

qry1
qry2
VBProc_A
qry3
qry4
vbaProc_B
qry5

I'd like the database to show somewhere that it is running qry1, then
when that is finished it is running qry2. Then, when that finishes,
it is running VBAProc_A etc.

I'm not sure on the best way to do this, whether it should be a simple
window with a label / text field that is updated with the name of the
query etc. If so, how would I update the label / text control with
teh name?

Or, is there a better way to do it?

TIA

Duncs
 
N

Nick 'The Database Guy'

I've got several macros, that run quite a few queries / sections of
VBA code.  What I'm looking for is a way to display, unobtrusively,
the name of teh query / piece of code that is currently being run.  I
also want to display it and have it change with no interaction from
the user.

So, if Macro1 has the following queries:

qry1
qry2
VBProc_A
qry3
qry4
vbaProc_B
qry5

I'd like the database to show somewhere that it is running qry1, then
when that is finished it is running qry2.  Then, when that finishes,
it is running VBAProc_A etc.

I'm not sure on the best way to do this, whether it should be a simple
window with a label / text field that is updated with the name of the
query etc.  If so, how would I update the label / text control with
teh name?

Or, is there a better way to do it?

TIA

Duncs

Hi Duncs,

You could do it in the status bar, to do this you must use the Echo
command in the macro. Set the echo to false and specify the status
bar text as the query that is running. This should be slightly moe
elegant than the label / text control you were going to use.

Good luck,

Nick
 
N

Nick 'The Database Guy'

Hi Duncs,

You could do it in the status bar, to do this you must use the Echo
command in the macro.  Set the echo to false and specify the status
bar text as the query that is running.  This should be slightly moe
elegant than the label / text control you were going to use.

Good luck,

Nick- Hide quoted text -

- Show quoted text -

slightly more *
 

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