message to wait

  • Thread starter samotek via AccessMonster.com
  • Start date
S

samotek via AccessMonster.com

is there any simple code to show some figure as sandwatch or something while
my main code is running?
 
D

David C. Holley

You can create a form that is displayed when the code starts executing and
which is then hidden when its finished. At certain points throughout the
code you can update your users by adding a label to the form whose caption
you then update as in..

[Forms]![frmAdvisory]![lblAdvisoryText].Caption "Working on Step (2) of
(5)..."
[Forms]![frmAdvisory].Repaint

Calling the .Repaint method of the form is neccessary to show the new
caption.
 
L

Lance McGonigal

I use a table similar to the windows log and show it on my menu. When
code starts, stops or err I make an entry. I have a timer on the form
that refreshes every 5 sec. Works great for batch jobs and basic
functions.

David C. Holley said:
You can create a form that is displayed when the code starts executing
and
which is then hidden when its finished. At certain points throughout
the
code you can update your users by adding a label to the form whose
caption
you then update as in..

[Forms]![frmAdvisory]![lblAdvisoryText].Caption "Working on Step (2)
of
(5)..."
[Forms]![frmAdvisory].Repaint

Calling the .Repaint method of the form is neccessary to show the new
caption.
 
D

Daryl S

By sandwatch, if you mean the hourglass, then you can turn that on before
your code runs and off when it is done:

DoCmd.Hourglass = True 'turn cursor into hourglass
DoCmd.Hourglass = False 'turn cursor back to normal
 

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